#ifndef Event_H #define Event_H #include "TObject.h" #include "TClonesArray.h" #include "Track.h" class Event : public TObject { private: char fType[20]; //event type Int_t fEventNum; //the event number Int_t fRun; //the run number Int_t fDate; //the date of the run Int_t fNtrack; //Number of Primary Particles Float_t fb; //Impact Parameter in fm UInt_t fFlag; //accepted event = 1 , rejected = 0 TClonesArray *fTracks; //->array with all tracks public: Event(); virtual ~Event(); void Clear(Option_t *option =""); void SetType(char *type) {strcpy(fType,type);} void SetEventNum(Int_t n) { fEventNum = n; } void Setb(Float_t x) { fb = x; } void SetRun(Int_t n) { fRun = n; } void SetDate(Int_t n) { fDate = n; } void SetNtrack(Int_t n) { fNtrack = n; } void SetFlag(UInt_t f) { fFlag = f; } Track *AddTrack(Track *t); char *GetType() { return fType; } Int_t GetEventNum() { return fEventNum;} Float_t Getb() { return fb; } Int_t GetRun() { return fRun; } Int_t GetDate() { return fDate; } Int_t GetNtrack() const { return fNtrack; } UInt_t GetFlag() const { return fFlag; } TClonesArray *GetTracks() const { return fTracks; } ClassDef(Event,1) }; #endif