// $Id$ // // File: DCustomAction_HistMass_b1_1235.h // Created: Mon Dec 2 12:18:47 EST 2013 // Creator: pmatt (on Darwin pmattLaptop 10.8.0 i386) // #ifndef _DCustomAction_HistMass_b1_1235_ #define _DCustomAction_HistMass_b1_1235_ #include #include #include "TH1I.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_HistMass_b1_1235 : public DAnalysisAction { public: DCustomAction_HistMass_b1_1235(const DReaction* locReaction, bool locUseKinFitResultsFlag, string locActionUniqueString = "") : DAnalysisAction(locReaction, "Custom_HistMass_b1_1235", locUseKinFitResultsFlag, 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 TH1I* dMassHist; //Used for determining when the group of particles used for the invariant mass is identical to a previous combo (to prevent double counting) deque > dPastParticles; }; #endif // _DCustomAction_HistMass_b1_1235_