24#include "RebdsimTypes.hh"
52 bool processSamplersIn =
true,
53 bool allBranchesOn =
true,
54 const RBDS::BranchMap* branchesToTurnOn =
nullptr,
55 bool backwardsCompatibleIn =
true);
77 const RBDS::BranchMap* bToTurnOn =
nullptr);
79 inline int DataVersion()
const {
return dataVersion;}
105 const std::set<std::string>& GetAllCylindricalAndSphericalSamplerNames()
const {
return allSamplerCAndSNames;}
106 const std::set<std::string>& GetAllCylindricalSamplerNames()
const {
return allSamplerCNamesSet;}
107 const std::set<std::string>& GetAllSphericalSamplerNames()
const {
return allSamplerSNamesSet;}
111 bool processSamplers;
113 const RBDS::BranchMap* branchesToTurnOn;
114 bool backwardsCompatible;
124 std::vector<std::string> fileNames;
125 std::vector<std::string> treeNames;
126 std::vector<std::string> branchNames;
127 std::vector<std::string> samplerNames;
128 std::vector<std::string> samplerCNames;
129 std::vector<std::string> samplerSNames;
130 std::vector<std::string> allSamplerNames;
131 std::vector<std::string> allCSamplerNames;
132 std::vector<std::string> allSSamplerNames;
133 std::vector<std::string> collimatorNames;
138 std::set<std::string> allSamplerCNamesSet;
139 std::set<std::string> allSamplerSNamesSet;
Loader for a ROOT file using classes used to generate the file.
std::vector< std::string > GetSamplerCNames()
Accessor.
std::vector< std::string > GetFileNames()
Accessor.
void SetBranchAddress(bool allOn=true, const RBDS::BranchMap *bToTurnOn=nullptr)
Map each chain to the member instance of each storage class in this class.
void BuildEventBranchNameList()
Event * GetEvent()
Accessor.
std::set< std::string > allSamplerCAndSNames
std::vector< std::string > GetCollimatorNames()
Accessor.
std::vector< std::string > GetSamplerNames()
Accessor.
std::vector< std::string > GetTreeNames()
Accessor.
Beam * GetBeam()
Accessor.
Header * GetHeader()
Accessor.
ParticleData * GetParticleData()
Accessor.
TChain * GetParticleDataTree()
Accessor.
int dataVersion
Integer version of data loaded.
TChain * GetBeamTree()
Accessor.
void CommonCtor(const std::string &fileName)
TChain * GetOptionsTree()
Accessor.
void BuildTreeNameList()
Open the first file in the file list and map the trees in it.
TChain * GetRunTree()
Accessor.
TChain * GetModelTree()
Accessor.
std::vector< std::string > GetSamplerSNames()
Accessor.
Options * GetOptions()
Accessor.
void BuildInputFileList(std::string inputPath)
Build up the input file list.
void ChainTrees()
Create a tree for each sampler and add all the files to it.
std::vector< std::string > GetBranchNames()
Accessor.
TChain * GetEventTree()
Accessor.
Model * GetModel()
Accessor.
TChain * GetHeaderTree()
Accessor.
Class to overlay a run from a ROOT file with.