// $Id$ // // File: DCustomAction_p2pi_unusedHists.h // Created: Thu Jan 22 08:06:18 EST 2015 // Creator: jrsteven (on Linux ifarm1401 2.6.32-431.el6.x86_64 x86_64) // #ifndef _DCustomAction_p2pi_unusedHists_ #define _DCustomAction_p2pi_unusedHists_ #include #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 #include #include #include using namespace std; using namespace jana; class DCustomAction_p2pi_unusedHists : public DAnalysisAction { public: DCustomAction_p2pi_unusedHists(const DReaction* locReaction, bool locUseKinFitResultsFlag, string locActionUniqueString = "") : DAnalysisAction(locReaction, "Custom_p2pi_unusedHists", locUseKinFitResultsFlag, locActionUniqueString){} void Initialize(JEventLoop* locEventLoop); private: bool Perform_Action(JEventLoop* locEventLoop, const DParticleCombo* locParticleCombo); void FillTrack(const DChargedTrack* locChargedTrack, bool locMatch); void FillShower(const DNeutralShower* locNeutralShower, bool locMatch, double locBeamPhotonTime, double locFlightTime); // Optional: Useful utility functions. // const DAnalysisUtilities* dAnalysisUtilities; // need PID algos for SC matching const DParticleID* dParticleID; //Store any histograms as member variables here // TH2I *dMatch_E_DeltaT_All; // maps of histograms by track charge and match flag map > dHistMap_TrackNhits_Theta; map > dHistMap_TrackChiSq_Theta; map > dHistMap_TrackFOM_Theta; map > dHistMap_TrackP_Theta; map > dHistMap_TrackPOCAXY; map > dHistMap_TrackPOCAZ; map > dHistMap_TrackCDCHitRadius_Nhits; map > dHistMap_LowNDFTrackCDCHitRadius_PT; map > dHistMap_HighNDFTrackCDCHitRadius_PT; map > dHistMap_LowNDFTrackP_VertZ; map > dHistMap_LowNDFTrackPT_Phi; //map > dHistMap_TrackNposs_Theta; //map > dHistMap_TrackHitFrac_Theta; // maps of histograms by detector system and match flag TH2I *dNShowerBCAL_FCAL; TH2I *dHistMap_FCALShowerDeltaR_P, *dHistMap_FCALShowerDeltaR_Theta, *dHistMap_FCALShowerDeltaD_P, *dHistMap_FCALShowerDeltaD_Theta; TH2I *dHistMap_FCALShowerDeltaD_DeltaT; TH2I *dHistMap_BCALShowerDeltaPhi_DeltaZ, *dHistMap_BCALShowerDeltaPhi_P, *dHistMap_BCALShowerDeltaPhi_Theta; TH2I *dHistMap_BCALShowerDeltaPhi_DeltaT, *dHistMap_BCALShowerDeltaZ_DeltaT; map > dHistMap_ShowerEnergy_Theta; map > dHistMap_ShowerPhi_Theta; map > dHistMap_ShowerNclusters; map > dHistMap_ShowerNhits; map > dHistMap_ShowerMaxEnergy_Nhits; map > dHistMap_ShowerDeltaT_Nhits; map > dHistMap_ShowerDeltaT_E; map > dHistMap_ShowerE_Theta; map dHistMap_Layer1Energy_Theta; map dHistMap_Layer2Energy_Theta; map dHistMap_Layer3Energy_Theta; map dHistMap_Layer4Energy_Theta; map dHistMap_BCALShowerNcell; }; #endif // _DCustomAction_p2pi_unusedHists_