#ifndef _CPPHDDMOUT_ #define _CPPHDDMOUT_ #include #include #include using namespace std; #include #include "G4UserEventAction.hh" #include "CPPHitFCAL.hh" #include "CPPHitTOF.hh" #include "CPPHitTOFTruthPoint.hh" #include "CPPHitFDCTruthPoint.hh" #include "CPPHitFDCAnode.hh" #include "CPPHitFDCCathode.hh" #include "CPPHitFMWPC.hh" class CPPHDDMout: public G4UserEventAction { public: CPPHDDMout(void); virtual ~CPPHDDMout(); void BeginOfEventAction(const G4Event *anEvent); void EndOfEventAction(const G4Event *anEvent); protected: void WriteFCAL(CPPHitFCALCollection *aHC, hddm_s::HDDM *hddmevent); void WriteTOFTruthPoints(CPPHitTOFTruthPointCollection *aHC, hddm_s::HDDM *hddmevent, int Nprimaries); void WriteTOF(CPPHitTOFCollection *aHC, hddm_s::HDDM *hddmevent); void WriteFDCTruthPoints(CPPHitFDCTruthPointCollection *aHC, hddm_s::HDDM *hddmevent, int Nprimaries); void WriteFDCAnode(CPPHitFDCAnodeCollection *aHC, hddm_s::HDDM *hddmevent); void WriteFDCCathode(CPPHitFDCCathodeCollection *aHC, hddm_s::HDDM *hddmevent); void WriteFMWPC(CPPHitFMWPCCollection *aHC, hddm_s::HDDM *hddmevent); }; #endif // _CPPHDDMOUT_