Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DCustomAction_p2k_hists.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DCustomAction_p2k_hists.h
4 // Created: Wed Jan 21 16:53:41 EST 2015
5 // Creator: jrsteven (on Linux ifarm1401 2.6.32-431.el6.x86_64 x86_64)
6 //
7 
8 #ifndef _DCustomAction_p2k_hists_
9 #define _DCustomAction_p2k_hists_
10 
11 #include <string>
12 #include <iostream>
13 
14 #include "TH1.h"
15 
16 #include "JANA/JEventLoop.h"
17 #include "JANA/JApplication.h"
18 
20 #include "ANALYSIS/DReaction.h"
23 
24 using namespace std;
25 using namespace jana;
26 
28 {
29  public:
30 
31  DCustomAction_p2k_hists(const DReaction* locReaction, bool locUseKinFitResultsFlag, string locActionUniqueString = "") :
32  DAnalysisAction(locReaction, "Custom_p2k_hists", locUseKinFitResultsFlag, locActionUniqueString) {}
33 
34  void Initialize(JEventLoop* locEventLoop);
35 
36  private:
37 
38  bool Perform_Action(JEventLoop* locEventLoop, const DParticleCombo* locParticleCombo);
39 
40  // Parameters for event selection to fill histograms
42  double cohmin_energy, cohedge_energy, endpoint_energy;
43  double dEdxCut, minMM2Cut, maxMM2Cut, maxPhiMassCut;
44 
45  // Optional: Useful utility functions.
47 
48  //Store any histograms as member variables here
49  TH1I *dEgamma;
50  TH1I *dInvariantMass, *dMissingMassSq;
51  TH2I *dKplus_deltaInvBeta_P, *dKminus_deltaInvBeta_P;
52  TH2I *dM2pi_M2k, *dM2pi_M2k_ProtonTag;
53  TH2I *dMM2_M2k, *dProton_dEdx_P, *dProton_P_Theta, *dDeltaE_M2k;
54 
55  TH2I *dMM2_M2k_ProtonTag, *dDeltaE_M2k_ProtonTag, *dEgamma_M2k_ProtonTag;
56  TH2I *dKplus_deltaInvBeta_P_ProtonTag, *dKminus_deltaInvBeta_P_ProtonTag;
57  TH2I *dKplus_deltaInvBeta_P_PhiTag, *dKminus_deltaInvBeta_P_PhiTag;
58  TH2I *dKplus_deltaInvBeta_P_RhoTag, *dKminus_deltaInvBeta_P_RhoTag;
59  TH2I *dKplus_Beta_P_PhiTag, *dKminus_Beta_P_PhiTag;
60  TH2I *dKplus_Beta_P_RhoTag, *dKminus_Beta_P_RhoTag;
61  TH2I *dKplus_P_Theta_PhiTag, *dKminus_P_Theta_PhiTag;
62  TH2I *dKplus_P_Theta_RhoTag, *dKminus_P_Theta_RhoTag;
63 };
64 
65 #endif // _DCustomAction_p2k_hists_
66 
DCustomAction_p2k_hists(const DReaction *locReaction, bool locUseKinFitResultsFlag, string locActionUniqueString="")
const DAnalysisUtilities * dAnalysisUtilities