14 #ifndef PNDINPUTCONTAINER_HH 15 #define PNDINPUTCONTAINER_HH 46 virtual Bool_t
Init(
const TString &t_branchname)
49 this->
fImp.reset(
nullptr);
53 success =
TrySTD(t_branchname);
56 this->
fImp.reset(
nullptr);
60 LOG(error) <<
"PndInputContainer<" << T().ClassName() <<
">::Init(" << t_branchname <<
"): No " << T().ClassName() <<
" array with name " << t_branchname <<
" found!";
71 Bool_t
TryTCA(
const TString &t_branchname)
76 LOG(debug) <<
"No TClonesArray branch called " << t_branchname <<
" registered with the FairRootManager. ";
77 this->
fImp.reset(
nullptr);
79 LOG(debug) <<
"Found input TClonesArray branch called " << t_branchname <<
" registered with the FairRootManager.";
90 Bool_t
TrySTD(
const TString &t_branchname)
92 if (FairRootManager::Instance()->CheckBranch(t_branchname) ==
99 LOG(debug) <<
"No std::vector<T> branch called " << t_branchname <<
" registered with the FairRootManager.";
100 this->
fImp.reset(
nullptr);
102 LOG(debug) <<
"Found std::vector<T> TClonesArray branch called " << t_branchname <<
" registered with the FairRootManager.";
114 if (this->
fImp !=
nullptr) {
115 return this->
fImp->GetSize();
128 if (this->
fImp !=
nullptr) {
129 return this->
fImp->GetElement(t_index);
135 std::unique_ptr<PndInputContainerI<T>>
fImp{
nullptr};
static const UInt_t success
Interface to a datacontainer to be used in PandaROOT.