GENIEGenerator
|
#include <GFluxFileConfigI.h>
Public Member Functions | |
GFluxFileConfigI () | |
virtual | ~GFluxFileConfigI () |
virtual void | LoadBeamSimData (const std::vector< std::string > &filenames, const std::string &det_loc)=0 |
virtual void | LoadBeamSimData (const std::set< std::string > &filenames, const std::string &det_loc) |
virtual void | LoadBeamSimData (const std::string &filename, const std::string &det_loc) |
virtual void | SetXMLFileBase (std::string xmlbasename="") |
virtual std::string | GetXMLFileBase () const |
virtual void | GetBranchInfo (std::vector< std::string > &branchNames, std::vector< std::string > &branchClassNames, std::vector< void ** > &branchObjPointers) |
virtual TTree * | GetMetaDataTree () |
virtual void | PrintConfig ()=0 |
print the current configuration More... | |
virtual void | SetFluxParticles (const PDGCodeList &particles) |
specify list of flux neutrino species More... | |
virtual void | SetUpstreamZ (double z0) |
virtual void | SetNumOfCycles (long int ncycle) |
limit cycling through input files More... | |
Protected Attributes | |
PDGCodeList * | fPdgCList |
list of neutrino pdg-codes to generate More... | |
PDGCodeList * | fPdgCListRej |
list of nu pdg-codes seen but rejected More... | |
std::string | fXMLbasename |
XML file that might hold config param_sets. More... | |
long int | fNCycles |
times to cycle through the ntuple(s)More... | |
long int | fICycle |
double | fZ0 |
Definition at line 31 of file GFluxFileConfigI.h.
genie::flux::GFluxFileConfigI::GFluxFileConfigI | ( | ) |
Definition at line 18 of file GFluxFileConfigI.cxx.
|
virtual |
Definition at line 27 of file GFluxFileConfigI.cxx.
|
virtual |
allow caller to copy current status / ntuple entry info in the output file by providing copies of internal info
Assumes that branch object pointers will not change which may require either a copy be made or, if using the class directly for reading the branch, one must force ROOT to not autodelete: myns::MyClassType* fCurrMyClass = new myns::MyClassType; myTree->SetBranchAddress("bname",&fCurMyClass); //? TBranch* b = myTree->GetBranch("bname"); //? b->SetAutoDelete(false);
ensure vectors are sized sufficiently (or use .push_back()) branchNames[i] = "bname" branchClassNames[i] = "myns::MyClassType" branchObjPointers[i] = (void**)
Reimplemented in genie::flux::GNuMIFlux, and genie::flux::GSimpleNtpFlux.
Definition at line 54 of file GFluxFileConfigI.cxx.
Referenced by main().
|
virtual |
Reimplemented in genie::flux::GNuMIFlux, and genie::flux::GSimpleNtpFlux.
Definition at line 67 of file GFluxFileConfigI.cxx.
Referenced by main().
|
inlinevirtual |
Definition at line 56 of file GFluxFileConfigI.h.
References fXMLbasename.
Referenced by genie::flux::GNuMIFluxXMLHelper::LoadConfig().
|
pure virtual |
first is primary method for loading root flux ntuple files and config others are alternatives that can be overloaded but have sensible defaults to fall back to calling the vector version
Implemented in genie::flux::GNuMIFlux.
Referenced by LoadBeamSimData(), LoadDetectorPosition(), and main().
|
virtual |
Definition at line 33 of file GFluxFileConfigI.cxx.
References LoadBeamSimData().
|
virtual |
Definition at line 44 of file GFluxFileConfigI.cxx.
References LoadBeamSimData().
|
pure virtual |
print the current configuration
Implemented in genie::flux::GNuMIFlux, and genie::flux::GSimpleNtpFlux.
Referenced by main().
|
virtual |
specify list of flux neutrino species
Definition at line 99 of file GFluxFileConfigI.cxx.
References genie::PDGCodeList::Copy(), fPdgCList, LOG, and pINFO.
Referenced by main().
|
virtual |
limit cycling through input files
Definition at line 85 of file GFluxFileConfigI.cxx.
References fNCycles.
Referenced by main(), and genie::flux::GSimpleNtpFlux::SetDefaults().
|
virtual |
set flux neutrino initial z position (upstream of the detector) pushed back from the normal flux window
Definition at line 73 of file GFluxFileConfigI.cxx.
References fZ0.
Referenced by main(), genie::flux::GNuMIFluxXMLHelper::ParseParamSet(), and genie::flux::GSimpleNtpFlux::SetDefaults().
|
virtual |
Definition at line 29 of file GFluxFileConfigI.cxx.
References fXMLbasename.
Referenced by genie::flux::GNuMIFlux::LoadConfig().
|
protected |
current file cycle default 0 = infinitely
Definition at line 100 of file GFluxFileConfigI.h.
Referenced by genie::flux::GSimpleNtpFlux::CleanUp(), genie::flux::GSimpleNtpFlux::Clear(), genie::flux::GSimpleNtpFlux::GenerateNext_weighted(), genie::flux::GSimpleNtpFlux::Initialize(), genie::flux::GSimpleNtpFlux::LoadBeamSimData(), genie::flux::GSimpleNtpFlux::PrintConfig(), and genie::flux::GNuMIFlux::PrintConfig().
|
protected |
Definition at line 99 of file GFluxFileConfigI.h.
Referenced by genie::flux::GSimpleNtpFlux::CleanUp(), genie::flux::GSimpleNtpFlux::GenerateNext_weighted(), genie::flux::GSimpleNtpFlux::PrintConfig(), genie::flux::GNuMIFlux::PrintConfig(), and SetNumOfCycles().
|
protected |
list of neutrino pdg-codes to generate
Definition at line 96 of file GFluxFileConfigI.h.
Referenced by genie::flux::GSimpleNtpFlux::CleanUp(), genie::flux::GSimpleNtpFlux::FluxParticles(), genie::flux::GNuMIFlux::FluxParticles(), genie::flux::GSimpleNtpFlux::GenerateNext_weighted(), genie::flux::GSimpleNtpFlux::PrintConfig(), genie::flux::GNuMIFlux::PrintConfig(), genie::flux::GSimpleNtpFlux::ProcessMeta(), and SetFluxParticles().
|
protected |
list of nu pdg-codes seen but rejected
Definition at line 97 of file GFluxFileConfigI.h.
Referenced by genie::flux::GSimpleNtpFlux::CleanUp(), genie::flux::GSimpleNtpFlux::GenerateNext_weighted(), genie::flux::GSimpleNtpFlux::PrintConfig(), and genie::flux::GNuMIFlux::PrintConfig().
|
protected |
XML file that might hold config param_sets.
Definition at line 98 of file GFluxFileConfigI.h.
Referenced by GetXMLFileBase(), and SetXMLFileBase().
|
protected |
configurable starting z position for each flux neutrino (in detector coord system)
Definition at line 102 of file GFluxFileConfigI.h.
Referenced by genie::flux::GSimpleNtpFlux::GenerateNext_weighted(), genie::flux::GSimpleNtpFlux::PrintConfig(), genie::flux::GNuMIFlux::PrintConfig(), and SetUpstreamZ().