78 if (
tree ==
nullptr) {
103 static int offset = 0;
107 return fChain->GetEntry(entry);
110 if(entry==0) offset = 0;
111 Int_t nbytes =
fChain->GetEntry(offset++);
112 TTree *loc =
static_cast<TChain *
>(
fChain)->GetTree();
114 offset =
static_cast<TChain *
>(
fChain)->GetTreeOffset()[
fChain->GetTreeNumber()] + loc->GetEntries();
115 nbytes =
fChain->GetEntry(offset++);
126 return fChain->GetEntries();
235 m_cls_eprep =
new std::vector<std::vector<double > >;
299 float clusEmFrac = -1.0;
301 clusEmFrac = (*m_cls_calib_emfrac)[i_cls];
309 std::cout <<
"CaloHadDMCoeffData::PackClusterVars() -> Warning! Wrong particle " <<
m_mc_pdg << std::endl;
312 float clusSide = ( (*m_cls_eta)[i_cls]<0?-1.0:1.0);
313 float clusEta = (*m_cls_eta)[i_cls];
314 float clusPhi = (*m_cls_phi)[i_cls];
315 float clusEner = (*m_cls_ener_unw)[i_cls];
317 clusEner = std::log10( clusEner );
321 float clusLambda = (*m_cls_lambda)[i_cls];
322 if(clusLambda > 0.0) {
323 clusLambda = std::log10(clusLambda);
327 if(clusLambda > 4.0) clusLambda = 3.9999;
@ kCLASSIFY_USE_PARTICLEID
CaloHadDMCoeffData(TTree *tree)
virtual void Init(TTree *tree)
std::vector< double > * m_cls_eta
std::vector< double > * m_cls_ener
std::vector< std::vector< double > > * m_cls_eprep
Int_t fCurrent
pointer to the analyzed TTree or TChain
TBranch * b_engClusSumCalib
std::vector< double > * m_cls_engcalibpres
virtual Int_t GetEntries()
virtual ~CaloHadDMCoeffData()
TBranch * b_cls_engcalibpres
std::vector< double > * m_cls_engcalib
std::vector< double > * m_cls_calib_emfrac
std::vector< double > * m_cls_lambda
std::vector< double > * m_cls_pi0prob
std::vector< double > * m_cls_phi
std::vector< int > * m_cls_recostat
std::vector< double > * m_cls_isol
std::vector< double > * m_cls_ener_unw
virtual Int_t GetEntry(Long64_t entry)
TTree * MakeTree(const char *treename)
TBranch * b_cls_calib_emfrac
std::vector< std::vector< double > > * m_cls_dmener
std::vector< std::vector< double > > * m_cls_smpener
TBranch * b_cls_smpener_unw
Int_t m_ncls
current Tree number in a TChain
Double_t m_engClusSumCalib
int PackClusterVars(int iClus, std::vector< float > &vars)
std::vector< std::vector< double > > * m_cls_smpener_unw
std::vector< double > * m_cls_oocener
static std::string treename