/// /// For questions or suggestions about this module please contact the /// current responsible and CC in the oaAnalysis package manager. /// /// 28-Nov-2012: Current responsible for this module is, /// Callum Lister (c.lister [*a*t*] warwick.ac.uk) /// #ifndef TECALTestbeamModule_hxx_seen #define TECALTestbeamModule_hxx_seen #include #include #include #include //#include #include #include "TClonesArray.h" #include "IAnalysisReconModuleBase.hxx" namespace COMET { class IECALTestbeamModule; }; class COMET::IECALTestbeamModule : public IAnalysisReconModuleBase { public: IECALTestbeamModule(const char *name = "ECalTestbeam", const char *title = "ECal Testbeam Module"); virtual ~IECALTestbeamModule(); virtual Bool_t ProcessFirstEvent(COMET::ICOMETEvent& event); virtual Bool_t IsEnabledByDefault() const {return kFALSE;} protected: virtual void InitializeModule(); virtual void InitializeBranches(); virtual bool FillTree(COMET::ICOMETEvent&); public: int Cerenkov1Lo[23]; int Cerenkov2Lo[23]; int Cerenkov1Hi[23]; int Cerenkov2Hi[23]; int TOF[23]; /// Meanings of the trigger word: ///0x001 Beam spill 0x002 Pedestal/noise ///0x004 TPC laser 0x008 POD LED ///0x010 ECAL LED 0x020 FGD LED ///0x040 FEE calibration 0x080 TRIP-t cosmic ///0x100 Reserved 0x200 unused /// 0x100 is being used for test beam ToF triggers int TriggerWord; // 24/05/10 Leigh: Can also get hold of the PID result, // beam momentum and angle of the DsECal to the beam. int PIDResult; double Momentum; int Angle; private: ClassDef(IECALTestbeamModule,1); }; #endif