Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DSelector_p2pi_trees.h
Go to the documentation of this file.
1 #ifndef DSelector_p2pi_trees_h
2 #define DSelector_p2pi_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_p2pi_trees : public DSelector
16 {
17  public:
18 
19  DSelector_p2pi_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:
54  TH1I* dHist_M2pi;
55  TH1I* dHist_t;
57  TH1I* dHist_phi;
58  TH1I* dHist_Phi;
59  TH1I* dHist_psi;
66 
67  // Cut parameters
70  Double_t dMinKinFitCL;
71  Double_t dMaxKinFitChiSq;
72  Double_t dMinBeamEnergy;
73  Double_t dMaxBeamEnergy;
74  Double_t dMin2piMass;
75  Double_t dMax2piMass;
78 
80 };
81 
83 {
84  //Step 0
85  dStep0Wrapper = dComboWrapper->Get_ParticleComboStep(0);
86  dComboBeamWrapper = static_cast<DBeamParticle*>(dStep0Wrapper->Get_InitialParticle());
87  dProtonWrapper = static_cast<DChargedTrackHypothesis*>(dStep0Wrapper->Get_FinalParticle(0));
88  dPiPlusWrapper = static_cast<DChargedTrackHypothesis*>(dStep0Wrapper->Get_FinalParticle(1));
89  dPiMinusWrapper = static_cast<DChargedTrackHypothesis*>(dStep0Wrapper->Get_FinalParticle(2));
90 }
91 
92 #endif // DSelector_p2pi_trees_h
DParticleComboStep * dStep0Wrapper
DChargedTrackHypothesis * dPiMinusWrapper
DSelector_p2pi_trees(TTree *locTree=NULL)
Bool_t Process(Long64_t entry)
DChargedTrackHypothesis * dPiPlusWrapper
DBeamParticle * dComboBeamWrapper
ClassDef(DSelector_p2pi_trees, 0)
DChargedTrackHypothesis * dProtonWrapper
void Init(TTree *tree)