67 std::cout <<
"LBNERunAction::BeginOfRunAction() Called." <<
std::endl;
73 G4String spaces =
" ";
75 std::cout <<
"LBNERunAction::BeginOfRunAction() - Initializing Run " 76 << aRun->GetRunID() <<
"..." <<
std::endl;
83 G4String randomFile=
"rndm/beginOfRun_";
85 snprintf(runN, 4,
"%03d",aRun->GetRunID());
86 randomFile.append(runN);
87 randomFile.append(
".rndm");
88 CLHEP::HepRandom::saveEngineStatus(randomFile);
89 std::cout << spaces <<
"Intializing Random Number generator named " 90 << CLHEP::HepRandom::getTheEngine()->name() <<
" ... " <<
std::endl 91 << spaces <<
" Seed = " << CLHEP::HepRandom::getTheSeed() <<
std::endl 92 << spaces <<
" Saving Random engine status in "<< randomFile <<
std::endl;
112 if(!primaryGeneratorAction)
114 std::cout << spaces <<
"PROBLEM: INVALID LBNEPrimaryGeneratorAction POINTER" <<
std::endl;
131 std::ostringstream mStrStr;
132 mStrStr <<
"PROBLEM: FAILED TO OPEN INPUT NTUPLE. Fatal " <<
std::endl;
133 G4String mStr(mStrStr.str());
134 G4Exception(
"LBNERunAction::BeginOfRunAction",
" ", RunMustBeAborted, mStr.c_str());
139 std::cout << spaces <<
"Successfully opened input ntuple \"" 160 if(theRunManager -> GetCreateOutput())
162 std::ostringstream mStrStr;
163 mStrStr <<
"PROBLEM: FAILED TO OPEN OUTPUT NTUPLE. Fatal " <<
std::endl;
164 G4String mStr(mStrStr.str());
165 G4Exception(
"LBNERunAction::BeginOfRunAction",
" ", RunMustBeAborted, mStr.c_str());
168 if(theRunManager -> GetCreateDk2NuOutput()) {
170 std::ostringstream mStrStr;
171 mStrStr <<
"PROBLEM: FAILED TO OPEN Dk2Nu OUTPUT NTUPLE. Fatal " <<
std::endl;
172 G4String mStr(mStrStr.str());
173 G4Exception(
"LBNERunAction::BeginOfRunAction",
" ", RunMustBeAborted, mStr.c_str());
179 const bool doLBNEQuickPiToNu =
false;
180 if (doLBNEQuickPiToNu) {
183 std::ostringstream fNameStr;
186 fNameStr << theRunManager->GetCurrentRun()->GetRunID();
188 std::cerr <<
" QuickPitoNu file name " << fName <<
std::endl;
197 std::cout <<
"LBNERunAction::BeginOfRunAction() - ...completed run initialization. " <<
std::endl;
double fRMSEDepInArgonGasHorn1
double fRMSEDepInGraphite
bool fDoComputeEDepInHorns
constexpr auto const & right(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
LBNFDeDxMap * fG4MARSDeDxMap
LBNEPrimaryGeneratorAction * GetLBNEPrimaryGeneratorAction()
void SetNumberOfEventsLBNE(int n)
bool GetUseMarsInput() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
static LBNEAnalysis * getInstance()
double fMeanEDepInArgonGasHorn2
G4bool OpenNtuple(G4String ntupleName)
double fRMSEDepInArgonGasHorn2
static LBNEQuickPiToNuVect * Instance()
double fMeanEDepInArgonGasHorn1
double fMeanEDepInGraphite
G4String GetOutputNtpFileName() const
void open(const std::string &prefix)
G4bool CreateDk2NuOutput()
bool GetUseFlukaInput() const
G4String GetNptInputFileName() const
QTextStream & endl(QTextStream &s)