// $Id$ // // File: DEventProcessor_bcal_hists.h // Created: Mon Apr 3 11:38:03 EDT 2006 // Creator: davidl (on Darwin swire-b241.jlab.org 8.4.0 powerpc) // #ifndef _DEventProcessor_fcal_hists_ #define _DEventProcessor_fcal_hists_ #include using namespace jana; #include "TApplication.h" #include "TCanvas.h" #include #include #include #include #include "TProfile.h" #include #include class DEventProcessor_fcal_hists:public JEventProcessor{ public: DEventProcessor_fcal_hists(){}; ~DEventProcessor_fcal_hists(){}; const char* className(void){return "DEventProcessor_fcal_hists";} private: jerror_t init(void); ///< Called once at program start. jerror_t brun(JEventLoop *eventLoop, int32_t runnumber); ///< Called everytime a new run number is detected. jerror_t evnt(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. static const Int_t max_ntr = 20; Int_t ntr; Float_t x_tr[max_ntr]; Float_t y_tr[max_ntr]; Float_t z_tr[max_ntr]; Float_t r_tr[max_ntr]; Float_t mom_tr[max_ntr]; Float_t prob_tr[max_ntr]; Int_t ndf_tr[max_ntr]; Float_t x_cl[max_ntr]; Float_t y_cl[max_ntr]; Float_t z_cl[max_ntr]; Float_t en_cl[max_ntr]; Int_t nhit[max_ntr]; Float_t en[max_ntr]; Float_t en_min[max_ntr]; Float_t en_max[max_ntr]; Float_t hit_x[max_ntr]; Float_t hit_y[max_ntr]; Int_t nhit1[max_ntr]; Float_t en1[max_ntr]; Float_t en_min1[max_ntr]; Float_t en_max1[max_ntr]; Float_t hit_x1[max_ntr]; Float_t hit_y1[max_ntr]; Int_t nhit2[max_ntr]; Float_t en2[max_ntr]; Float_t en_min2[max_ntr]; Float_t en_max2[max_ntr]; Float_t hit_x2[max_ntr]; Float_t hit_y2[max_ntr]; TH2D *dE_over_E_vs_E; TH2D *e_over_pp, *e_over_pp1; TH2D *hfcal; TH1F *hdiff; TH1F *htrig_bit, *htrig_bit_fp; TH1F *tagh_occup, *tagm_occup, *tagh_occup1; TH1F *tagh_tdc_occup; TH2D *hfcal_bcal, *hfcal_xy; TH1F *hmax_amp, *hfcal_sum, *hfcal_sum_hit, *hfcal_sum1; TH1F *tagm_pulse_time, *psc_pulse_time, *ps_pulse_time, *st_pulse_time; TH1F *tagh_pulse_time1, *tagh_pulse_time3, *tagh_pulse_time4, *tagh_pulse_time6, *tagh_pulse_time7; TH1F *tagm_pulse_time1, *tagm_pulse_time3, *tagm_pulse_time4, *tagm_pulse_time6, *tagm_pulse_time7; TH1F *ps_pulse_time1, *ps_pulse_time3, *ps_pulse_time4, *ps_pulse_time6, *ps_pulse_time7; TH1F *psc_pulse_time1, *psc_pulse_time3, *psc_pulse_time4, *psc_pulse_time6, *psc_pulse_time7; TH1F *st_pulse_time1, *st_pulse_time3, *st_pulse_time4, *st_pulse_time6, *st_pulse_time7; TH1F *tof_pulse_time1, *tof_pulse_time3, *tof_pulse_time4, *tof_pulse_time6, *tof_pulse_time7; TH1F *bcal_pulse_time1, *bcal_pulse_time3, *bcal_pulse_time4, *bcal_pulse_time6, *bcal_pulse_time7; TH1F *fcal_pulse_time1, *fcal_pulse_time3, *fcal_pulse_time4, *fcal_pulse_time6, *fcal_pulse_time7; TH1F *st_double; TH1F *st_double_sec; TH1F *tagh_tdc_time1, *tagh_tdc_time3, *tagh_tdc_time4, *tagh_tdc_time6, *tagh_tdc_time7; TProfile *fadc_raw[50], *fadc_plot[40]; TApplication *app1; TCanvas *my_canvas; TCanvas *my_canvas_clust; TCanvas *my_canvas_track; TH1F *trig_time; TH1F *st_pulse_peak; TTree *tree1; TH2D *psc_cnt_time; TH2D *hadc_tdc; TH1F *dt_ps_tagh4, *dt_ps_tagh7; TH1F *st_check, *st_check1, *st_check2, *st_check10; TH1F *bcal_check, *bcal_check1, *bcal_check2; unsigned int trig_bit[33], trig_bit_fp[33]; TH1F *cdc_hits, *cdc_hits_ps; TH1F *fdc_wire_hits, *fdc_wire_hits_ps; TH1F *fdc_cath_hits, *fdc_cath_hits_ps; TH1F *fcal_hits, *fcal_hits_ps; TH1F *bcal_hits, *bcal_hits_ps; TH1F *bcal_f1_hits, *bcal_f1_hits_ps; TH1F *tagh_hits, *tagh_hits_ps; TH1F *tagh_f1_hits, *tagh_f1_hits_ps; TH1F *tagm_hits, *tagm_hits_ps; TH1F *tagm_f1_hits, *tagm_f1_hits_ps; TH1F *st_hits, *st_hits_ps; TH1F *st_f1_hits, *st_f1_hits_ps; TH1F *ps_hits, *ps_hits_ps; TH1F *psc_hits, *psc_hits_ps; TH1F *psc_f1_hits, *psc_f1_hits_ps; TH1F *tof_hits, *tof_hits_ps; TH1F *tof_tdc_hits, *tof_tdc_hits_ps; TProfile *fadc125_occup, *fadc250_occup; TProfile *f1_occup; TEllipse *el1[10]; }; #endif // _DEventProcessor_fcal_hists_