// $Id$ // // File: DCustomAction_TrackPStudies.h // Created: Mon May 5 19:51:25 CDT 2014 // Creator: pmatt (on Darwin pmattLaptop 10.8.0 i386) // #ifndef _DCustomAction_TrackPStudies_ #define _DCustomAction_TrackPStudies_ #include #include #include "TH1D.h" #include "TH2D.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_TrackPStudies : public DAnalysisAction { public: DCustomAction_TrackPStudies(const DReaction* locReaction, string locActionUniqueString = "") : DAnalysisAction(locReaction, "Custom_TrackPStudies", false, locActionUniqueString) {} void Initialize(JEventLoop* locEventLoop); private: bool Perform_Action(JEventLoop* locEventLoop, const DParticleCombo* locParticleCombo); // Optional: Useful utility functions. // const DAnalysisUtilities* dAnalysisUtilities; //Store any histograms as member variables here TH1D* dHist_TotalP; TH2D* dHist_TotalPVsBeamE; TH1D* dHist_TotalPt; TH2D* dHist_TotalPyVsPx; }; #endif // _DCustomAction_TrackPStudies_