8#ifndef AverageMinBias_h
9#define AverageMinBias_h
51 virtual Int_t
Cut(Long64_t entry);
57 virtual void Show(Long64_t entry = -1);
65#ifdef AverageMinBias_cxx
71 TFile *f = (TFile*)gROOT->GetListOfFiles()->FindObject(
"ntuple.root");
72 if (!f || !f->IsOpen()) {
73 f =
new TFile(
"ntuple.root");
75 f->GetObject(
"m_tree",
tree);
84 delete fChain->GetCurrentFile();
91 return fChain->GetEntry(entry);
97 Long64_t centry =
fChain->LoadTree(entry);
98 if (centry < 0)
return centry;
AverageMinBias(TTree *tree=0)
AverageMinBias(const AverageMinBias &)=delete
virtual ~AverageMinBias()
virtual Int_t Cut(Long64_t entry)
virtual void Init(TTree *tree)
virtual void Show(Long64_t entry=-1)
Double_t reference[nindex]
static const unsigned nindex
current Tree number in a TChain
virtual Long64_t LoadTree(Long64_t entry)
virtual Int_t GetEntry(Long64_t entry)
Int_t fCurrent
pointer to the analyzed TTree or TChain
AverageMinBias & operator=(const AverageMinBias &)=delete