LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
GENIE2ART.h File Reference

Functions for transforming GENIE objects into ART objects (and back) More...

#include <string>
#include "art/Framework/Principal/Event.h"
#include "art/Framework/Principal/Handle.h"
#include <unordered_map>

Go to the source code of this file.

Namespaces

 genie
 GENIE neutrino interaction simulation objects.
 
 genie::flux
 
 bsim
 
 simb
 ART objects.
 
 evgb
 Physics generators for neutrinos, cosmic rays, and others.
 

Functions

std::string evgb::ExpandEnvVar (const std::string &s)
 
void evgb::SetEventGeneratorListAndTune (const std::string &evtlistname="", const std::string &tunename="${GENIE_XSEC_TUNE}")
 
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={})
 
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={})
 
void evgb::FillGTruth (const genie::EventRecord *grec, simb::GTruth &gtruth)
 
genie::EventRecord * evgb::RetrieveGHEP (const simb::MCTruth &truth, const simb::GTruth &gtruth, bool useFirstTrajPosition=true)
 return genie::EventRecord pointer; callee takes possession More...
 
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)
 
std::vector< std::unique_ptr< genie::EventRecord > > evgb::RetrieveGHEPs (const art::Event &e, std::string mcTruthLabel, std::string gTruthLabel)
 
void evgb::FillMCFlux (genie::GFluxI *fdriver, simb::MCFlux &mcflux)
 
void evgb::FillMCFlux (genie::flux::GNuMIFlux *gnumi, simb::MCFlux &mcflux)
 
void evgb::FillMCFlux (const genie::flux::GNuMIFluxPassThroughInfo *nflux, double dk2gen, simb::MCFlux &flux)
 
void evgb::FillMCFlux (genie::flux::GSimpleNtpFlux *gsimple, simb::MCFlux &mcflux)
 
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)
 
void evgb::FillMCFlux (genie::flux::GDk2NuFlux *gdk2nu, simb::MCFlux &mcflux)
 
void evgb::FillMCFlux (const bsim::Dk2Nu *dk2nu, const bsim::NuChoice *nuchoice, simb::MCFlux &flux)
 

Detailed Description

Functions for transforming GENIE objects into ART objects (and back)

Version
Id
GENIE2ART.h,v 1.0 2016-04-20 18:42:01 rhatcher Exp
Author
rhatc.nosp@m.her@.nosp@m.fnal..nosp@m.gov Parts taken from GENIEHelper & NuReweight classes

Definition in file GENIE2ART.h.