// Author: David Lawrence June 25, 2004 // // // FRCTProcessor.h // /// Example program for a Hall-D analyzer which uses DANA /// #ifndef _MYPROCESSOR_H_ #define _MYPROCESSOR_H_ #include #include #include #include #include "DVector3.h" #include "FDC/DFDCPseudo.h" #include "TRACKING/DMCThrown.h" #include "MyTrajectory.h" #define MAXRESIDS 1024 struct eventInfo { Int_t run; Int_t event; Double_t vertex[3]; }; class FRCTProcessor:public JEventProcessor { public: FRCTProcessor(); ~FRCTProcessor(); jerror_t init(void); ///< Called once at program start. jerror_t brun(JEventLoop *eventLoop, int runnumber); ///< Called everytime a new run number is detected. jerror_t evnt(JEventLoop *eventLoop, int eventnumber); ///< Called every event. int eventNo; jerror_t erun(void); jerror_t fini(void); private: TFile *rootfile; TNtuple *nTest; TTree *tTest; eventInfo ei; int nResids; int wire[MAXRESIDS]; int layer[MAXRESIDS]; double resids[MAXRESIDS]; }; #endif // _MYPROCESSOR_H_