Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BCALSelector.h
Go to the documentation of this file.
1 //////////////////////////////////////////////////////////
2 // This class has been automatically generated on
3 // Tue Sep 6 22:46:15 2011 by ROOT version 5.30/00
4 // from TTree dPluginTree_BCALMCComparison/BCAL MC Comparison
5 // found on file: /raid1/mattione/gluex/cluster_run/hd_root_bcal.root
6 //////////////////////////////////////////////////////////
7 
8 #ifndef BCALSelector_h
9 #define BCALSelector_h
10 
11 #include <TROOT.h>
12 #include <TChain.h>
13 #include <TFile.h>
14 #include <TSelector.h>
15 
16 class BCALSelector : public TSelector {
17 public :
18 
19  float Calc_BCALPathLengthCorrection(float locEnergy);
20  TTree *fChain; //!pointer to the analyzed TTree or TChain
21 
22  // Declaration of leaf types
23  //BCALMCComparison *dPluginBranch_BCALMCComparison;
24  UInt_t fUniqueID;
25  UInt_t fBits;
26  Float_t dTrueR;
27  Float_t dTrueZ;
28  Float_t dTruePhi;
29  Float_t dTrueE;
30  Float_t dTrueT;
31  Float_t dDeltaR;
32  Float_t dDeltaZ;
33  Float_t dDeltaPhi;
34  Float_t dDeltaE;
35  Float_t dDeltaT;
42 
43  // List of branches
62 
63  TFile *dOutputFile;
64  //Path Length Correction
67 
68  //DeltaR Dependence
74 
75  //DeltaPhi Dependence
81 
82  //DeltaZ Dependence
88 
89  //DeltaE Dependence
95 
96  //DeltaT Dependence
102 
103  //Common Dependence
114 
115  //ShowerSigmaX Dependence
121 
122  //ShowerSigmaY Dependence
128 
129  //ShowerSigmaZ Dependence
135 
136  //ShowerSigmaE Dependence
142 
143  //ShowerSigmaT Dependence
149 
150 
151  BCALSelector(TTree * /*tree*/ =0) { }
152  virtual ~BCALSelector() { }
153  virtual Int_t Version() const { return 2; }
154  virtual void Begin(TTree *tree);
155  virtual void SlaveBegin(TTree *tree);
156  virtual void Init(TTree *tree);
157  virtual Bool_t Notify();
158  virtual Bool_t Process(Long64_t entry);
159  virtual Int_t GetEntry(Long64_t entry, Int_t getall = 0) { return fChain ? fChain->GetTree()->GetEntry(entry, getall) : 0; }
160  virtual void SetOption(const char *option) { fOption = option; }
161  virtual void SetObject(TObject *obj) { fObject = obj; }
162  virtual void SetInputList(TList *input) { fInput = input; }
163  virtual TList *GetOutputList() const { return fOutput; }
164  virtual void SlaveTerminate();
165  virtual void Terminate();
166 
168 };
169 
170 #endif
171 
172 #ifdef BCALSelector_cxx
173 void BCALSelector::Init(TTree *tree)
174 {
175  // The Init() function is called when the selector needs to initialize
176  // a new tree or chain. Typically here the branch addresses and branch
177  // pointers of the tree will be set.
178  // It is normally not necessary to make changes to the generated
179  // code, but the routine can be extended by the user if needed.
180  // Init() will be called many times when running on PROOF
181  // (once per file to be processed).
182 
183  // Set branch addresses and branch pointers
184  if (!tree) return;
185  fChain = tree;
186  fChain->SetMakeClass(1);
187 
188  fChain->SetBranchAddress("fUniqueID", &fUniqueID, &b_dPluginBranch_BCALMCComparison_fUniqueID);
189  fChain->SetBranchAddress("fBits", &fBits, &b_dPluginBranch_BCALMCComparison_fBits);
190  fChain->SetBranchAddress("dTrueR", &dTrueR, &b_dPluginBranch_BCALMCComparison_dTrueR);
191  fChain->SetBranchAddress("dTrueZ", &dTrueZ, &b_dPluginBranch_BCALMCComparison_dTrueZ);
192  fChain->SetBranchAddress("dTruePhi", &dTruePhi, &b_dPluginBranch_BCALMCComparison_dTruePhi);
193  fChain->SetBranchAddress("dTrueE", &dTrueE, &b_dPluginBranch_BCALMCComparison_dTrueE);
194  fChain->SetBranchAddress("dTrueT", &dTrueT, &b_dPluginBranch_BCALMCComparison_dTrueT);
195  fChain->SetBranchAddress("dDeltaR", &dDeltaR, &b_dPluginBranch_BCALMCComparison_dDeltaR);
196  fChain->SetBranchAddress("dDeltaZ", &dDeltaZ, &b_dPluginBranch_BCALMCComparison_dDeltaZ);
197  fChain->SetBranchAddress("dDeltaPhi", &dDeltaPhi, &b_dPluginBranch_BCALMCComparison_dDeltaPhi);
198  fChain->SetBranchAddress("dDeltaE", &dDeltaE, &b_dPluginBranch_BCALMCComparison_dDeltaE);
199  fChain->SetBranchAddress("dDeltaT", &dDeltaT, &b_dPluginBranch_BCALMCComparison_dDeltaT);
200  fChain->SetBranchAddress("dShowerUncertaintyX", &dShowerUncertaintyX, &b_dPluginBranch_BCALMCComparison_dShowerUncertaintyX);
201  fChain->SetBranchAddress("dShowerUncertaintyY", &dShowerUncertaintyY, &b_dPluginBranch_BCALMCComparison_dShowerUncertaintyY);
202  fChain->SetBranchAddress("dShowerUncertaintyZ", &dShowerUncertaintyZ, &b_dPluginBranch_BCALMCComparison_dShowerUncertaintyZ);
203  fChain->SetBranchAddress("dShowerUncertaintyT", &dShowerUncertaintyT, &b_dPluginBranch_BCALMCComparison_dShowerUncertaintyT);
204  fChain->SetBranchAddress("dShowerUncertaintyE", &dShowerUncertaintyE, &b_dPluginBranch_BCALMCComparison_dShowerUncertaintyE);
205  fChain->SetBranchAddress("dPathLengthCorrection", &dPathLengthCorrection, &b_dPluginBranch_BCALMCComparison_dPathLengthCorrection);
206 }
207 
208 Bool_t BCALSelector::Notify()
209 {
210  // The Notify() function is called when a new file is opened. This
211  // can be either for a new TTree in a TChain or when when a new TTree
212  // is started when using PROOF. It is normally not necessary to make changes
213  // to the generated code, but the routine can be extended by the
214  // user if needed. The return value is currently not used.
215 
216  return kTRUE;
217 }
218 
219 #endif // #ifdef BCALSelector_cxx
TBranch * b_dPluginBranch_BCALMCComparison_dShowerUncertaintyZ
Definition: BCALSelector.h:58
TH2F * dPluginHist_BCAL_ShowerSigmaEVsY
Definition: BCALSelector.h:138
TH2F * dPluginHist_BCAL_ShowerSigmaTVsT
Definition: BCALSelector.h:148
TH2F * dPluginHist_BCAL_DeltaPhiVsT
Definition: BCALSelector.h:80
TH2F * dPluginHist_BCAL_DeltaRVsPhi
Definition: BCALSelector.h:70
TH2F * dPluginHist_BCAL_ShowerSigmaXVsY
Definition: BCALSelector.h:117
TH2F * dPluginHist_BCAL_ShowerSigmaXVsZ
Definition: BCALSelector.h:118
TH2F * dPluginHist_BCAL_ShowerSigmaZVsZ
Definition: BCALSelector.h:132
Float_t dDeltaZ
Definition: BCALSelector.h:32
virtual Int_t GetEntry(Long64_t entry, Int_t getall=0)
Definition: BCALSelector.h:159
virtual ~BCALSelector()
Definition: BCALSelector.h:152
TH2F * dPluginHist_BCAL_DeltaRVsDeltaZ
Definition: BCALSelector.h:105
TBranch * b_dPluginBranch_BCALMCComparison_dShowerUncertaintyX
Definition: BCALSelector.h:56
TH2F * dPluginHist_BCAL_ShowerSigmaXVsE
Definition: BCALSelector.h:119
virtual Bool_t Process(Long64_t entry)
Definition: BCALSelector.C:161
TH2F * dPluginHist_BCAL_ShowerSigmaTVsE
Definition: BCALSelector.h:147
TH2F * dPluginHist_BCAL_DeltaPhiVsE
Definition: BCALSelector.h:79
TH2F * dPluginHist_BCAL_DeltaEVsE
Definition: BCALSelector.h:93
UInt_t fUniqueID
pointer to the analyzed TTree or TChain
Definition: BCALSelector.h:24
TBranch * b_dPluginBranch_BCALMCComparison_dDeltaPhi
Definition: BCALSelector.h:53
virtual void SlaveBegin(TTree *tree)
Definition: BCALSelector.C:151
TH2F * dPluginHist_BCAL_DeltaPhiVsR
Definition: BCALSelector.h:76
TH2F * dPluginHist_BCAL_DeltaRVsDeltaE
Definition: BCALSelector.h:106
TBranch * b_dPluginBranch_BCALMCComparison_dTrueE
Definition: BCALSelector.h:49
Float_t dShowerUncertaintyE
Definition: BCALSelector.h:40
TBranch * b_dPluginBranch_BCALMCComparison_dTrueZ
Definition: BCALSelector.h:47
Float_t dDeltaPhi
Definition: BCALSelector.h:33
UInt_t fBits
Definition: BCALSelector.h:25
TBranch * b_dPluginBranch_BCALMCComparison_fUniqueID
Definition: BCALSelector.h:44
TBranch * b_dPluginBranch_BCALMCComparison_dPathLengthCorrection
Definition: BCALSelector.h:61
TH2F * dPluginHist_BCAL_ShowerSigmaTVsY
Definition: BCALSelector.h:145
virtual void SetInputList(TList *input)
Definition: BCALSelector.h:162
Float_t dPathLengthCorrection
Definition: BCALSelector.h:41
TH2F * dPluginHist_BCAL_DeltaTVsZ
Definition: BCALSelector.h:99
TH2F * dPluginHist_BCAL_DeltaRVsR
Definition: BCALSelector.h:69
BCALSelector(TTree *=0)
Definition: BCALSelector.h:151
TH2F * dPluginHist_BCAL_DeltaRVsDeltaT
Definition: BCALSelector.h:107
TH2F * dPluginHist_BCAL_ShowerSigmaYVsZ
Definition: BCALSelector.h:125
TH2F * dPluginHist_BCAL_DeltaEVsPhi
Definition: BCALSelector.h:91
TBranch * b_dPluginBranch_BCALMCComparison_dTrueT
Definition: BCALSelector.h:50
TH2F * dPluginHist_BCAL_DeltaTVsT
Definition: BCALSelector.h:101
virtual void Begin(TTree *tree)
Definition: BCALSelector.C:31
TH2F * dPluginHist_BCAL_ShowerSigmaEVsZ
Definition: BCALSelector.h:139
TH2F * dPluginHist_BCAL_DeltaEVsR
Definition: BCALSelector.h:90
TH2F * dPluginHist_BCAL_DeltaPhiVsDeltaT
Definition: BCALSelector.h:110
Float_t dDeltaT
Definition: BCALSelector.h:35
Float_t dShowerUncertaintyY
Definition: BCALSelector.h:37
TH2F * dPluginHist_BCAL_DeltaZVsPhi
Definition: BCALSelector.h:84
TH2F * dPluginHist_BCAL_DeltaTVsE
Definition: BCALSelector.h:100
TH2F * dPluginHist_BCAL_DeltaRVsT
Definition: BCALSelector.h:73
TH2F * dPluginHist_BCAL_DeltaZVsR
Definition: BCALSelector.h:83
TH2F * dPluginHist_BCAL_ShowerSigmaTVsZ
Definition: BCALSelector.h:146
TH2F * dPluginHist_BCAL_ShowerSigmaTVsX
Definition: BCALSelector.h:144
TTree * fChain
Definition: BCALSelector.h:20
virtual void SlaveTerminate()
Definition: BCALSelector.C:289
virtual void SetObject(TObject *obj)
Definition: BCALSelector.h:161
TH2F * dPluginHist_BCAL_DeltaRVsDeltaPhi
Definition: BCALSelector.h:104
TH2F * dPluginHist_BCAL_PathLengthCorrection
Definition: BCALSelector.h:65
ClassDef(BCALSelector, 0)
TH2F * dPluginHist_BCAL_ShowerSigmaYVsY
Definition: BCALSelector.h:124
Float_t dTruePhi
Definition: BCALSelector.h:28
Float_t dTrueR
Definition: BCALSelector.h:26
Float_t dShowerUncertaintyZ
Definition: BCALSelector.h:38
TH2F * dPluginHist_BCAL_DeltaEVsT
Definition: BCALSelector.h:94
TBranch * b_dPluginBranch_BCALMCComparison_dShowerUncertaintyE
Definition: BCALSelector.h:60
TH2F * dPluginHist_BCAL_ShowerSigmaYVsT
Definition: BCALSelector.h:127
TH2F * dPluginHist_BCAL_ShowerSigmaZVsE
Definition: BCALSelector.h:133
TBranch * b_dPluginBranch_BCALMCComparison_dDeltaR
Definition: BCALSelector.h:51
virtual Bool_t Notify()
TH2F * dPluginHist_BCAL_ShowerSigmaEVsX
Definition: BCALSelector.h:137
TBranch * b_dPluginBranch_BCALMCComparison_fBits
Definition: BCALSelector.h:45
TH2F * dPluginHist_BCAL_ShowerSigmaXVsX
Definition: BCALSelector.h:116
virtual void SetOption(const char *option)
Definition: BCALSelector.h:160
TH2F * dPluginHist_BCAL_DeltaPhiVsDeltaE
Definition: BCALSelector.h:109
TH2F * dPluginHist_BCAL_DeltaZVsE
Definition: BCALSelector.h:86
virtual Int_t Version() const
Definition: BCALSelector.h:153
TH2F * dPluginHist_BCAL_DeltaRVsE
Definition: BCALSelector.h:72
Float_t dShowerUncertaintyT
Definition: BCALSelector.h:39
Float_t dTrueZ
Definition: BCALSelector.h:27
TBranch * b_dPluginBranch_BCALMCComparison_dTruePhi
Definition: BCALSelector.h:48
TBranch * b_dPluginBranch_BCALMCComparison_dShowerUncertaintyT
Definition: BCALSelector.h:59
virtual void Terminate()
Definition: BCALSelector.C:297
TH2F * dPluginHist_BCAL_ShowerSigmaEVsE
Definition: BCALSelector.h:140
float Calc_BCALPathLengthCorrection(float locEnergy)
Definition: BCALSelector.C:306
TH2F * dPluginHist_BCAL_ShowerSigmaZVsY
Definition: BCALSelector.h:131
Float_t dTrueT
Definition: BCALSelector.h:30
TH2F * dPluginHist_BCAL_DeltaEVsDeltaT
Definition: BCALSelector.h:113
TH2F * dPluginHist_BCAL_ShowerSigmaZVsT
Definition: BCALSelector.h:134
TBranch * b_dPluginBranch_BCALMCComparison_dDeltaT
Definition: BCALSelector.h:55
TFile * dOutputFile
Definition: BCALSelector.h:63
TH2F * dPluginHist_BCAL_DeltaZVsT
Definition: BCALSelector.h:87
TH2F * dPluginHist_BCAL_ShowerSigmaXVsT
Definition: BCALSelector.h:120
TH2F * dPluginHist_BCAL_DeltaPhiVsPhi
Definition: BCALSelector.h:77
TH2F * dPluginHist_BCAL_ShowerSigmaYVsX
Definition: BCALSelector.h:123
TH2F * dPluginHist_BCAL_DeltaZVsZ
Definition: BCALSelector.h:85
TH2F * dPluginHist_BCAL_DeltaEVsZ
Definition: BCALSelector.h:92
TBranch * b_dPluginBranch_BCALMCComparison_dDeltaE
Definition: BCALSelector.h:54
TBranch * b_dPluginBranch_BCALMCComparison_dShowerUncertaintyY
Definition: BCALSelector.h:57
TH2F * dPluginHist_BCAL_ShowerSigmaYVsE
Definition: BCALSelector.h:126
Float_t dTrueE
Definition: BCALSelector.h:29
virtual TList * GetOutputList() const
Definition: BCALSelector.h:163
TH2F * dPluginHist_BCAL_DeltaPhiVsDeltaZ
Definition: BCALSelector.h:108
TH2F * dPluginHist_BCAL_DeltaTVsPhi
Definition: BCALSelector.h:98
Float_t dDeltaE
Definition: BCALSelector.h:34
TBranch * b_dPluginBranch_BCALMCComparison_dDeltaZ
Definition: BCALSelector.h:52
TH2F * dPluginHist_BCAL_ShowerSigmaEVsT
Definition: BCALSelector.h:141
TH2F * dPluginHist_BCAL_PathLengthCorrectionPostEVsZ
Definition: BCALSelector.h:66
TH2F * dPluginHist_BCAL_DeltaZVsDeltaT
Definition: BCALSelector.h:112
Float_t dDeltaR
Definition: BCALSelector.h:31
TH2F * dPluginHist_BCAL_DeltaPhiVsZ
Definition: BCALSelector.h:78
TH2F * dPluginHist_BCAL_DeltaTVsR
Definition: BCALSelector.h:97
Float_t dShowerUncertaintyX
Definition: BCALSelector.h:36
TH2F * dPluginHist_BCAL_DeltaZVsDeltaE
Definition: BCALSelector.h:111
TH2F * dPluginHist_BCAL_DeltaRVsZ
Definition: BCALSelector.h:71
TBranch * b_dPluginBranch_BCALMCComparison_dTrueR
Definition: BCALSelector.h:46
TH2F * dPluginHist_BCAL_ShowerSigmaZVsX
Definition: BCALSelector.h:130
virtual void Init(TTree *tree)