// $Id$ // // File: JEventProcessor_pidmon.h // Created: Thu Oct 15 04:41:09 PM EDT 2026 // Creator: staylor (on Linux ifarm2401.jlab.org 5.14.0-611.55.1.el9_7.x86_64 x86_64) // /// For more information on the syntax changes between JANA1 and JANA2, visit: https://jeffersonlab.github.io/JANA2/#/jana1to2/jana1-to-jana2 #ifndef _JEventProcessor_pidmon_ #define _JEventProcessor_pidmon_ #include #include // Required for accessing services #include #include #include #include #include #include #include using namespace std; class JEventProcessor_pidmon:public JEventProcessor{ public: JEventProcessor_pidmon(); ~JEventProcessor_pidmon(); const char* className(void){return "JEventProcessor_pidmon";} private: void Init() override; ///< Called once at program start. void BeginRun(const std::shared_ptr& event) override; ///< Called everytime a new run number is detected. void Process(const std::shared_ptr& event) override; ///< Called every event. void EndRun() override; ///< Called everytime run number changes, provided BeginRun has been called. void Finish() override; ///< Called after last event of last event source has been processed. bool DoKinematicFit(double t0_rf,const DVector3 &vertex, const DBeamPhoton *beamphoton, map >&chargedParticles, vector&gammaParticles, DKinFitUtils_GlueX *dKinFitUtils, DKinFitter *dKinFitter ) const; void GetKF4vectors(DKinFitter *dKinFitter, DLorentzVector &beam_kf, map>&final_kf) const; std::shared_ptr lockService; //Used to access all the services, its value should be set inside Init() TH1F *Hepemg,*HepemgKF; TH1F *HKpKm,*HKpKmKF,*HpKm,*HpKmKF; vectorparticles={Electron,Positron,PiMinus,PiPlus,KMinus,KPlus, AntiProton,Proton}; mapHTofDt,HEcalDt,HFcalDt,HBcalDt; mapHTofDtPull,HEcalDtPull,HFcalDtPull,HBcalDtPull; mapHEcalEoverP,HFcalEoverP,HBcalEoverP; mapHEcalEoverPDiff,HFcalEoverPDiff,HBcalEoverPDiff; mapHEcalEoverPPull,HFcalEoverPPull,HBcalEoverPPull; mapHCDCdEdx,HFDCdEdx,HCDCdEdxDiff,HFDCdEdxDiff; mapHCDCdEdxPull,HFDCdEdxPull; TH2F *HScdEdx,*HTofdEdx1,*HTofdEdx2,*HScdEdx_BCALcut; TH2F *HScdEdxDiff_BCALcut,*HScdEdxPull_BCALcut; TH2F *HCDCdEdxDiff_BCALcut,*HCDCdEdxPull_BCALcut; TH2F *HFDCdEdxDiff_TOFcut,*HFDCdEdxPull_TOFcut; TH2F *HScdEdxDiff,*HTofdEdx1Diff,*HTofdEdx2Diff; TH2F *HScdEdxPull,*HTofdEdx1Pull,*HTofdEdx2Pull; TH2F *HBcalDt_dEdx_cut,*HCDCdEdx_BCALcut,*HFDCdEdx_TOFcut; TH2F *HBcalDtPull_dEdx_cut,*HBcalDt_Phi_cut,*HCDCdEdx_Phi_cut; TH2F *HTofDtPull_dEdx_cut,*HFcalDt_Phi_cut,*HFDCdEdx_Phi_cut; TH2F *HTofDt_Phi_cut,*HCDCdEdx_pi0_cut,*HFDCdEdx_pi0_cut; TH2F *HBcalEOverP_pi0_cut,*HFcalEOverP_pi0_cut; TH2F *HEpred_vs_Ecluster_ECAL,*HBcalDt_Lambda_cut,*HCDCdEdx_Lambda_cut; }; #endif // _JEventProcessor_pidmon_