// -*- mode: c++ -*- // // $Id: BrEventList.h,v 1.2 2001/08/17 16:27:43 jens Exp $ // $Author: jens $ // $Date: 2001/08/17 16:27:43 $ // $Copyright: (C) 2001 BRAHMS Collaboration // #ifndef BRAT_BrEventList #define BRAT_BrEventList #ifndef ROOT_TObject #include "TObject.h" #endif #ifndef ROOT_TList #include "TList.h" #endif #ifndef BRAT_BrEvent #include "BrEvent.h" #endif #ifndef BRAT_BrDetectorList #include "BrDetectorList.h" #endif class BrEventList : public TList { private: Int_t fMax; // Max number of events Int_t fIndex; // Current index public: BrEventList(); BrEventList( Int_t max ); virtual ~BrEventList() {} virtual void Add( TObject* obj ); virtual Int_t GetIndex() { return fIndex; } virtual BrEvent *GetNextEvent(); virtual BrEvent *GetPreviousEvent(); virtual Bool_t IsAtFirst() const { return !fIndex; } virtual Bool_t IsAtLast() const { return ( fIndex == fMax - 1 ); } ClassDef(BrEventList,0) // BRAHMS Event List }; #endif //____________________________________________________________________ // // $Log: BrEventList.h,v $ // Revision 1.2 2001/08/17 16:27:43 jens // Removed all interface to BrTriggerManager // // Revision 1.1 2001/08/16 15:37:17 jens // // New class BrEventList // // //