#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 |
2015-03-17
Copyright (c) 2003-2020, The GENIE Collaboration for the full text of the license visit http://copyright.genie-mc.org
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.
|
virtual |
Reimplemented in genie::flux::GNuMIFlux, and genie::flux::GSimpleNtpFlux.
Definition at line 67 of file GFluxFileConfigI.cxx.
|
inlinevirtual |
Definition at line 56 of file GFluxFileConfigI.h.
|
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, and genie::flux::GSimpleNtpFlux.
|
virtual |
Definition at line 33 of file GFluxFileConfigI.cxx.
|
virtual |
Definition at line 44 of file GFluxFileConfigI.cxx.
|
pure virtual |
print the current configuration
Implemented in genie::flux::GNuMIFlux, and genie::flux::GSimpleNtpFlux.
|
virtual |
specify list of flux neutrino species
Definition at line 99 of file GFluxFileConfigI.cxx.
|
virtual |
limit cycling through input files
Definition at line 85 of file GFluxFileConfigI.cxx.
|
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.
|
virtual |
Definition at line 29 of file GFluxFileConfigI.cxx.
|
protected |
current file cycle default 0 = infinitely
Definition at line 100 of file GFluxFileConfigI.h.
|
protected |
Definition at line 99 of file GFluxFileConfigI.h.
|
protected |
list of neutrino pdg-codes to generate
Definition at line 96 of file GFluxFileConfigI.h.
|
protected |
list of nu pdg-codes seen but rejected
Definition at line 97 of file GFluxFileConfigI.h.
|
protected |
XML file that might hold config param_sets.
Definition at line 98 of file GFluxFileConfigI.h.
|
protected |
configurable starting z position for each flux neutrino (in detector coord system)
Definition at line 102 of file GFluxFileConfigI.h.