// $Id$ // // File: JEventProcessor_fmwpcana.h // Created: Thu Jan 18 15:25:47 EST 2018 // Creator: hdmuonops (on Linux gluon118.jlab.org 2.6.32-642.3.1.el6.x86_64 x86_64) // #ifndef _JEventProcessor_fmwpcana_ #define _JEventProcessor_fmwpcana_ #include #include #include #include class JEventProcessor_fmwpcana:public jana::JEventProcessor{ public: JEventProcessor_fmwpcana(); ~JEventProcessor_fmwpcana(); const char* className(void){return "JEventProcessor_fmwpcana";} vector hfmwpc; vector hpaddles; vector fpaddles; TF1 *fthresh; vector htpaddles; TH1D *tdiff_upstream; TH1D *tdiff_downstream; TH2D *tdiff_up_vs_down; TH1D *tup_minus_tdown; TH1D *tdiff_means; TH1D *tmean_diffs; TH2D *amp_vs_wire; TH2D *paddletime_vs_wire; TH2D *dft_by_wire; void Make125Histos(int Nbins); void Make250Histos(int Nbins); private: jerror_t init(void); ///< Called once at program start. jerror_t brun(jana::JEventLoop *eventLoop, int32_t runnumber); ///< Called everytime a new run number is detected. jerror_t evnt(jana::JEventLoop *eventLoop, uint64_t eventnumber); ///< Called every event. jerror_t erun(void); ///< Called everytime run number changes, provided brun has been called. jerror_t fini(void); ///< Called after last event of last event source has been processed. }; #endif // _JEventProcessor_fmwpcana_