Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DSelector_Z2pi_trees.h
Go to the documentation of this file.
1 #ifndef DSelector_Z2pi_trees_h
2 #define DSelector_Z2pi_trees_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_trees : public DSelector
16 {
17  public:
18 
19  DSelector_Z2pi_trees(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  TH1I* dHist_Phigen;
76  TH1I* dHist_phigen;
77  TH1I* dHist_Phikin;
78  TH1I* dHist_phikin;
81  TH1I* dHist_psigen;
85  TH1I* dHist_psikin;
92 
93  // Cut parameters
96  Double_t dMinKinFitCL;
97  Double_t dMaxKinFitChiSq;
98  Double_t dMinBeamEnergy;
99  Double_t dMaxBeamEnergy;
100  Double_t dMin2piMass;
101  Double_t dMax2piMass;
104 
106 };
107 
109 {
110  //Step 0
111  dStep0Wrapper = dComboWrapper->Get_ParticleComboStep(0);
112  dComboBeamWrapper = static_cast<DBeamParticle*>(dStep0Wrapper->Get_InitialParticle());
113  dMissingPb208Wrapper = dStep0Wrapper->Get_FinalParticle(0);
114  dPiPlusWrapper = static_cast<DChargedTrackHypothesis*>(dStep0Wrapper->Get_FinalParticle(1));
115  dPiMinusWrapper = static_cast<DChargedTrackHypothesis*>(dStep0Wrapper->Get_FinalParticle(2));
116 }
117 
118 #endif // DSelector_Z2pi_trees_h
DParticleComboStep * dStep0Wrapper
DKinematicData * dMissingPb208Wrapper
DSelector_Z2pi_trees(TTree *locTree=NULL)
DBeamParticle * dComboBeamWrapper
DChargedTrackHypothesis * dPiMinusWrapper
ClassDef(DSelector_Z2pi_trees, 0)
Bool_t Process(Long64_t entry)
void Init(TTree *tree)
DChargedTrackHypothesis * dPiPlusWrapper