LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Physics generators for neutrinos, cosmic rays, and others. More...
Namespaces | |
util | |
Classes | |
class | CRYHelper |
Interface to the CRY cosmic-ray generator. More... | |
class | EvtTimeFlat |
Flat time distribution. More... | |
class | EvtTimeFNALBeam |
configurable FNAL Beam time distribution More... | |
class | EvtTimeNone |
time distribution that is delta of 0 (no shift) More... | |
class | EvtTimeShiftFactory |
class | EvtTimeShiftI |
interface for event time distribution More... | |
class | GENIEHelper |
class | GiBUUHelper |
class | MCTruthAndFriendsItr |
class | RNGWrapper |
Typedefs | |
typedef evgb::EvtTimeShiftI *(* | EvtTimeShiftICtorFuncPtr_t) (const std::string &) |
Enumerations | |
enum | { kNeutrinoGenerator = -100, kCosmicRayGenerator = -200 } |
enum | { kNeutrinoGenerator = -100, kCosmicRayGenerator = -200 } |
Functions | |
unsigned int | GetRandomNumberSeed () |
std::string | ExpandEnvVar (const std::string &s) |
void | SetEventGeneratorListAndTune (const std::string &evtlistname="", const std::string &tunename="${GENIE_XSEC_TUNE}") |
void | FillMCTruth (const genie::EventRecord *grec, double spillTime, simb::MCTruth &mctruth, const std::string &genieVersion="unknown", const std::string &genieTune="unknown", bool addGenieVtxTime=false, const std::unordered_map< std::string, std::string > genConfig={}) |
void | FillMCTruth (const genie::EventRecord *grec, TLorentzVector &vtxOffset, simb::MCTruth &mctruth, const std::string &genieVersion="unknown", const std::string &genieTune="unknown", bool addGenieVtxTime=false, const std::unordered_map< std::string, std::string > genConfig={}) |
void | FillGTruth (const genie::EventRecord *grec, simb::GTruth >ruth) |
genie::EventRecord * | RetrieveGHEP (const simb::MCTruth &truth, const simb::GTruth >ruth, bool useFirstTrajPosition=true) |
return genie::EventRecord pointer; callee takes possession More... | |
std::vector< std::unique_ptr< genie::EventRecord > > | RetrieveGHEPs (const art::Handle< std::vector< simb::MCTruth >> &mcTruthHandle, const art::Handle< std::vector< simb::GTruth >> &gTruthHandle) |
std::vector< std::unique_ptr< genie::EventRecord > > | RetrieveGHEPs (const art::Event &e, std::string mcTruthLabel, std::string gTruthLabel) |
void | FillMCFlux (genie::GFluxI *fdriver, simb::MCFlux &mcflux) |
void | FillMCFlux (genie::flux::GNuMIFlux *gnumi, simb::MCFlux &mcflux) |
void | FillMCFlux (const genie::flux::GNuMIFluxPassThroughInfo *nflux, double dk2gen, simb::MCFlux &flux) |
void | FillMCFlux (genie::flux::GSimpleNtpFlux *gsimple, simb::MCFlux &mcflux) |
void | FillMCFlux (const genie::flux::GSimpleNtpEntry *nflux_entry, const genie::flux::GSimpleNtpNuMI *nflux_numi, const genie::flux::GSimpleNtpAux *nflux_aux, const genie::flux::GSimpleNtpMeta *nflux_meta, simb::MCFlux &flux) |
void | FillMCFlux (genie::flux::GDk2NuFlux *gdk2nu, simb::MCFlux &mcflux) |
void | FillMCFlux (const bsim::Dk2Nu *dk2nu, const bsim::NuChoice *nuchoice, simb::MCFlux &flux) |
Variables | |
template<class T > | |
double(T::* | RNGWrapper )(void) |
static const int | kNue = 0 |
static const int | kNueBar = 1 |
static const int | kNuMu = 2 |
static const int | kNuMuBar = 3 |
static const int | kNuTau = 4 |
static const int | kNuTauBar = 5 |
Physics generators for neutrinos, cosmic rays, and others.
typedef evgb::EvtTimeShiftI*(* evgb::EvtTimeShiftICtorFuncPtr_t) (const std::string &) |
Definition at line 31 of file EvtTimeShiftFactory.h.
anonymous enum |
Enumerate mother codes for primary particles.
Normally the mother code for a primary particle would be set to some arbitrary invalid value like -1, however, we can use this to mark the source of the particle as being either, eg., neutrino induced or from cosmic-rays.
Enumerator | |
---|---|
kNeutrinoGenerator | |
kCosmicRayGenerator |
Definition at line 14 of file evgenbase.h.
anonymous enum |
Enumerate mother codes for primary particles.
Normally the mother code for a primary particle would be set to some arbitrary invalid value like -1, however, we can use this to mark the source of the particle as being either, eg., neutrino induced or from cosmic-rays.
Enumerator | |
---|---|
kNeutrinoGenerator | |
kCosmicRayGenerator |
Definition at line 14 of file evgenbase.h.
std::string evgb::ExpandEnvVar | ( | const std::string & | s | ) |
Definition at line 98 of file GENIE2ART.cxx.
Referenced by SetEventGeneratorListAndTune().
void evgb::FillGTruth | ( | const genie::EventRecord * | grec, |
simb::GTruth & | gtruth | ||
) |
Definition at line 391 of file GENIE2ART.cxx.
References simb::GTruth::fCharmHadronPdg, simb::GTruth::fDecayMode, simb::GTruth::fDiffXsec, simb::GTruth::fFinalLeptonPdg, simb::GTruth::fFinalQuarkPdg, simb::GTruth::fFShadSystP4, simb::GTruth::fGint, simb::GTruth::fGPhaseSpace, simb::GTruth::fgQ2, simb::GTruth::fgq2, simb::GTruth::fGscatter, simb::GTruth::fgT, simb::GTruth::fgW, simb::GTruth::fgWrun, simb::GTruth::fgX, simb::GTruth::fgY, simb::GTruth::fHitNucP4, simb::GTruth::fHitNucPos, simb::GTruth::fIsCharm, simb::GTruth::fIsSeaQuark, simb::GTruth::fIsStrange, simb::GTruth::fNumNeutron, simb::GTruth::fNumPi0, simb::GTruth::fNumPiMinus, simb::GTruth::fNumPiPlus, simb::GTruth::fNumProton, simb::GTruth::fNumRho0, simb::GTruth::fNumRhoMinus, simb::GTruth::fNumRhoPlus, simb::GTruth::fNumSingleGammas, simb::GTruth::fprobability, simb::GTruth::fProbeP4, simb::GTruth::fProbePDG, simb::GTruth::fResNum, simb::GTruth::fStrangeHadronPdg, simb::GTruth::ftgtA, simb::GTruth::fTgtP4, simb::GTruth::ftgtPDG, simb::GTruth::ftgtZ, simb::GTruth::fVertex, simb::GTruth::fweight, and simb::GTruth::fXsec.
Referenced by evg::AddGenieEventsToArt::produce(), and evgb::GENIEHelper::Sample().
void evgb::FillMCFlux | ( | genie::GFluxI * | fdriver, |
simb::MCFlux & | mcflux | ||
) |
Definition at line 834 of file GENIE2ART.cxx.
Referenced by FillMCFlux(), evg::AddGenieEventsToArt::produce(), and evgb::GENIEHelper::Sample().
void evgb::FillMCFlux | ( | genie::flux::GNuMIFlux * | gnumi, |
simb::MCFlux & | mcflux | ||
) |
Definition at line 883 of file GENIE2ART.cxx.
References FillMCFlux().
void evgb::FillMCFlux | ( | const genie::flux::GNuMIFluxPassThroughInfo * | nflux, |
double | dk2gen, | ||
simb::MCFlux & | flux | ||
) |
Definition at line 892 of file GENIE2ART.cxx.
References simb::MCFlux::fbeampx, simb::MCFlux::fbeampy, simb::MCFlux::fbeampz, simb::MCFlux::fbeamx, simb::MCFlux::fbeamy, simb::MCFlux::fbeamz, simb::MCFlux::fdk2gen, simb::MCFlux::fevtno, simb::MCFlux::fFluxType, simb::MCFlux::fmupare, simb::MCFlux::fmuparpx, simb::MCFlux::fmuparpy, simb::MCFlux::fmuparpz, simb::MCFlux::fndecay, simb::MCFlux::fndxdz, simb::MCFlux::fndxdzfar, simb::MCFlux::fndxdznea, simb::MCFlux::fndydz, simb::MCFlux::fndydzfar, simb::MCFlux::fndydznea, simb::MCFlux::fnecm, simb::MCFlux::fnenergy, simb::MCFlux::fnenergyf, simb::MCFlux::fnenergyn, simb::MCFlux::fnimpwt, simb::MCFlux::fnorig, simb::MCFlux::fnpz, simb::MCFlux::fntype, simb::MCFlux::fnwtfar, simb::MCFlux::fnwtnear, simb::MCFlux::fpdpx, simb::MCFlux::fpdpy, simb::MCFlux::fpdpz, simb::MCFlux::fppdxdz, simb::MCFlux::fppdydz, simb::MCFlux::fppenergy, simb::MCFlux::fppmedium, simb::MCFlux::fpppz, simb::MCFlux::fppvx, simb::MCFlux::fppvy, simb::MCFlux::fppvz, simb::MCFlux::fptype, simb::MCFlux::frun, simb::MCFlux::ftgen, simb::MCFlux::ftgppx, simb::MCFlux::ftgppy, simb::MCFlux::ftgppz, simb::MCFlux::ftgptype, simb::MCFlux::ftprivx, simb::MCFlux::ftprivy, simb::MCFlux::ftprivz, simb::MCFlux::ftptype, simb::MCFlux::ftpx, simb::MCFlux::ftpy, simb::MCFlux::ftpz, simb::MCFlux::ftvx, simb::MCFlux::ftvy, simb::MCFlux::ftvz, simb::MCFlux::fvx, simb::MCFlux::fvy, simb::MCFlux::fvz, simb::MCFlux::fxpoint, simb::MCFlux::fypoint, simb::MCFlux::fzpoint, simb::kNtuple, and simb::MCFlux::Reset().
void evgb::FillMCFlux | ( | genie::flux::GSimpleNtpFlux * | gsimple, |
simb::MCFlux & | mcflux | ||
) |
Definition at line 980 of file GENIE2ART.cxx.
References FillMCFlux().
void evgb::FillMCFlux | ( | const genie::flux::GSimpleNtpEntry * | nflux_entry, |
const genie::flux::GSimpleNtpNuMI * | nflux_numi, | ||
const genie::flux::GSimpleNtpAux * | nflux_aux, | ||
const genie::flux::GSimpleNtpMeta * | nflux_meta, | ||
simb::MCFlux & | flux | ||
) |
Definition at line 993 of file GENIE2ART.cxx.
References simb::MCFlux::fdk2gen, simb::MCFlux::fevtno, simb::MCFlux::fFluxType, simb::MCFlux::fmupare, simb::MCFlux::fmuparpx, simb::MCFlux::fmuparpy, simb::MCFlux::fmuparpz, simb::MCFlux::fndecay, simb::MCFlux::fnecm, simb::MCFlux::fnenergyf, simb::MCFlux::fnenergyn, simb::MCFlux::fnimpwt, simb::MCFlux::fntype, simb::MCFlux::fnwtfar, simb::MCFlux::fnwtnear, simb::MCFlux::fpdpx, simb::MCFlux::fpdpy, simb::MCFlux::fpdpz, simb::MCFlux::fppdxdz, simb::MCFlux::fppdydz, simb::MCFlux::fppmedium, simb::MCFlux::fpppz, simb::MCFlux::fptype, simb::MCFlux::frun, simb::MCFlux::ftgen, simb::MCFlux::ftgptype, simb::MCFlux::ftptype, simb::MCFlux::ftpx, simb::MCFlux::ftpy, simb::MCFlux::ftpz, simb::MCFlux::fvx, simb::MCFlux::fvy, simb::MCFlux::fvz, simb::kSimple_Flux, and simb::MCFlux::Reset().
void evgb::FillMCFlux | ( | genie::flux::GDk2NuFlux * | gdk2nu, |
simb::MCFlux & | mcflux | ||
) |
Definition at line 1152 of file GENIE2ART.cxx.
References simb::MCFlux::fdk2gen, and FillMCFlux().
void evgb::FillMCFlux | ( | const bsim::Dk2Nu * | dk2nu, |
const bsim::NuChoice * | nuchoice, | ||
simb::MCFlux & | flux | ||
) |
Definition at line 1161 of file GENIE2ART.cxx.
References simb::MCFlux::fevtno, simb::MCFlux::fFluxType, simb::MCFlux::fmupare, simb::MCFlux::fmuparpx, simb::MCFlux::fmuparpy, simb::MCFlux::fmuparpz, simb::MCFlux::fndecay, simb::MCFlux::fnecm, simb::MCFlux::fnenergyf, simb::MCFlux::fnenergyn, simb::MCFlux::fnimpwt, simb::MCFlux::fnorig, simb::MCFlux::fntype, simb::MCFlux::fnwtfar, simb::MCFlux::fnwtnear, simb::MCFlux::fpdpx, simb::MCFlux::fpdpy, simb::MCFlux::fpdpz, simb::MCFlux::fppdxdz, simb::MCFlux::fppdydz, simb::MCFlux::fppenergy, simb::MCFlux::fppmedium, simb::MCFlux::fpppz, simb::MCFlux::fppvx, simb::MCFlux::fppvy, simb::MCFlux::fppvz, simb::MCFlux::fptype, simb::MCFlux::frun, simb::MCFlux::ftgen, simb::MCFlux::ftptype, simb::MCFlux::ftpx, simb::MCFlux::ftpy, simb::MCFlux::ftpz, simb::MCFlux::ftvx, simb::MCFlux::ftvy, simb::MCFlux::ftvz, simb::MCFlux::fvx, simb::MCFlux::fvy, simb::MCFlux::fvz, simb::kDk2Nu, and simb::MCFlux::Reset().
void evgb::FillMCTruth | ( | const genie::EventRecord * | grec, |
double | spillTime, | ||
simb::MCTruth & | mctruth, | ||
const std::string & | genieVersion = "unknown" , |
||
const std::string & | genieTune = "unknown" , |
||
bool | addGenieVtxTime = false , |
||
const std::unordered_map< std::string, std::string > | genConfig = {} |
||
) |
Definition at line 182 of file GENIE2ART.cxx.
Referenced by evg::AddGenieEventsToArt::produce(), and evgb::GENIEHelper::Sample().
void evgb::FillMCTruth | ( | const genie::EventRecord * | grec, |
TLorentzVector & | vtxOffset, | ||
simb::MCTruth & | mctruth, | ||
const std::string & | genieVersion = "unknown" , |
||
const std::string & | genieTune = "unknown" , |
||
bool | addGenieVtxTime = false , |
||
const std::unordered_map< std::string, std::string > | genConfig = {} |
||
) |
Definition at line 194 of file GENIE2ART.cxx.
References simb::MCTruth::Add(), simb::kAMNuGamma, simb::kBeamNeutrino, simb::kCC, simb::kCoh, simb::kCohElastic, simb::kDiffractive, simb::kDIS, simb::kElectronScattering, simb::kEM, simb::kGENIE, simb::kGlashowResonance, simb::kIMDAnnihilation, simb::kInverseBetaDecay, simb::kInverseMuDecay, simb::kMEC, simb::kNC, simb::kNuanceOffset, simb::kNuElectronElastic, simb::kQE, simb::kRes, simb::kUnknownInteraction, simb::kWeakMix, part, simb::MCTruth::SetGeneratorInfo(), simb::MCTruth::SetNeutrino(), simb::MCTruth::SetOrigin(), simb::MCParticle::Vx(), x, and y.
|
inline |
Definition at line 22 of file evgenbase.h.
Referenced by evg::AddGenieEventsToArt::AddGenieEventsToArt(), and evgb::GENIEHelper::GENIEHelper().
genie::EventRecord * evgb::RetrieveGHEP | ( | const simb::MCTruth & | truth, |
const simb::GTruth & | gtruth, | ||
bool | useFirstTrajPosition = true |
||
) |
return genie::EventRecord pointer; callee takes possession
Definition at line 540 of file GENIE2ART.cxx.
References simb::MCParticle::E(), simb::GTruth::fCharmHadronPdg, simb::GTruth::fDecayMode, simb::GTruth::fDiffXsec, simb::GTruth::fFinalLeptonPdg, simb::GTruth::fFinalQuarkPdg, simb::GTruth::fFShadSystP4, simb::GTruth::fGint, simb::GTruth::fGPhaseSpace, simb::GTruth::fgQ2, simb::GTruth::fgq2, simb::GTruth::fGscatter, simb::GTruth::fgT, simb::GTruth::fgW, simb::GTruth::fgWrun, simb::GTruth::fgX, simb::GTruth::fgY, simb::GTruth::fHitNucPos, simb::GTruth::fIsCharm, simb::GTruth::fIsSeaQuark, simb::GTruth::fIsStrange, simb::GTruth::fNumNeutron, simb::GTruth::fNumPi0, simb::GTruth::fNumPiMinus, simb::GTruth::fNumPiPlus, simb::GTruth::fNumProton, simb::GTruth::fNumRho0, simb::GTruth::fNumRhoMinus, simb::GTruth::fNumRhoPlus, simb::GTruth::fNumSingleGammas, simb::GTruth::fprobability, simb::GTruth::fProbePDG, simb::GTruth::fResNum, simb::GTruth::fStrangeHadronPdg, simb::GTruth::ftgtA, simb::GTruth::ftgtPDG, simb::GTruth::ftgtZ, simb::GTruth::fVertex, simb::GTruth::fweight, simb::GTruth::fXsec, simb::MCTruth::GetNeutrino(), simb::MCTruth::GetParticle(), simb::MCParticle::Gvt(), simb::MCParticle::Gvx(), simb::MCParticle::Gvy(), simb::MCParticle::Gvz(), simb::MCNeutrino::HitNuc(), simb::MCNeutrino::HitQuark(), simb::MCNeutrino::Lepton(), simb::MCParticle::Mother(), simb::MCTruth::NParticles(), simb::MCParticle::NumberTrajectoryPoints(), simb::MCParticle::PdgCode(), simb::MCParticle::Polarization(), simb::MCParticle::Px(), simb::MCParticle::Py(), simb::MCParticle::Pz(), simb::MCParticle::Rescatter(), simb::MCParticle::StatusCode(), and target.
Referenced by evg::GenieOutput::analyze(), rwgt::NuReweight::CalcWeight(), evwgh::GenieWeightCalc::GetWeight(), and RetrieveGHEPs().
std::vector< std::unique_ptr< genie::EventRecord > > evgb::RetrieveGHEPs | ( | const art::Handle< std::vector< simb::MCTruth >> & | mcTruthHandle, |
const art::Handle< std::vector< simb::GTruth >> & | gTruthHandle | ||
) |
Definition at line 802 of file GENIE2ART.cxx.
References RetrieveGHEP().
Referenced by RetrieveGHEPs().
std::vector< std::unique_ptr< genie::EventRecord > > evgb::RetrieveGHEPs | ( | const art::Event & | e, |
std::string | mcTruthLabel, | ||
std::string | gTruthLabel | ||
) |
Definition at line 821 of file GENIE2ART.cxx.
References art::ProductRetriever::getHandle(), and RetrieveGHEPs().
void evgb::SetEventGeneratorListAndTune | ( | const std::string & | evtlistname = "" , |
const std::string & | tunename = "${GENIE_XSEC_TUNE}" |
||
) |
Definition at line 128 of file GENIE2ART.cxx.
References ExpandEnvVar().
Referenced by evwgh::EventWeight::EventWeight(), evgb::GENIEHelper::Initialize(), evgen::NeutronOsc::NeutronOsc(), and evgen::NucleonDecay::NucleonDecay().
|
static |
Definition at line 206 of file GENIEHelper.cxx.
Referenced by evgb::GENIEHelper::Sample().
|
static |
Definition at line 207 of file GENIEHelper.cxx.
Referenced by evgb::GENIEHelper::Sample().
|
static |
Definition at line 208 of file GENIEHelper.cxx.
Referenced by evgb::GENIEHelper::Sample().
|
static |
Definition at line 209 of file GENIEHelper.cxx.
Referenced by evgb::GENIEHelper::Sample().
|
static |
Definition at line 210 of file GENIEHelper.cxx.
Referenced by evgb::GENIEHelper::Sample().
|
static |
Definition at line 211 of file GENIEHelper.cxx.
Referenced by evgb::GENIEHelper::Sample().
double(T::* evgb::RNGWrapper) (void) |
Definition at line 82 of file CRYHelper.h.