// $Id$ // // File: DEventProcessor_photons.h // Created: Tue May 24 10:30:32 EDT 2011 // Creator: zihlmann (on Linux chaos 2.6.35-28-generic unknown) // #ifndef _DEventProcessor_photons_ #define _DEventProcessor_photons_ #include using namespace std; #include #include #include #include #include class DEventProcessor_photons:public jana::JEventProcessor{ public: DEventProcessor_photons(); ~DEventProcessor_photons(); const char* className(void){return "DEventProcessor_photons";} TTree *EventTree; TFile *ROOTFile; Int_t EventNum; Int_t NGen; // number generated photons Int_t NRecB; // number of reconstructed photons in BCAL Int_t NRecF; // number of reconstructed photons in FCAL Float_t GenE[20]; // energated energy Float_t GenA[20]; // generatged polar angle Float_t BcalE[20]; // reconstucted energy in BCAL Float_t BcalA[20]; // reconstruced polar angle in BCAL Float_t FcalE[20]; // reconstruced energy in FCAL Float_t FcalA[20]; // reconstruced polar angle in FCAL TH2F *hist2d[10]; 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. pthread_mutex_t mutex; /// mutex }; #endif // _DEventProcessor_photons_