// $Id$ // // File: DCustomAction_NeutronCuts.h // Created: Wed Dec 21 13:24:54 EST 2016 // Creator: jrsteven (on Linux ifarm1402.jlab.org 3.10.0-327.el7.x86_64 x86_64) // #ifndef _DCustomAction_NeutronCuts_ #define _DCustomAction_NeutronCuts_ #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_NeutronCuts : public DAnalysisAction { public: DCustomAction_NeutronCuts(const DReaction* locReaction, bool locUseKinFitResultsFlag, double locDeltaPhiCut, string locActionUniqueString = "") : DAnalysisAction(locReaction, "Custom_NeutronCuts_npi", locUseKinFitResultsFlag, locActionUniqueString), dDeltaPhiCut(locDeltaPhiCut) {} void Initialize(JEventLoop* locEventLoop); void Reset_NewEvent(void){}; //RESET HISTOGRAM DUPLICATE-CHECK TRACKING HERE!! private: bool Perform_Action(JEventLoop* locEventLoop, const DParticleCombo* locParticleCombo); const DAnalysisUtilities* dAnalysisUtilities; //Store any histograms as member variables here TH1I *dHist_DeltaPhi; double dDeltaPhiCut; }; #endif // _DCustomAction_NeutronCuts_