BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
#include <Model.hh>
Public Member Functions | |
Model (bool debugIn, int dataVersionIn=0) | |
std::vector< std::string > | SamplerNames () const |
Access all the unique sampler names from the model. | |
std::vector< std::string > | SamplerCNames () const |
std::vector< std::string > | SamplerSNames () const |
std::vector< std::string > | CollimatorNames () const |
Access all the sampler branch names from the model. | |
int | DataVersion () const |
Accessor. | |
void | SetDataVersion (int dataVersionIn) |
void | SetBranchAddress (TTree *t, bool allBranchesOn=true, const RBDS::VectorString *branchesToTurnOn=nullptr) |
Set the branch addresses to address the contents of the file. | |
Data Fields | |
BDSOutputROOTEventModel * | model |
Member that ROOT can map file data to locally. | |
Private Member Functions | |
ClassDef (Model, 2) | |
Private Attributes | |
bool | debug |
int | dataVersion |
std::vector< std::string > Model::CollimatorNames | ( | ) | const |
Access all the sampler branch names from the model.
Definition at line 91 of file Model.cc.
References BDSOutputROOTEventModel::collimatorBranchNamesUnique, and model.
Referenced by DataLoader::BuildEventBranchNameList().
std::vector< std::string > Model::SamplerNames | ( | ) | const |
Access all the unique sampler names from the model.
Definition at line 73 of file Model.cc.
References model.
Referenced by DataLoader::BuildEventBranchNameList(), and Compare::Trees().
void Model::SetBranchAddress | ( | TTree * | t, |
bool | allBranchesOn = true , |
||
const RBDS::VectorString * | branchesToTurnOn = nullptr |
||
) |
Set the branch addresses to address the contents of the file.
Definition at line 50 of file Model.cc.
References model.
Referenced by DataLoader::BuildEventBranchNameList(), DataLoader::SetBranchAddress(), and Compare::Trees().
|
inline |
Allow setting of data version if default constructor is used. If the default constructor was used, this function should be used before SetBranchAddress().
BDSOutputROOTEventModel* Model::model |
Member that ROOT can map file data to locally.
Definition at line 64 of file Model.hh.
Referenced by CollimatorNames(), EventDisplay::DrawModel(), EventDisplay::DrawSamplers(), SamplerNames(), and SetBranchAddress().