Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FCALSelector.h
Go to the documentation of this file.
1 //////////////////////////////////////////////////////////
2 // This class has been automatically generated on
3 // Tue Sep 6 22:46:29 2011 by ROOT version 5.30/00
4 // from TTree dPluginTree_FCALMCComparison/FCAL MC Comparison
5 // found on file: /raid1/mattione/gluex/cluster_run/hd_root_fcal.root
6 //////////////////////////////////////////////////////////
7 
8 #ifndef FCALSelector_h
9 #define FCALSelector_h
10 
11 #include <TROOT.h>
12 #include <TChain.h>
13 #include <TFile.h>
14 #include <TSelector.h>
15 
16 class FCALSelector : public TSelector {
17 public :
18  TTree *fChain; //!pointer to the analyzed TTree or TChain
19 
20  // Declaration of leaf types
21  //FCALMCComparison *dPluginBranch_FCALMCComparison;
22  UInt_t fUniqueID;
23  UInt_t fBits;
24  Float_t dTrueX;
25  Float_t dTrueY;
26  Float_t dTrueZ;
27  Float_t dTrueE;
28  Float_t dTrueT;
29  Float_t dDeltaX;
30  Float_t dDeltaY;
31  Float_t dDeltaZ;
32  Float_t dDeltaE;
33  Float_t dDeltaT;
40 
41  // List of branches
60 
61  TFile *dOutputFile;
62  //Path Length Correction
64 
65  //DeltaX Dependence
71 
72  //DeltaY Dependence
78 
79  //DeltaZ Dependence
85 
86  //DeltaE Dependence
92 
93  //DeltaT Dependence
99 
100  //Common Dependence
111 
112  //ShowerSigmaX Dependence
118 
119  //ShowerSigmaY Dependence
125 
126  //ShowerSigmaZ Dependence
132 
133  //ShowerSigmaE Dependence
139 
140  //ShowerSigmaT Dependence
146 
147 
148  FCALSelector(TTree * /*tree*/ =0) { }
149  virtual ~FCALSelector() { }
150  virtual Int_t Version() const { return 2; }
151  virtual void Begin(TTree *tree);
152  virtual void SlaveBegin(TTree *tree);
153  virtual void Init(TTree *tree);
154  virtual Bool_t Notify();
155  virtual Bool_t Process(Long64_t entry);
156  virtual Int_t GetEntry(Long64_t entry, Int_t getall = 0) { return fChain ? fChain->GetTree()->GetEntry(entry, getall) : 0; }
157  virtual void SetOption(const char *option) { fOption = option; }
158  virtual void SetObject(TObject *obj) { fObject = obj; }
159  virtual void SetInputList(TList *input) { fInput = input; }
160  virtual TList *GetOutputList() const { return fOutput; }
161  virtual void SlaveTerminate();
162  virtual void Terminate();
163 
165 };
166 
167 #endif
168 
169 #ifdef FCALSelector_cxx
170 void FCALSelector::Init(TTree *tree)
171 {
172  // The Init() function is called when the selector needs to initialize
173  // a new tree or chain. Typically here the branch addresses and branch
174  // pointers of the tree will be set.
175  // It is normally not necessary to make changes to the generated
176  // code, but the routine can be extended by the user if needed.
177  // Init() will be called many times when running on PROOF
178  // (once per file to be processed).
179 
180  // Set branch addresses and branch pointers
181  if (!tree) return;
182  fChain = tree;
183  fChain->SetMakeClass(1);
184 
185  fChain->SetBranchAddress("fUniqueID", &fUniqueID, &b_dPluginBranch_FCALMCComparison_fUniqueID);
186  fChain->SetBranchAddress("fBits", &fBits, &b_dPluginBranch_FCALMCComparison_fBits);
187  fChain->SetBranchAddress("dTrueX", &dTrueX, &b_dPluginBranch_FCALMCComparison_dTrueX);
188  fChain->SetBranchAddress("dTrueY", &dTrueY, &b_dPluginBranch_FCALMCComparison_dTrueY);
189  fChain->SetBranchAddress("dTrueZ", &dTrueZ, &b_dPluginBranch_FCALMCComparison_dTrueZ);
190  fChain->SetBranchAddress("dTrueE", &dTrueE, &b_dPluginBranch_FCALMCComparison_dTrueE);
191  fChain->SetBranchAddress("dTrueT", &dTrueT, &b_dPluginBranch_FCALMCComparison_dTrueT);
192  fChain->SetBranchAddress("dDeltaX", &dDeltaX, &b_dPluginBranch_FCALMCComparison_dDeltaX);
193  fChain->SetBranchAddress("dDeltaY", &dDeltaY, &b_dPluginBranch_FCALMCComparison_dDeltaY);
194  fChain->SetBranchAddress("dDeltaZ", &dDeltaZ, &b_dPluginBranch_FCALMCComparison_dDeltaZ);
195  fChain->SetBranchAddress("dDeltaE", &dDeltaE, &b_dPluginBranch_FCALMCComparison_dDeltaE);
196  fChain->SetBranchAddress("dDeltaT", &dDeltaT, &b_dPluginBranch_FCALMCComparison_dDeltaT);
197  fChain->SetBranchAddress("dShowerUncertaintyX", &dShowerUncertaintyX, &b_dPluginBranch_FCALMCComparison_dShowerUncertaintyX);
198  fChain->SetBranchAddress("dShowerUncertaintyY", &dShowerUncertaintyY, &b_dPluginBranch_FCALMCComparison_dShowerUncertaintyY);
199  fChain->SetBranchAddress("dShowerUncertaintyZ", &dShowerUncertaintyZ, &b_dPluginBranch_FCALMCComparison_dShowerUncertaintyZ);
200  fChain->SetBranchAddress("dShowerUncertaintyT", &dShowerUncertaintyT, &b_dPluginBranch_FCALMCComparison_dShowerUncertaintyT);
201  fChain->SetBranchAddress("dShowerUncertaintyE", &dShowerUncertaintyE, &b_dPluginBranch_FCALMCComparison_dShowerUncertaintyE);
202  fChain->SetBranchAddress("dPathLengthCorrection", &dPathLengthCorrection, &b_dPluginBranch_FCALMCComparison_dPathLengthCorrection);
203 }
204 
205 Bool_t FCALSelector::Notify()
206 {
207  // The Notify() function is called when a new file is opened. This
208  // can be either for a new TTree in a TChain or when when a new TTree
209  // is started when using PROOF. It is normally not necessary to make changes
210  // to the generated code, but the routine can be extended by the
211  // user if needed. The return value is currently not used.
212 
213  return kTRUE;
214 }
215 
216 #endif // #ifdef FCALSelector_cxx
TBranch * b_dPluginBranch_FCALMCComparison_dTrueX
Definition: FCALSelector.h:44
TH2F * dPluginHist_FCAL_ShowerSigmaYVsY
Definition: FCALSelector.h:121
Float_t dDeltaY
Definition: FCALSelector.h:30
ClassDef(FCALSelector, 0)
TH2F * dPluginHist_FCAL_ShowerSigmaTVsZ
Definition: FCALSelector.h:143
TH2F * dPluginHist_FCAL_DeltaYVsZ
Definition: FCALSelector.h:75
TBranch * b_dPluginBranch_FCALMCComparison_dShowerUncertaintyX
Definition: FCALSelector.h:54
TBranch * b_dPluginBranch_FCALMCComparison_dShowerUncertaintyZ
Definition: FCALSelector.h:56
TBranch * b_dPluginBranch_FCALMCComparison_dShowerUncertaintyY
Definition: FCALSelector.h:55
TH2F * dPluginHist_FCAL_ShowerSigmaXVsY
Definition: FCALSelector.h:114
TH2F * dPluginHist_FCAL_DeltaTVsZ
Definition: FCALSelector.h:96
TH2F * dPluginHist_FCAL_DeltaEVsY
Definition: FCALSelector.h:88
TTree * fChain
Definition: FCALSelector.h:18
virtual void SetOption(const char *option)
Definition: FCALSelector.h:157
TH2F * dPluginHist_FCAL_DeltaYVsY
Definition: FCALSelector.h:74
TH2F * dPluginHist_FCAL_ShowerSigmaTVsX
Definition: FCALSelector.h:141
TBranch * b_dPluginBranch_FCALMCComparison_dShowerUncertaintyT
Definition: FCALSelector.h:57
TH2F * dPluginHist_FCAL_DeltaZVsDeltaT
Definition: FCALSelector.h:109
TH2F * dPluginHist_FCAL_DeltaTVsT
Definition: FCALSelector.h:98
Float_t dShowerUncertaintyY
Definition: FCALSelector.h:35
TH2F * dPluginHist_FCAL_DeltaTVsE
Definition: FCALSelector.h:97
TH2F * dPluginHist_FCAL_ShowerSigmaYVsT
Definition: FCALSelector.h:124
Float_t dDeltaZ
Definition: FCALSelector.h:31
TBranch * b_dPluginBranch_FCALMCComparison_dPathLengthCorrection
Definition: FCALSelector.h:59
TH2F * dPluginHist_FCAL_PathLengthCorrection
Definition: FCALSelector.h:63
TBranch * b_dPluginBranch_FCALMCComparison_fUniqueID
Definition: FCALSelector.h:42
TH2F * dPluginHist_FCAL_DeltaYVsDeltaT
Definition: FCALSelector.h:107
Float_t dShowerUncertaintyE
Definition: FCALSelector.h:38
TH2F * dPluginHist_FCAL_ShowerSigmaYVsZ
Definition: FCALSelector.h:122
TH2F * dPluginHist_FCAL_DeltaXVsDeltaZ
Definition: FCALSelector.h:102
TH2F * dPluginHist_FCAL_ShowerSigmaZVsZ
Definition: FCALSelector.h:129
virtual void Init(TTree *tree)
TBranch * b_dPluginBranch_FCALMCComparison_dShowerUncertaintyE
Definition: FCALSelector.h:58
virtual ~FCALSelector()
Definition: FCALSelector.h:149
virtual void Terminate()
Definition: FCALSelector.C:286
TH2F * dPluginHist_FCAL_DeltaYVsX
Definition: FCALSelector.h:73
Float_t dPathLengthCorrection
Definition: FCALSelector.h:39
TH2F * dPluginHist_FCAL_DeltaYVsT
Definition: FCALSelector.h:77
Float_t dShowerUncertaintyZ
Definition: FCALSelector.h:36
TH2F * dPluginHist_FCAL_ShowerSigmaEVsY
Definition: FCALSelector.h:135
TH2F * dPluginHist_FCAL_ShowerSigmaZVsT
Definition: FCALSelector.h:131
TH2F * dPluginHist_FCAL_DeltaYVsDeltaZ
Definition: FCALSelector.h:105
TH2F * dPluginHist_FCAL_DeltaXVsDeltaE
Definition: FCALSelector.h:103
TFile * dOutputFile
Definition: FCALSelector.h:61
TH2F * dPluginHist_FCAL_ShowerSigmaEVsT
Definition: FCALSelector.h:138
FCALSelector(TTree *=0)
Definition: FCALSelector.h:148
TH2F * dPluginHist_FCAL_DeltaEVsDeltaT
Definition: FCALSelector.h:110
Float_t dShowerUncertaintyT
Definition: FCALSelector.h:37
TH2F * dPluginHist_FCAL_ShowerSigmaYVsE
Definition: FCALSelector.h:123
virtual Bool_t Process(Long64_t entry)
Definition: FCALSelector.C:156
TH2F * dPluginHist_FCAL_ShowerSigmaXVsT
Definition: FCALSelector.h:117
TH2F * dPluginHist_FCAL_DeltaYVsDeltaE
Definition: FCALSelector.h:106
TH2F * dPluginHist_FCAL_DeltaXVsY
Definition: FCALSelector.h:67
TH2F * dPluginHist_FCAL_DeltaXVsT
Definition: FCALSelector.h:70
Float_t dTrueE
Definition: FCALSelector.h:27
Float_t dDeltaE
Definition: FCALSelector.h:32
TH2F * dPluginHist_FCAL_ShowerSigmaEVsZ
Definition: FCALSelector.h:136
TH2F * dPluginHist_FCAL_DeltaZVsE
Definition: FCALSelector.h:83
virtual void SlaveBegin(TTree *tree)
Definition: FCALSelector.C:146
TH2F * dPluginHist_FCAL_DeltaTVsY
Definition: FCALSelector.h:95
TH2F * dPluginHist_FCAL_DeltaZVsZ
Definition: FCALSelector.h:82
UInt_t fUniqueID
pointer to the analyzed TTree or TChain
Definition: FCALSelector.h:22
TBranch * b_dPluginBranch_FCALMCComparison_dDeltaX
Definition: FCALSelector.h:49
TBranch * b_dPluginBranch_FCALMCComparison_dTrueE
Definition: FCALSelector.h:47
TH2F * dPluginHist_FCAL_DeltaTVsX
Definition: FCALSelector.h:94
virtual TList * GetOutputList() const
Definition: FCALSelector.h:160
Float_t dTrueZ
Definition: FCALSelector.h:26
TH2F * dPluginHist_FCAL_DeltaZVsDeltaE
Definition: FCALSelector.h:108
TH2F * dPluginHist_FCAL_DeltaXVsX
Definition: FCALSelector.h:66
virtual Int_t Version() const
Definition: FCALSelector.h:150
virtual void SetObject(TObject *obj)
Definition: FCALSelector.h:158
TH2F * dPluginHist_FCAL_DeltaEVsE
Definition: FCALSelector.h:90
TH2F * dPluginHist_FCAL_ShowerSigmaXVsX
Definition: FCALSelector.h:113
TH2F * dPluginHist_FCAL_DeltaXVsE
Definition: FCALSelector.h:69
TH2F * dPluginHist_FCAL_ShowerSigmaZVsX
Definition: FCALSelector.h:127
TH2F * dPluginHist_FCAL_ShowerSigmaTVsY
Definition: FCALSelector.h:142
TH2F * dPluginHist_FCAL_DeltaEVsX
Definition: FCALSelector.h:87
TH2F * dPluginHist_FCAL_ShowerSigmaTVsE
Definition: FCALSelector.h:144
TH2F * dPluginHist_FCAL_DeltaZVsY
Definition: FCALSelector.h:81
TH2F * dPluginHist_FCAL_ShowerSigmaXVsZ
Definition: FCALSelector.h:115
virtual void Begin(TTree *tree)
Definition: FCALSelector.C:31
TH2F * dPluginHist_FCAL_DeltaZVsX
Definition: FCALSelector.h:80
TBranch * b_dPluginBranch_FCALMCComparison_fBits
Definition: FCALSelector.h:43
virtual Int_t GetEntry(Long64_t entry, Int_t getall=0)
Definition: FCALSelector.h:156
UInt_t fBits
Definition: FCALSelector.h:23
TH2F * dPluginHist_FCAL_DeltaEVsZ
Definition: FCALSelector.h:89
TH2F * dPluginHist_FCAL_ShowerSigmaTVsT
Definition: FCALSelector.h:145
Float_t dShowerUncertaintyX
Definition: FCALSelector.h:34
TH2F * dPluginHist_FCAL_ShowerSigmaZVsE
Definition: FCALSelector.h:130
Float_t dTrueT
Definition: FCALSelector.h:28
TH2F * dPluginHist_FCAL_DeltaYVsE
Definition: FCALSelector.h:76
Float_t dTrueX
Definition: FCALSelector.h:24
TBranch * b_dPluginBranch_FCALMCComparison_dDeltaY
Definition: FCALSelector.h:50
TBranch * b_dPluginBranch_FCALMCComparison_dDeltaT
Definition: FCALSelector.h:53
TH2F * dPluginHist_FCAL_DeltaXVsDeltaT
Definition: FCALSelector.h:104
TBranch * b_dPluginBranch_FCALMCComparison_dDeltaE
Definition: FCALSelector.h:52
Float_t dDeltaT
Definition: FCALSelector.h:33
TBranch * b_dPluginBranch_FCALMCComparison_dTrueZ
Definition: FCALSelector.h:46
virtual void SlaveTerminate()
Definition: FCALSelector.C:278
TBranch * b_dPluginBranch_FCALMCComparison_dTrueY
Definition: FCALSelector.h:45
TH2F * dPluginHist_FCAL_ShowerSigmaEVsX
Definition: FCALSelector.h:134
TH2F * dPluginHist_FCAL_DeltaXVsDeltaY
Definition: FCALSelector.h:101
TH2F * dPluginHist_FCAL_ShowerSigmaYVsX
Definition: FCALSelector.h:120
TH2F * dPluginHist_FCAL_ShowerSigmaEVsE
Definition: FCALSelector.h:137
Float_t dDeltaX
Definition: FCALSelector.h:29
Float_t dTrueY
Definition: FCALSelector.h:25
TH2F * dPluginHist_FCAL_ShowerSigmaXVsE
Definition: FCALSelector.h:116
TBranch * b_dPluginBranch_FCALMCComparison_dDeltaZ
Definition: FCALSelector.h:51
virtual Bool_t Notify()
TH2F * dPluginHist_FCAL_ShowerSigmaZVsY
Definition: FCALSelector.h:128
TBranch * b_dPluginBranch_FCALMCComparison_dTrueT
Definition: FCALSelector.h:48
TH2F * dPluginHist_FCAL_DeltaEVsT
Definition: FCALSelector.h:91
virtual void SetInputList(TList *input)
Definition: FCALSelector.h:159
TH2F * dPluginHist_FCAL_DeltaZVsT
Definition: FCALSelector.h:84
TH2F * dPluginHist_FCAL_DeltaXVsZ
Definition: FCALSelector.h:68