CMS 3D CMS Logo

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
UEAnalysisSelectorRootple::ue
UEAnalysisUE * ue
Definition: UEAnalysisSelectorRootple.h:73
UEAnalysisSelectorRootple::ptThreshold
float ptThreshold
Definition: UEAnalysisSelectorRootple.h:71
input
static const std::string input
Definition: EdmProvDump.cc:48
UEAnalysisSelectorRootple::ClassDef
ClassDef(UEAnalysisSelectorRootple, 0)
UEAnalysisSelectorRootple::Notify
virtual Bool_t Notify()
UEAnalysisSelectorRootple::fChain
TTree * fChain
Definition: UEAnalysisSelectorRootple.h:28
mps_splice.entry
entry
Definition: mps_splice.py:68
tree
Definition: tree.py:1
UEAnalysisSelectorRootple::Process
virtual Bool_t Process(Long64_t entry)
UEAnalysisSelectorRootple::b_TracksJet
TBranch * b_TracksJet
Definition: UEAnalysisSelectorRootple.h:46
UEAnalysisSelectorRootple::SetInputList
virtual void SetInputList(TList *input)
Definition: UEAnalysisSelectorRootple.h:61
UEAnalysisSelectorRootple::TracksJet
TClonesArray * TracksJet
Definition: UEAnalysisSelectorRootple.h:36
UEAnalysisSelectorRootple::InclusiveJet
TClonesArray * InclusiveJet
Definition: UEAnalysisSelectorRootple.h:34
UEAnalysisSelectorRootple::UEAnalysisSelectorRootple
UEAnalysisSelectorRootple(TTree *=0)
Definition: UEAnalysisSelectorRootple.h:50
UEAnalysisMPI.h
fileinputsource_cfi.option
option
Definition: fileinputsource_cfi.py:87
UEAnalysisSelectorRootple::b_EventKind
TBranch * b_EventKind
Definition: UEAnalysisSelectorRootple.h:41
UEAnalysisSelectorRootple
Definition: UEAnalysisSelectorRootple.h:26
UEAnalysisSelectorRootple::b_InclusiveJet
TBranch * b_InclusiveJet
Definition: UEAnalysisSelectorRootple.h:44
UEAnalysisSelectorRootple::mpi
UEAnalysisMPI * mpi
Definition: UEAnalysisSelectorRootple.h:75
UEAnalysisSelectorRootple::Track
TClonesArray * Track
Definition: UEAnalysisSelectorRootple.h:33
UEAnalysisSelectorRootple::Terminate
virtual void Terminate()
UEAnalysisSelectorRootple::SetObject
virtual void SetObject(TObject *obj)
Definition: UEAnalysisSelectorRootple.h:60
UEAnalysisSelectorRootple::b_acceptedTriggers
TBranch * b_acceptedTriggers
Definition: UEAnalysisSelectorRootple.h:48
UEAnalysisSelectorRootple::Init
virtual void Init(TTree *tree)
UEAnalysisSelectorRootple::Version
virtual Int_t Version() const
Definition: UEAnalysisSelectorRootple.h:52
UEAnalysisSelectorRootple::SlaveTerminate
virtual void SlaveTerminate()
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
UEAnalysisSelectorRootple::SetOption
virtual void SetOption(const char *option)
Definition: UEAnalysisSelectorRootple.h:59
MainPageGenerator.tree
tree
Definition: MainPageGenerator.py:264
UEAnalysisSelectorRootple::acceptedTriggers
TClonesArray * acceptedTriggers
Definition: UEAnalysisSelectorRootple.h:38
UEAnalysisSelectorRootple::CalorimeterJet
TClonesArray * CalorimeterJet
Definition: UEAnalysisSelectorRootple.h:37
UEAnalysisJets.h
UEAnalysisSelectorRootple::etaRegion
float etaRegion
Definition: UEAnalysisSelectorRootple.h:70
UEAnalysisSelectorRootple::b_CalorimeterJet
TBranch * b_CalorimeterJet
Definition: UEAnalysisSelectorRootple.h:47
UEAnalysisSelectorRootple::b_Track
TBranch * b_Track
Definition: UEAnalysisSelectorRootple.h:43
UEAnalysisSelectorRootple::GetEntry
virtual Int_t GetEntry(Long64_t entry, Int_t getall=0)
Definition: UEAnalysisSelectorRootple.h:58
UEAnalysisSelectorRootple::ChargedJet
TClonesArray * ChargedJet
Definition: UEAnalysisSelectorRootple.h:35
UEAnalysisUE.h
UEAnalysisSelectorRootple::~UEAnalysisSelectorRootple
virtual ~UEAnalysisSelectorRootple()
Definition: UEAnalysisSelectorRootple.h:51
UEAnalysisUE
Definition: UEAnalysisUE.h:19
UEAnalysisSelectorRootple::EventKind
Int_t EventKind
pointer to the analyzed TTree or TChain
Definition: UEAnalysisSelectorRootple.h:31
UEAnalysisSelectorRootple::jets
UEAnalysisJets * jets
Definition: UEAnalysisSelectorRootple.h:74
UEAnalysisMPI
Definition: UEAnalysisMPI.h:16
UEAnalysisSelectorRootple::GetOutputList
virtual TList * GetOutputList() const
Definition: UEAnalysisSelectorRootple.h:62
UEAnalysisSelectorRootple::hFile
TFile * hFile
Definition: UEAnalysisSelectorRootple.h:68
UEAnalysisJets
Definition: UEAnalysisJets.h:17
UEAnalysisSelectorRootple::Begin
virtual void Begin(TTree *tree)
UEAnalysisSelectorRootple::MonteCarlo
TClonesArray * MonteCarlo
Definition: UEAnalysisSelectorRootple.h:32
UEAnalysisSelectorRootple::b_MonteCarlo
TBranch * b_MonteCarlo
Definition: UEAnalysisSelectorRootple.h:42
TSelector.h
UEAnalysisSelectorRootple::SlaveBegin
virtual void SlaveBegin(TTree *tree)
UEAnalysisSelectorRootple::b_ChargedJet
TBranch * b_ChargedJet
Definition: UEAnalysisSelectorRootple.h:45