8 #ifndef MakeAmpToolsFlat_mcthrown_h
9 #define MakeAmpToolsFlat_mcthrown_h
16 #include "TLorentzVector.h"
17 #include "TClonesArray.h"
60 virtual Int_t
Cut(Long64_t entry);
61 virtual Int_t
GetEntry(Long64_t entry);
62 virtual Long64_t
LoadTree(Long64_t entry);
63 virtual void Init(TTree *tree);
66 virtual void Show(Long64_t entry = -1);
91 #ifdef MakeAmpToolsFlat_mcthrown_cxx
97 tree = (TTree *) _file0->Get(
"Thrown_Tree");
100 TFile *
f = (TFile*)gROOT->GetListOfFiles()->FindObject(
"tree_hd_root_Z2pi_trees_sw1pw1000_NOTAG_flat_100000_gen.root");
101 if (!f || !f->IsOpen()) {
102 f =
new TFile(
"tree_hd_root_Z2pi_trees_sw1pw1000_NOTAG_flat_100000_gen.root");
104 f->GetObject(
"Thrown_Tree",tree);
113 delete fChain->GetCurrentFile();
120 return fChain->GetEntry(entry);
126 Long64_t centry =
fChain->LoadTree(entry);
127 if (centry < 0)
return centry;
198 #endif // #ifdef MakeAmpToolsFlat_mcthrown_cxx