// $Id$ // // File: DCustomAction_DetectorStudies.h // Created: Thu May 1 18:23:01 EDT 2014 // Creator: pmatt (on Darwin pmattLaptop 10.8.0 i386) // #ifndef _DCustomAction_DetectorStudies_ #define _DCustomAction_DetectorStudies_ #include #include #include "JANA/JEventLoop.h" #include "JANA/JApplication.h" #include "ANALYSIS/DAnalysisAction.h" #include "ANALYSIS/DReaction.h" #include "ANALYSIS/DParticleCombo.h" #include "ANALYSIS/DAnalysisUtilities.h" #include "PID/DNeutralShower.h" #include "PID/DNeutralParticle.h" #include "FCAL/DFCALShower.h" #include "BCAL/DBCALShower.h" using namespace std; using namespace jana; class DCustomAction_DetectorStudies : public DAnalysisAction { public: //user can call any of these three constructors DCustomAction_DetectorStudies(const DReaction* locReaction, string locActionUniqueString = "") : DAnalysisAction(locReaction, "Custom_DetectorStudies", false, locActionUniqueString) {} DCustomAction_DetectorStudies(string locActionUniqueString) : DAnalysisAction(NULL, "Custom_DetectorStudies", false, locActionUniqueString) {} DCustomAction_DetectorStudies(void) : DAnalysisAction(NULL, "Custom_DetectorStudies", false, "") {} void Initialize(JEventLoop* locEventLoop); private: bool Perform_Action(JEventLoop* locEventLoop, const DParticleCombo* locParticleCombo = NULL); // Optional: Useful utility functions. // const DAnalysisUtilities* dAnalysisUtilities; //Store any histograms as member variables here TH1D* dHist_FCALShowerTime; TH1D* dHist_FCALShowerEnergy; TH2D* dHist_FCALShowerEnergyVsTime; TH1D* dHist_FCALShowerPhi; TH1D* dHist_BCALShowerTime; TH1D* dHist_BCALShowerEnergy; TH2D* dHist_BCALShowerEnergyVsTime; TH1D* dHist_BCALShowerPhi; TH1D* dHist_TOFPointTime; TH1D* dHist_SCHitTime; TH1D* dHist_NeutralShowerPhi; TH1D* dHist_NeutralParticlePhi; }; #endif // _DCustomAction_DetectorStudies_