#ifndef __Event__ #define __Event__ #include "TObject.h" class TCollection; class Track; class Event : public TObject { private: Int_t fId; //event sequential id Float_t fTotalMom; //total momentum TCollection *fTracks; //collection of tracks public: Event() { fId = 0; fTracks = 0; } Event(Int_t id); ~Event(); void AddTrack(Track *t); Int_t GetId() const { return fId; } Int_t GetNoTracks() const; void Print(Option_t *opt=""); Float_t TotalMomentum(); ClassDef(Event,1) //Simple event class }; #endif