CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
UEAnalysisSelectorRootple.h
Go to the documentation of this file.
1 // This class has been automatically generated on
3 // Mon Apr 21 14:19:27 2008 by ROOT version 5.18/00
4 // from TTree AnalysisTree/MBUE Analysis Tree
5 // found on file: MBUEAnalysisRootFile.root
7 
8 #ifndef UEAnalysisSelectorRootple_h
9 #define UEAnalysisSelectorRootple_h
10 
11 #include <TROOT.h>
12 #include <TChain.h>
13 #include <TFile.h>
14 #include <TSelector.h>
15 
16 
17 #include "UEAnalysisUE.h"
18 #include "UEAnalysisJets.h"
19 #include "UEAnalysisMPI.h"
20 
21 //
22 #include <TClonesArray.h>
23 #include <TObjString.h>
24 //
25 
26 class UEAnalysisSelectorRootple : public TSelector {
27 public :
28  TTree *fChain;
29 
30  // Declaration of leaf types
31  Int_t EventKind;
32  TClonesArray *MonteCarlo;
33  TClonesArray *Track;
34  TClonesArray *InclusiveJet;
35  TClonesArray *ChargedJet;
36  TClonesArray *TracksJet;
37  TClonesArray *CalorimeterJet;
38  TClonesArray *acceptedTriggers;
39 
40  // List of branches
41  TBranch *b_EventKind;
42  TBranch *b_MonteCarlo;
43  TBranch *b_Track;
44  TBranch *b_InclusiveJet;
45  TBranch *b_ChargedJet;
46  TBranch *b_TracksJet;
47  TBranch *b_CalorimeterJet;
48  TBranch *b_acceptedTriggers;
49 
50  UEAnalysisSelectorRootple(TTree * /*tree*/ =0) { }
52  virtual Int_t Version() const { return 2; }
53  virtual void Begin(TTree *tree);
54  virtual void SlaveBegin(TTree *tree);
55  virtual void Init(TTree *tree);
56  virtual Bool_t Notify();
57  virtual Bool_t Process(Long64_t entry);
58  virtual Int_t GetEntry(Long64_t entry, Int_t getall = 0) { return fChain ? fChain->GetTree()->GetEntry(entry, getall) : 0; }
59  virtual void SetOption(const char *option) { fOption = option; }
60  virtual void SetObject(TObject *obj) { fObject = obj; }
61  virtual void SetInputList(TList *input) { fInput = input; }
62  virtual TList *GetOutputList() const { return fOutput; }
63  virtual void SlaveTerminate();
64  virtual void Terminate();
65 
67 
68  TFile* hFile;
69 
70  float etaRegion;
71  float ptThreshold;
72 
76 
77 };
78 
79 #endif
80 
81 #ifdef UEAnalysisSelectorRootple_cxx
83 {
84  // The Init() function is called when the selector needs to initialize
85  // a new tree or chain. Typically here the branch addresses and branch
86  // pointers of the tree will be set.
87  // It is normally not necessary to make changes to the generated
88  // code, but the routine can be extended by the user if needed.
89  // Init() will be called many times when running on PROOF
90  // (once per file to be processed).
91 
92  // Set object pointer
93  MonteCarlo = 0;
94  Track = 0;
95  InclusiveJet = 0;
96  ChargedJet = 0;
97  TracksJet = 0;
98  CalorimeterJet = 0;
99  acceptedTriggers = 0;
100  // Set branch addresses and branch pointers
101  if (!tree) return;
102  fChain = tree;
103  fChain->SetMakeClass(1);
104 
105  fChain->SetBranchAddress("EventKind", &EventKind, &b_EventKind);
106  fChain->SetBranchAddress("MonteCarlo", &MonteCarlo, &b_MonteCarlo);
107  fChain->SetBranchAddress("Track", &Track, &b_Track);
108  fChain->SetBranchAddress("InclusiveJet", &InclusiveJet, &b_InclusiveJet);
109  fChain->SetBranchAddress("ChargedJet", &ChargedJet, &b_ChargedJet);
110  fChain->SetBranchAddress("TracksJet", &TracksJet, &b_TracksJet);
111  fChain->SetBranchAddress("CalorimeterJet", &CalorimeterJet, &b_CalorimeterJet);
112  fChain->SetBranchAddress("acceptedTriggers", &acceptedTriggers, &b_acceptedTriggers);
113 
114 }
115 
117 {
118  // The Notify() function is called when a new file is opened. This
119  // can be either for a new TTree in a TChain or when when a new TTree
120  // is started when using PROOF. It is normally not necessary to make changes
121  // to the generated code, but the routine can be extended by the
122  // user if needed. The return value is currently not used.
123 
124  return kTRUE;
125 }
126 
127 #endif // #ifdef UEAnalysisSelectorRootple_cxx
ClassDef(UEAnalysisSelectorRootple, 0)
virtual void Init(TTree *tree)
virtual void Begin(TTree *tree)
Int_t EventKind
pointer to the analyzed TTree or TChain
virtual void SetInputList(TList *input)
virtual void SlaveTerminate()
virtual Bool_t Process(Long64_t entry)
static std::string const input
Definition: EdmProvDump.cc:43
virtual void SetObject(TObject *obj)
virtual Int_t GetEntry(Long64_t entry, Int_t getall=0)
virtual TList * GetOutputList() const
virtual void Terminate()
virtual void SlaveBegin(TTree *tree)
virtual Bool_t Notify()
virtual void SetOption(const char *option)