// $Id$ // // File: JEventProcessor_trig_rate_thresh.h // Created: Sat Sep 10 11:32:36 EDT 2016 // Creator: davidl (on Linux gluon48.jlab.org 2.6.32-431.20.3.el6.x86_64 x86_64) // #ifndef _JEventProcessor_trig_rate_thresh_ #define _JEventProcessor_trig_rate_thresh_ #include #include #include #include #include //#include class JEventProcessor_trig_rate_thresh:public jana::JEventProcessor{ public: JEventProcessor_trig_rate_thresh(); ~JEventProcessor_trig_rate_thresh(); const char* className(void){return "JEventProcessor_trig_rate_thresh";} bool IsFCALinner2Rings(const DDAQAddress *a); TH1D *sum_pulse_int_fcal; TH1D *sum_pulse_int_bcal; TH2D *sum_pulse_int_bcal_vs_fcal; TH2D *sum_pulse_int_bcal_vs_fcal_nocut; TH2D *sum_pulse_int_bcal_vs_fcal_trig6; TH1D *Efcal_trig_nocut; TH1D *Ebcal_trig_nocut; TH1D *Efcal_trig; TH1D *Ebcal_trig; TH1D *daq_event_tdiff; TH1D *daq_event_tdiff_nocut; TH1D *daq_stats; TTree *tt1rate; Float_t t1time; Float_t t1rate; Int_t t1bit; // 1-32 TTree *ttdiff; Float_t time1; Float_t time2; #if 0 TTree *tevent; Event evt; typedef struct{ int event_type; uint64_t trigbits; // 0-31=gtp 32-63=fp uint32_t buff_len; uint64_t block; }tsinfo_t; map ts_history_nocut; map ts_history; #endif set ts_history_nocut; set ts_history; int TRIG_FCAL_SCALE; int TRIG_THRESH; uint64_t Ngoodtrigs; uint64_t Ntot; uint64_t timestamp_min; uint64_t timestamp_max; int fcal_cell_thr; int bcal_cell_thr; int fcal_row_mask_min, fcal_row_mask_max, fcal_col_mask_min, fcal_col_mask_max; 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_trig_rate_thresh_