Skip to content

Commit

Permalink
Merge production into production_pythia8
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Oct 5, 2021
2 parents 62ff34e + 7a017bb commit b5d5853
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 13 deletions.
12 changes: 6 additions & 6 deletions common/G4_EventEvaluator.C
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ namespace Enable
{
// use Enable::EVENT_EVAL = true; in your macro
bool EVENT_EVAL = false;
bool EVENT_EVAL_DO_HEPMC = false;
bool EVENT_EVAL_DO_EVT_LVL = false;
} // namespace Enable

namespace EVENT_EVALUATOR
Expand All @@ -32,10 +34,8 @@ void Event_Eval(const std::string &filename)
eval->set_do_TRACKS(true);
//eval->set_do_HITS(true);
eval->set_do_PROJECTIONS(true);
if (G4TRACKING::DISPLACED_VERTEX)
eval->set_do_VERTEX(true);
if (Enable::DIRC_RECO or Enable::mRICH_RECO or Enable::RICH_RECO)
eval->set_do_PID_LogLikelihood(true);
if (G4TRACKING::DISPLACED_VERTEX) eval->set_do_VERTEX(true);
if (Enable::DIRC_RECO or Enable::mRICH_RECO or Enable::RICH_RECO) eval->set_do_PID_LogLikelihood(true);
}
if (Enable::CEMC) eval->set_do_CEMC(true);
if (Enable::EEMC || Enable::EEMCH) eval->set_do_EEMC(true);
Expand All @@ -51,8 +51,8 @@ void Event_Eval(const std::string &filename)
if (Enable::BECAL) eval->set_do_BECAL(true);

eval->set_do_MCPARTICLES(true);
eval->set_do_HEPMC(Input::PYTHIA6 or Input::PYTHIA8 or Input::SARTRE or Input::HEPMC or Input::READEIC);
eval->set_do_store_event_level_info(Input::PYTHIA6 or Input::PYTHIA8 or Input::READEIC);
eval->set_do_HEPMC(Enable::EVENT_EVAL_DO_HEPMC);
eval->set_do_store_event_level_info(Enable::EVENT_EVAL_DO_EVT_LVL);
se->registerSubsystem(eval);

return;
Expand Down
3 changes: 2 additions & 1 deletion detectors/EICDetector/Fun4All_G4_EICDetector.C
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,8 @@ int Fun4All_G4_EICDetector(
Enable::EVENT_EVAL = false;
// EVENT_EVALUATOR::Verbosity = 1;
// EVENT_EVALUATOR::EnergyThreshold = 0.05; // GeV

Enable::EVENT_EVAL_DO_HEPMC = Input::PYTHIA6 or Input::PYTHIA8 or Input::SARTRE or Input::HEPMC or Input::READEIC;
Enable::EVENT_EVAL_DO_EVT_LVL = Input::PYTHIA6 or Input::PYTHIA8 or Input::READEIC;
//Enable::USER = true;

//---------------
Expand Down
18 changes: 12 additions & 6 deletions detectors/EICDetector/Fun4All_runEvaluators.C
Original file line number Diff line number Diff line change
Expand Up @@ -126,19 +126,25 @@ int Fun4All_runEvaluators(
//----
// Enable HepMC writing
//----
Input::HEPMC = true;
string singleParticles = "single";
size_t = inputFile.find(singleParticles);
if (pos == ring::npos) Input::HEPMC = false;

Enable::EVENT_EVAL_DO_HEPMC = true;
Enable::EVENT_EVAL_DO_EVT_LVL = true;
size_t pos = inputFile.find("single");
if (pos != string::npos)
{
Enable::EVENT_EVAL_DO_HEPMC = false;
Enable::EVENT_EVAL_DO_EVT_LVL = false;
}
pos = inputFile.find("SARTRE");
if (pos != string::npos) Enable::EVENT_EVAL_DO_EVT_LVL = false;

//-----
// Output file headers and path
//-----

//Get base file name
string baseFile = inputFile;
string remove_this = ".root";
size_t pos = baseFile.find(remove_this);
pos = baseFile.find(remove_this);
if (pos != string::npos)
{
baseFile.erase(pos, remove_this.length());
Expand Down

0 comments on commit b5d5853

Please sign in to comment.