// $Id$ // // File: DCustomAction_CALCut.h // Created: Tue Jul 26 12:29:29 EDT 2016 // Creator: nsparks (on Linux cua2.jlab.org 3.10.0-327.22.2.el7.x86_64 x86_64) // #ifndef _DCustomAction_CALCut_ #define _DCustomAction_CALCut_ #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" using namespace std; using namespace jana; class DCustomAction_CALCut : public DAnalysisAction { public: DCustomAction_CALCut(const DReaction* locReaction, double locMinimumEnergy, string locActionUniqueString = "") : DAnalysisAction(locReaction, "Custom_CALCut", false, locActionUniqueString), dMinimumEnergy(locMinimumEnergy){} void Initialize(JEventLoop* locEventLoop); private: bool Perform_Action(JEventLoop* locEventLoop, const DParticleCombo* locParticleCombo); double dMinimumEnergy; //Store any histograms as member variables here }; #endif // _DCustomAction_CALCut_