Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DCdEdxSelector.h
Go to the documentation of this file.
1 //////////////////////////////////////////////////////////
2 // This class has been automatically generated on
3 // Wed Nov 30 12:10:49 2011 by ROOT version 5.30/00
4 // from TTree dPluginTree_DCdEdxInformation/DC dEdx Information
5 // found on file: cluster_run/hd_root_dcdedx_proton_fom.root
6 //////////////////////////////////////////////////////////
7 
8 #ifndef DCdEdxSelector_h
9 #define DCdEdxSelector_h
10 
11 #include <TROOT.h>
12 #include <TChain.h>
13 #include <TFile.h>
14 #include <TSelector.h>
15 
16 class DCdEdxSelector : public TSelector {
17 public :
18  TTree *fChain; //!pointer to the analyzed TTree or TChain
19 
20  // Declaration of leaf types
21  //DCdEdxInformation *dPluginBranch_DCdEdxInformation;
22  UInt_t fUniqueID;
23  UInt_t fBits;
24  Double_t dBeta;
25  Double_t dMomentum;
26  Double_t dTheta;
27  Double_t dVertexZ;
28  Double_t ddEdx_FDC;
29  Double_t ddx_FDC;
31  Double_t ddEdx_CDC;
32  Double_t ddx_CDC;
34  Double_t dChiSq_DCdEdx;
35  UInt_t dNDF_DCdEdx;
36  Double_t dFOM;
37 
51 
52  bool GetdEdxMean_CDC(double locBeta, unsigned int locNumHitsUsedFordEdx, double& locMeandEdx);
53  bool GetdEdxMean_FDC(double locBeta, unsigned int locNumHitsUsedFordEdx, double& locMeandEdx);
54  bool GetdEdxSigma_FDC(double locBeta, unsigned int locNumHitsUsedFordEdx, double& locSigmadEdx);
55  bool GetdEdxSigma_CDC(double locBeta, unsigned int locNumHitsUsedFordEdx, double& locSigmadEdx);
56  bool Calc_FOM(double& locFOM);
57 
64 
67 
68  string dParticleName;
69 
70  TFile* dOutputFile;
71 
78 
86 
90 
95 
103 
107 
112 
119 
132 
145 
146  // List of branches
162 
163  DCdEdxSelector(TTree * /*tree*/ =0) { }
164  virtual ~DCdEdxSelector() { }
165  virtual Int_t Version() const { return 2; }
166  virtual void Begin(TTree *tree);
167  virtual void SlaveBegin(TTree *tree);
168  virtual void Init(TTree *tree);
169  virtual Bool_t Notify();
170  virtual Bool_t Process(Long64_t entry);
171  virtual Int_t GetEntry(Long64_t entry, Int_t getall = 0) { return fChain ? fChain->GetTree()->GetEntry(entry, getall) : 0; }
172  virtual void SetOption(const char *option) { fOption = option; }
173  virtual void SetObject(TObject *obj) { fObject = obj; }
174  virtual void SetInputList(TList *input) { fInput = input; }
175  virtual TList *GetOutputList() const { return fOutput; }
176  virtual void SlaveTerminate();
177  virtual void Terminate();
178 
180 };
181 
182 #endif
183 
184 #ifdef DCdEdxSelector_cxx
185 void DCdEdxSelector::Init(TTree *tree)
186 {
187  // The Init() function is called when the selector needs to initialize
188  // a new tree or chain. Typically here the branch addresses and branch
189  // pointers of the tree will be set.
190  // It is normally not necessary to make changes to the generated
191  // code, but the routine can be extended by the user if needed.
192  // Init() will be called many times when running on PROOF
193  // (once per file to be processed).
194 
195  // Set branch addresses and branch pointers
196  if (!tree) return;
197  fChain = tree;
198  fChain->SetMakeClass(1);
199 
200  fChain->SetBranchAddress("fUniqueID", &fUniqueID, &b_dPluginBranch_DCdEdxInformation_fUniqueID);
201  fChain->SetBranchAddress("fBits", &fBits, &b_dPluginBranch_DCdEdxInformation_fBits);
202  fChain->SetBranchAddress("dBeta", &dBeta, &b_dPluginBranch_DCdEdxInformation_dBeta);
203  fChain->SetBranchAddress("dMomentum", &dMomentum, &b_dPluginBranch_DCdEdxInformation_dMomentum);
204  fChain->SetBranchAddress("dTheta", &dTheta, &b_dPluginBranch_DCdEdxInformation_dTheta);
205  fChain->SetBranchAddress("dVertexZ", &dVertexZ, &b_dPluginBranch_DCdEdxInformation_dVertexZ);
206  fChain->SetBranchAddress("ddEdx_FDC", &ddEdx_FDC, &b_dPluginBranch_DCdEdxInformation_ddEdx_FDC);
207  fChain->SetBranchAddress("ddx_FDC", &ddx_FDC, &b_dPluginBranch_DCdEdxInformation_ddx_FDC);
208  fChain->SetBranchAddress("dNumHitsUsedFordEdx_FDC", &dNumHitsUsedFordEdx_FDC, &b_dPluginBranch_DCdEdxInformation_dNumHitsUsedFordEdx_FDC);
209  fChain->SetBranchAddress("ddEdx_CDC", &ddEdx_CDC, &b_dPluginBranch_DCdEdxInformation_ddEdx_CDC);
210  fChain->SetBranchAddress("ddx_CDC", &ddx_CDC, &b_dPluginBranch_DCdEdxInformation_ddx_CDC);
211  fChain->SetBranchAddress("dNumHitsUsedFordEdx_CDC", &dNumHitsUsedFordEdx_CDC, &b_dPluginBranch_DCdEdxInformation_dNumHitsUsedFordEdx_CDC);
212  fChain->SetBranchAddress("dChiSq_DCdEdx", &dChiSq_DCdEdx, &b_dPluginBranch_DCdEdxInformation_dChiSq_DCdEdx);
213  fChain->SetBranchAddress("dNDF_DCdEdx", &dNDF_DCdEdx, &b_dPluginBranch_DCdEdxInformation_dNDF_DCdEdx);
214  fChain->SetBranchAddress("dFOM", &dFOM, &b_dPluginBranch_DCdEdxInformation_dFOM);
215 }
216 
217 Bool_t DCdEdxSelector::Notify()
218 {
219  // The Notify() function is called when a new file is opened. This
220  // can be either for a new TTree in a TChain or when when a new TTree
221  // is started when using PROOF. It is normally not necessary to make changes
222  // to the generated code, but the routine can be extended by the
223  // user if needed. The return value is currently not used.
224 
225  return kTRUE;
226 }
227 
228 #endif // #ifdef DCdEdxSelector_cxx
229 
vector< int > ddEdxSigmaNumHitsVector_CDC_PiPlus
TH1F * dSelectorHist_ConfidenceLevel_FDC_BetaGammaBin8
TH1F * dSelectorHist_ConfidenceLevel_Both
virtual void SetObject(TObject *obj)
TH1F * dSelectorHist_ConfidenceLevel_FDC_BetaGammaBin3
TH2F * dSelectorHist_dEdxVsBetaGamma_HitsCutoff_CDC_12Hits
TBranch * b_dPluginBranch_DCdEdxInformation_fBits
TH2F * dSelectorHist_dEdxVsBetaGamma_HitsCutoff_CDC_4Hits
TH2F * dSelectorHist_NumHitsVsTheta_CDC
TH1F * dSelectorHist_ConfidenceLevel_FDC_BetaGammaBin1
TBranch * b_dPluginBranch_DCdEdxInformation_dMomentum
virtual void SetOption(const char *option)
vector< int > ddEdxSigmaNumHitsVector_CDC_KPlus
TH2F * dSelectorHist_dEdxVsBetaGamma_HitsCutoff_FDC
bool GetdEdxSigma_CDC(double locBeta, unsigned int locNumHitsUsedFordEdx, double &locSigmadEdx)
TH2F * dSelectorHist_dEdxVsP_HitsCutoff_FDC
TH2F * dSelectorHist_dEdxVsBetaGamma_HitsCutoff_CDC
TH1F * dSelectorHist_PercentageNotEnoughHitsInTheta
bool GetdEdxMean_FDC(double locBeta, unsigned int locNumHitsUsedFordEdx, double &locMeandEdx)
TBranch * b_dPluginBranch_DCdEdxInformation_dFOM
Double_t dVertexZ
TH1F * dSelectorHist_ConfidenceLevel_FDC_BetaGammaBin2
TH2F * dSelectorHist_dEdxVsBetaGamma_HitsCutoff_FDC_12Hits
bool GetdEdxMean_CDC(double locBeta, unsigned int locNumHitsUsedFordEdx, double &locMeandEdx)
TH1F * dSelectorHist_ConfidenceLevel_CDC_14Hits
bool Calc_FOM(double &locFOM)
virtual Bool_t Notify()
TF1 * ddEdxMeanFunc_FDC_KPlus
TH1F * dSelectorHist_ConfidenceLevel_CDC_4Hits
bool dCalcFOMManuallyFlag
TBranch * b_dPluginBranch_DCdEdxInformation_dVertexZ
TBranch * b_dPluginBranch_DCdEdxInformation_ddEdx_FDC
TH2F * dSelectorHist_dEdxVsP_HitsCutoff_CDC
TBranch * b_dPluginBranch_DCdEdxInformation_dBeta
TF1 * ddEdxMeanFunc_FDC_Proton
TH1F * dSelectorHist_ConfidenceLevel_CDC_BetaGammaBin1
TF1 * ddEdxMeanFunc_FDC_PiPlus
TFile * dOutputFile
TBranch * b_dPluginBranch_DCdEdxInformation_dNDF_DCdEdx
UInt_t dNumHitsUsedFordEdx_FDC
TH2F * dSelectorHist_dEdxVsBetaGamma_HitsCutoff_CDC_14Hits
TH1F * dSelectorHist_ConfidenceLevel_CDC_BetaGammaBin5
virtual Int_t GetEntry(Long64_t entry, Int_t getall=0)
TBranch * b_dPluginBranch_DCdEdxInformation_dNumHitsUsedFordEdx_CDC
TH1F * dSelectorHist_ConfidenceLevel_FDC_BetaGammaBin11
TH2F * dSelectorHist_dEdxVsBetaGamma_HitsCutoff_FDC_3Hits
TH1F * dSelectorHist_ConfidenceLevel_CDC_BetaGammaBin2
virtual Bool_t Process(Long64_t entry)
virtual void SlaveBegin(TTree *tree)
Double_t ddEdx_FDC
TH1F * dSelectorHist_ConfidenceLevel_FDC_6Hits
TObjArray * dSigmaFuncArray_FDC_PiPlus
TObjArray * dSigmaFuncArray_CDC_Proton
Double_t dMomentum
TF1 * ddEdxMeanFunc_CDC_KPlus
TH1F * dSelectorHist_ConfidenceLevel_CDC_10Hits
vector< int > ddEdxSigmaNumHitsVector_FDC_PiPlus
string dParticleName
TH2F * dSelectorHist_dEdxVsBetaGamma_HitsCutoff_CDC_8Hits
TBranch * b_dPluginBranch_DCdEdxInformation_dChiSq_DCdEdx
Double_t ddEdx_CDC
virtual ~DCdEdxSelector()
TBranch * b_dPluginBranch_DCdEdxInformation_ddEdx_CDC
UInt_t dNumHitsUsedFordEdx_CDC
Double_t ddx_CDC
vector< int > ddEdxSigmaNumHitsVector_FDC_KPlus
TH1F * dSelectorHist_ConfidenceLevel_FDC_BetaGammaBin7
bool GetdEdxSigma_FDC(double locBeta, unsigned int locNumHitsUsedFordEdx, double &locSigmadEdx)
TH2F * dSelectorHist_dxVsNumHits_FDC
TH1F * dSelectorHist_ConfidenceLevel_CDC_BetaGammaBin12
TH1F * dSelectorHist_ConfidenceLevel_CDC_6Hits
TH2F * dSelectorHist_dxVsNumHits_CDC
vector< int > ddEdxSigmaNumHitsVector_CDC_Proton
double dRhoZoverA_FDC
TH2F * dSelectorHist_dxVsTheta_FDC
TH2F * dSelectorHist_NumHitsVsTheta_FDC
TH1F * dSelectorHist_ConfidenceLevel_CDC_12Hits
TH1F * dSelectorHist_ConfidenceLevel_FDC_3Hits
TH1F * dSelectorHist_ConfidenceLevel_FDC_BetaGammaBin6
TBranch * b_dPluginBranch_DCdEdxInformation_ddx_FDC
TH1F * dSelectorHist_ConfidenceLevel_FDC_BetaGammaBin4
DCdEdxSelector(TTree *=0)
TH1F * dSelectorHist_ConfidenceLevel_CDC_BetaGammaBin7
virtual Int_t Version() const
TBranch * b_dPluginBranch_DCdEdxInformation_fUniqueID
TH1F * dSelectorHist_ThetaDistribution
double dRhoZoverA_CDC
TBranch * b_dPluginBranch_DCdEdxInformation_ddx_CDC
TH1F * dSelectorHist_ConfidenceLevel_FDC
TH2F * dSelectorHist_dEdxVsBetaGamma_HitsCutoff_FDC_9Hits
TH2F * dSelectorHist_dEdxVsBetaGamma_HitsCutoff_CDC_6Hits
TH1F * dSelectorHist_ConfidenceLevel_CDC_BetaGammaBin9
TH1F * dSelectorHist_ConfidenceLevel_FDC_9Hits
Double_t ddx_FDC
TObjArray * dSigmaFuncArray_CDC_PiPlus
TH1F * dSelectorHist_ConfidenceLevel_FDC_BetaGammaBin9
TH1F * dSelectorHist_ConfidenceLevel_FDC_BetaGammaBin12
TH2F * dSelectorHist_dxVsTheta_CDC
TH1F * dSelectorHist_ConfidenceLevel_CDC
TH2F * dSelectorHist_dEdxVsBeta_HitsCutoff_FDC
TH1F * dSelectorHist_ConfidenceLevel_FDC_12Hits
TObjArray * dSigmaFuncArray_CDC_KPlus
virtual void Init(TTree *tree)
TH2F * dSelectorHist_dEdxVsBetaGamma_HitsCutoff_FDC_6Hits
TH1F * dSelectorHist_ConfidenceLevel_CDC_BetaGammaBin3
TH1F * dSelectorHist_ConfidenceLevel_CDC_BetaGammaBin10
virtual void Terminate()
TH1F * dSelectorHist_ConfidenceLevel_FDC_BetaGammaBin5
TH1F * dSelectorHist_ConfidenceLevel_CDC_8Hits
Double_t dChiSq_DCdEdx
TBranch * b_dPluginBranch_DCdEdxInformation_dNumHitsUsedFordEdx_FDC
TH2F * dSelectorHist_dEdxVsBetaGamma_HitsCutoff_CDC_2Hits
TH1F * dSelectorHist_ConfidenceLevel_CDC_BetaGammaBin8
TH2F * dSelectorHist_dEdxVsBetaGamma_HitsCutoff_CDC_10Hits
TH2F * dSelectorHist_dEdxVsBeta_HitsCutoff_CDC
TH1F * dSelectorHist_NotEnoughHitsInTheta
virtual void Begin(TTree *tree)
TH2F * dSelectorHist_NumHitsFDCVsNumHitsCDC
TF1 * ddEdxMeanFunc_CDC_Proton
TH1F * dSelectorHist_ConfidenceLevel_FDC_BetaGammaBin10
vector< int > ddEdxSigmaNumHitsVector_FDC_Proton
UInt_t fUniqueID
pointer to the analyzed TTree or TChain
TBranch * b_dPluginBranch_DCdEdxInformation_dTheta
ClassDef(DCdEdxSelector, 0)
TF1 * ddEdxMeanFunc_CDC_PiPlus
TObjArray * dSigmaFuncArray_FDC_Proton
virtual TList * GetOutputList() const
TH1F * dSelectorHist_ConfidenceLevel_CDC_BetaGammaBin4
TH1F * dSelectorHist_ConfidenceLevel_CDC_BetaGammaBin11
virtual void SlaveTerminate()
virtual void SetInputList(TList *input)
TH1F * dSelectorHist_ConfidenceLevel_CDC_BetaGammaBin6
TObjArray * dSigmaFuncArray_FDC_KPlus