Message: Re: Recording the data in output file Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Recording the data in output file 

Forum: Analysis
Re: None Recording the data in output file (Bauyrzhan Yessenov)
Re: None Re: Recording the data in output file (Ivana Hrivnacova)
Re: None Re: Recording the data in output file (Bauyrzhan Yessenov)
Re: None Re: Recording the data in output file (Bauyrzhan Yessenov)
Date: 28 Apr, 2015
From: Ivana Hrivnacova <Ivana Hrivnacova>

Your code starting from these lines is incorrect:

         //write data // &#1089;&#1076;&#1077;&#1083;&#1072;&#1090;&#1100; &#1087;&#1086;&#1087;&#1088;&#1072;&#1074;&#1082;&#1091; &#1085;&#1072; &#1076;&#1088;&#1091;&#1075;&#1086;&#1088;&#1077; &#1088;&#1072;&#1089;&#1096;&#1080;&#1088;&#1077;&#1085;&#1080;&#1077; -----
               std::ofstream WriteDataIn("BGO_gamma_electron_positron.txt", std::ios::app);
               WriteDataIn      << edepStep1  << '\t' << "   " << G4endl; 
        }

When using G4AnalysisManager, the code which is used to write & close a file looks like this:

       analysisManager->Write();
       analysisManager->CloseFile();

Best regards,

 Add Message Add Message
to: "Re: Recording the data in output file"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]