Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DSelector_Z2pi_trees2.h
Go to the documentation of this file.
1 #ifndef DSelector_Z2pi_trees2_h
2 #define DSelector_Z2pi_trees2_h
3 
4 #include <iostream>
5 
6 #include "DSelector/DSelector.h"
7 #include "DSelector/DHistogramActions.h"
8 #include "DSelector/DCutActions.h"
9 
10 #include "TH1I.h"
11 #include "TH2I.h"
12 #include "TLorentzVector.h"
13 #include "TLorentzRotation.h"
14 
15 class DSelector_Z2pi_trees2 : public DSelector
16 {
17  public:
18 
19  DSelector_Z2pi_trees2(TTree* locTree = NULL) : DSelector(locTree){}
21 
22  void Init(TTree *tree);
23  Bool_t Process(Long64_t entry);
24 
25  private:
26 
27  void Get_ComboWrappers(void);
28  void Finalize(void);
29 
30  // BEAM POLARIZATION INFORMATION
32  bool dIsPolarizedFlag; //else is AMO
33  bool dIsPARAFlag; //else is PERP or AMO
34 
35  //CREATE REACTION-SPECIFIC PARTICLE ARRAYS
36 
37  //Step 0
38  DParticleComboStep* dStep0Wrapper;
39  DBeamParticle* dComboBeamWrapper;
43 
44  // DEFINE YOUR HISTOGRAMS HERE
45  // EXAMPLES:
57  TH1I* dHist_tgen;
58  TH1I* dHist_tkin;
59  TH1I* dHist_tdiff;
75 
76 
77  TH1I* dHist_Phigen;
78  TH1I* dHist_phigen;
79  TH1I* dHist_Phikin;
80  TH1I* dHist_phikin;
83  TH1I* dHist_psigen;
87  TH1I* dHist_psikin;
95 
96  // Cut parameters
99  Double_t dMinKinFitCL;
100  Double_t dMaxKinFitChiSq;
101  Double_t dMinBeamEnergy;
102  Double_t dMaxBeamEnergy;
103  Double_t dMin2piMass;
104  Double_t dMax2piMass;
107 
108  Double_t AccWeight; // used to store weights due to accidental tagger subtraction
109 
111 };
112 
114 {
115  //Step 0
116  dStep0Wrapper = dComboWrapper->Get_ParticleComboStep(0);
117  dComboBeamWrapper = static_cast<DBeamParticle*>(dStep0Wrapper->Get_InitialParticle());
118  dPiPlusWrapper = static_cast<DChargedTrackHypothesis*>(dStep0Wrapper->Get_FinalParticle(0));
119  dPiMinusWrapper = static_cast<DChargedTrackHypothesis*>(dStep0Wrapper->Get_FinalParticle(1));
120  dMissingPb208Wrapper = dStep0Wrapper->Get_FinalParticle(2);
121 }
122 
123 #endif // DSelector_Z2pi_trees2_h
DChargedTrackHypothesis * dPiMinusWrapper
DBeamParticle * dComboBeamWrapper
DKinematicData * dMissingPb208Wrapper
DSelector_Z2pi_trees2(TTree *locTree=NULL)
Bool_t Process(Long64_t entry)
ClassDef(DSelector_Z2pi_trees2, 0)
DChargedTrackHypothesis * dPiPlusWrapper
DParticleComboStep * dStep0Wrapper