// $Id$ // // File: JEventProcessor_bcal_single_photon.h // Created: Fri Jul 13 15:47:34 EDT 2012 // Creator: davidl (on Linux ifarm1102 2.6.18-274.3.1.el5 x86_64) // #ifndef _JEventProcessor_bcal_single_photon_ #define _JEventProcessor_bcal_single_photon_ #include #include #include class JEventProcessor_bcal_single_photon:public jana::JEventProcessor{ public: JEventProcessor_bcal_single_photon(); ~JEventProcessor_bcal_single_photon(); const char* className(void){return "JEventProcessor_bcal_single_photon";} typedef struct{ Int_t module; Int_t layer; Int_t sector; Int_t end; Float_t E; Float_t t_adc; Float_t t_tdc; Float_t t_mean_adc; }tdc_match_t; tdc_match_t match; private: jerror_t init(void); ///< Called once at program start. jerror_t brun(jana::JEventLoop *eventLoop, int runnumber); ///< Called everytime a new run number is detected. jerror_t evnt(jana::JEventLoop *eventLoop, int 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. TH1D *ratio_Erecon_Ethrown; TH2D *Ethrown_vs_Erecon; TTree *tdc_match; }; #endif // _JEventProcessor_bcal_single_photon_