#ifndef ALIHLTMUONEVENT_H #define ALIHLTMUONEVENT_H /* This file is property of and copyright by the ALICE HLT Project * * ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ /* $Id: $ */ /// /// @file AliHLTMUONRootifierComponent.h /// @author Artur Szostak /// @date 9 May 2008 /// @brief Declaration of class for storing ROOTified data objects for one event. /// #include "TObjArray.h" #include "AliHLTMUONDataTypes.h" class AliHLTMUONDecision; class AliHLTMUONEvent : public TObject { public: /// AliHLTMUONEvent class contructor. /// \param eventId The event identifier number for this event. Set to -1 by default. AliHLTMUONEvent(AliHLTEventID_t eventId = AliHLTEventID_t(-1)) : fEventId(eventId), fArray() { fArray.SetOwner(kTRUE); } /// Default destructor. virtual ~AliHLTMUONEvent() {} /// Returns the corresponding event ID for the data objects. AliHLTEventID_t EventID() const { return fEventId; } /// Returns the array of data objects for this event. const TObjArray& Array() const { return fArray; } /// Returns the array of data objects for this event. const TObjArray& DataObjects() const { return fArray; } /// Finds the decision object in the array of dHLT objects. const AliHLTMUONDecision* FindDecision() const; /// Adds an object to the event. /// \note This method takes ownership of the object. void Add(TObject* obj) { fArray.Add(obj); } /// Inherited method for printing information about all objects in the event. virtual void Print(Option_t* option = NULL) const; private: AliHLTEventID_t fEventId; ///< The event ID. TObjArray fArray; ///< Array of event objects. ClassDef(AliHLTMUONEvent, 2); // Container class for dHLT event results. }; #endif // ALIHLTMUONEVENT_H