// ==================================================================== // 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; namespace Gaudi { namespace Examples { class MyTrack; } } /** 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::Item m_trackItem; NTuple::Array m_trkMom; NTuple::Array m_trkMomFixed; NTuple::Item m_evtAddrColl; NTuple::Item m_evtAddrCollEx; 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