8#ifndef AverageMinBias_h
9#define AverageMinBias_h
51 virtual Int_t
Cut(Long64_t entry);
57 virtual void Show(Long64_t entry = -1);
62#ifdef AverageMinBias_cxx
68 TFile *f = (TFile*)gROOT->GetListOfFiles()->FindObject(
"ntuple.root");
69 if (!f || !f->IsOpen()) {
70 f =
new TFile(
"ntuple.root");
72 f->GetObject(
"m_tree",
tree);
81 delete fChain->GetCurrentFile();
88 return fChain->GetEntry(entry);
94 Long64_t centry =
fChain->LoadTree(entry);
95 if (centry < 0)
return centry;
AverageMinBias(TTree *tree=0)
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