// DEventSourceROOT // #ifndef _JEVENT_SOURCEHDDM_H_ #define _JEVENT_SOURCEHDDM_H_ #include #include using namespace std; #include #include #include #include #include #include #include #include "FCAL/DFCALHit.h" class DEventSourceROOT:public JEventSource { public: DEventSourceROOT(const char* source_name); virtual ~DEventSourceROOT(); virtual const char* className(void){return static_className();} static const char* static_className(void){return "DEventSourceROOT";} jerror_t GetEvent(JEvent &event); void FreeEvent(JEvent &event); jerror_t GetObjects(JEvent &event, JFactory_base *factory); private: TFile *file; TTree *tree; enum { kMaxHits = 400 }; int n_ExCells; int row[kMaxHits]; int column[kMaxHits]; int n_Photons[kMaxHits]; float dep_Energy[kMaxHits]; jerror_t Extract_DFCALHit(int eventNo, JFactory *fac); }; #endif //_JEVENT_SOURCEHDDM_H_