11 fFile = std::unique_ptr<TFile>(TFile::Open(locator.c_str()));
13 throw std::runtime_error(fmt::format(
"[SimSource] Error opening file: {}", locator));
16 fTree = std::unique_ptr<TTree>((TTree*)
fFile->Get(
"cbmsim"));
17 if (
fTree ==
nullptr) {
18 throw std::runtime_error(fmt::format(
"[SimSource] Error getting cbmsim tree: {}", locator));
static const char * GetBranchName()
Get the desired name of the branch for this objects in the cbm output tree (static)
static const char * GetBranchName()
Get the desired name of the branch for this obj in the cbm output tree (static)
static CbmMvdRawDigi ConvertToRawDigi(const CbmMvdDigi &rhs)
static const char * GetBranchName()
static const char * GetBranchName()
Get the desired name of the branch for this obj in the cbm output tree (static)
static const char * GetBranchName()
Get the desired name of the branch for this obj in the cbm output tree (static)
static const char * GetBranchName()
Get the desired name of the branch for this obj in the cbm output tree (static)
static const char * GetBranchName()
Get the desired name of the branch for this obj in the cbm output tree (static)
std::unique_ptr< TFile > fFile
SimSource(const std::string &locator)
std::unique_ptr< TTree > fTree
std::vector< CbmBmonDigi > * fBmonDigis
std::vector< CbmMvdRawDigi > fMvdRawDigis
std::vector< CbmTofDigi > * fTofDigis
std::vector< CbmStsDigi > * fStsDigis
TimeslicedDigiBuilder fTsBuilder
std::vector< CbmFsdDigi > * fFsdDigis
std::vector< CbmMvdDigi > * fMvdDigis
fles::StorableTimeslice * do_get() override
std::vector< CbmRichDigi > * fRichDigis
bool eos() const override
std::vector< CbmTrdDigi > * fTrdDigis