// ==================================================================== // EvtCollection.Write.h // -------------------------------------------------------------------- // // Package : GaudiExamples/EvtCollection // // Author : Markus Frank // // ==================================================================== #ifndef EVTCOLLECTION_WRITE_H #define EVTCOLLECTION_WRITE_H // Framework include files #include "GaudiKernel/NTuple.h" #include "GaudiKernel/Algorithm.h" // Required for inheritance // Forward declarations class INtupleSvc; /** User example objects: EvtCollectionWrite Description: A small class creating an event collection. Author: M.Frank Version: 1.0 */ class EvtCollectionWrite : public Algorithm { NTuple::Item m_ntrkColl; NTuple::Item m_eneColl; NTuple::Array m_trkMom; NTuple::Item m_evtAddrColl; int m_nMCcut; INTupleSvc* m_evtTupleSvc; public: /// Constructor: A constructor of this form must be provided. EvtCollectionWrite(const std::string& name, ISvcLocator* pSvcLocator); /// Standard Destructor virtual ~EvtCollectionWrite(); /// Initialize virtual StatusCode initialize(); /// Finalize virtual StatusCode finalize() { return StatusCode::SUCCESS; } /// Event callback virtual StatusCode execute(); }; #endif // EVTCOLLECTION_WRITE_H