// $Id$ // // File: DCustomAction_2pi_hists.h // Created: Wed Jan 21 16:53:41 EST 2015 // Creator: jrsteven (on Linux ifarm1401 2.6.32-431.el6.x86_64 x86_64) // #ifndef _DCustomAction_p2pi_hists_ #define _DCustomAction_p2pi_hists_ #include #include #include "TH1.h" #include "JANA/JEventLoop.h" #include "JANA/JApplication.h" #include "ANALYSIS/DAnalysisAction.h" #include "ANALYSIS/DReaction.h" #include "ANALYSIS/DParticleCombo.h" #include "ANALYSIS/DAnalysisUtilities.h" using namespace std; using namespace jana; class DCustomAction_p2pi_hists : public DAnalysisAction { public: DCustomAction_p2pi_hists(const DReaction* locReaction, bool locUseKinFitResultsFlag, string locActionUniqueString = "") : DAnalysisAction(locReaction, "Custom_p2pi_hists", locUseKinFitResultsFlag, locActionUniqueString), dActionUniqueString(locActionUniqueString) {} void Initialize(JEventLoop* locEventLoop); private: bool Perform_Action(JEventLoop* locEventLoop, const DParticleCombo* locParticleCombo); // Optional: Useful utility functions. const DAnalysisUtilities* dAnalysisUtilities; // need PID algos for SC matching const DParticleID* dParticleID; string dActionUniqueString; //Store any histograms as member variables here TH1D *dM2pi, *dEgamma2pi; TH2D *dMM_M2pi, *dMissingDeltaPT_DeltaPhi, *dMM2_DeltaPhi; TH2D *dMM_M2pi_Emeson; TH2D *dMM_M2pi_Recoil, *dMM_M2pi_Exclusive, *dProton_dEdx_P_Exclusive, *dProton_P_Theta_Exclusive, *dDeltaE_M2pi_Exclusive; TH2D* dRecoilPT_M2pi, *dRecoilPT_M2pi_Exclusive; TH2D *dMM_DeltaM2pi, *dMM2_DeltaM2pi; TH2D *dCosThetaCM_t; }; #endif // _DCustomAction_p2pi_hists_