Skip to content

Commit

Permalink
Merge pull request #112 from JeffersonLab/support_for_skip_card_rtj
Browse files Browse the repository at this point in the history
- add support for the SKIP card in control.in [rtj]
  • Loading branch information
T-Britton authored May 23, 2019
2 parents 16b2bc9 + 65f677d commit 9ea7ac2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/GlueXPrimaryGeneratorAction.cc
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,15 @@ GlueXPrimaryGeneratorAction::GlueXPrimaryGeneratorAction()
}
fHDDMistream = new hddm_s::istream(*fHDDMinfile);
G4cout << "Opened input file: " << infile[1] << G4endl;
std::map<int,int> skippars;
if (user_opts->Find("SKIP", skippars))
{
if (skippars[1] > 0)
{
fHDDMistream->skip(skippars[1]);
G4cout << "skipped first " << skippars[1] << " input events." << G4endl;
}
}
fPrimaryGenerator = new GlueXPrimaryGenerator(fHDDMistream);
fSourceType = SOURCE_TYPE_HDDM;
}
Expand Down Expand Up @@ -336,7 +345,7 @@ GlueXPrimaryGeneratorAction::GlueXPrimaryGeneratorAction()
}
fGunParticle.tlogOption = 0;
std::map<int,int> tlogpars;
if (user_opts->Find("PLOG", tlogpars)) {
if (user_opts->Find("TLOG", tlogpars)) {
fGunParticle.tlogOption = tlogpars[1];
}

Expand Down

0 comments on commit 9ea7ac2

Please sign in to comment.