// $Id$ // // File: JEventProcessor_DAQTreeFCAL.h // Created: Mon Dec 8 11:12:16 EST 2014 // Creator: manlara (on Linux gluon03.jlab.org 2.6.32-358.18.1.el6.x86_64 x86_64) // #include #ifndef _JEventProcessor_DAQTreeFCAL_ #define _JEventProcessor_DAQTreeFCAL_ #include #include #include class JEventProcessor_DAQTreeFCAL:public jana::JEventProcessor{ public: JEventProcessor_DAQTreeFCAL(); ~JEventProcessor_DAQTreeFCAL(); const char* className(void){return "JEventProcessor_DAQTreeFCAL";} //int nBases = 4000; //TGraph* ped_vs_event_array[nBases]; //map index; TTree* FCAL_Df250PulseIntegral; TTree* FCAL_Df250WindowRawData; TTree* FCAL_SpecialWaveforms; uint32_t rocid; uint32_t slot; uint32_t channel; uint32_t eventnum; uint32_t pedestal; uint32_t nsamples; float w_ped; vector waveform; 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. }; #endif // _JEventProcessor_DAQTreeFCAL_