]>
Commit | Line | Data |
---|---|---|
d16062ac | 1 | #ifndef ALIEVENT_H |
2 | #define ALIEVENT_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
1ce8a857 | 6 | // $Id: AliEvent.h,v 1.7 2003/02/03 13:19:44 nick Exp $ |
d16062ac | 7 | |
9f8f3e10 | 8 | #include "Riostream.h" |
d16062ac | 9 | #include <math.h> |
10 | ||
11 | #include "TObject.h" | |
12 | #include "TObjArray.h" | |
13 | #include "TDatime.h" | |
14 | ||
15 | #include "AliVertex.h" | |
7849a8ab | 16 | #include "AliCalorimeter.h" |
d16062ac | 17 | |
18 | class AliEvent : public AliVertex | |
19 | { | |
20 | public: | |
21 | AliEvent(); // Default constructor | |
22 | AliEvent(Int_t n); // Create an event to hold initially n tracks | |
23 | ~AliEvent(); // Default destructor | |
8e8e6c7f | 24 | virtual void SetOwner(Bool_t own=kTRUE);// Set ownership of all added objects |
d16062ac | 25 | void SetDayTime(TDatime& stamp); // Set the date and time stamp |
26 | void SetRunNumber(Int_t run); // Set the run number | |
27 | void SetEventNumber(Int_t evt); // Set the event number | |
da17f667 | 28 | void SetProjectile(Int_t a,Int_t z,Double_t pnuc,Int_t id=0); // Set projectile A, Z, p per nucleon and id |
4575fcea | 29 | Int_t GetProjectileA(); // Provide A value of the projectile |
30 | Int_t GetProjectileZ(); // Provide Z value of the projectile | |
31 | Double_t GetProjectilePnuc(); // Provide the projectile momentum value per nucleon | |
da17f667 | 32 | Int_t GetProjectileId(); // Provide the user defined particle ID of the projectile |
33 | void SetTarget(Int_t a,Int_t z,Double_t pnuc,Int_t id=0); // Set target A, Z, p per nucleon and id | |
4575fcea | 34 | Int_t GetTargetA(); // Provide A value of the target |
35 | Int_t GetTargetZ(); // Provide Z value of the target | |
36 | Double_t GetTargetPnuc(); // Provide the target momentum value per nucleon | |
da17f667 | 37 | Int_t GetTargetId(); // Provide the user defined particle ID of the target |
d16062ac | 38 | void Reset(); // Reset all values |
39 | TDatime GetDayTime(); // Provide the date and time stamp | |
40 | Int_t GetRunNumber(); // Provide the run number | |
41 | Int_t GetEventNumber(); // Provide the event number | |
84bb7c66 | 42 | void HeaderData(); // Print the event header information |
43 | void Data(TString f="car"); // Print the event info within coordinate frame f | |
7849a8ab | 44 | void SetCalCopy(Int_t j); // (De)activate creation of private copies in fCalorimeters |
45 | Int_t GetCalCopy(); // Provide CalCopy flag value | |
46 | void AddCalorimeter(AliCalorimeter& c); // Add a calorimeter system to the event | |
47 | void AddCalorimeter(AliCalorimeter* c) { AddCalorimeter(*c); } | |
48 | Int_t GetNcalorimeters(); // Provide the number of calorimeter systems | |
1ce8a857 | 49 | void ShowCalorimeters(); // Provide on overview of the available calorimeter systems |
7849a8ab | 50 | AliCalorimeter* GetCalorimeter(Int_t i);// Provide i-th calorimeter system of the event |
51 | AliCalorimeter* GetCalorimeter(TString name); // Provide calorimeter with name "name" | |
d16062ac | 52 | |
53 | protected: | |
7849a8ab | 54 | TDatime fDaytime; // The date and time stamp |
55 | Int_t fRun; // The run number | |
56 | Int_t fEvent; // The event number | |
4575fcea | 57 | Int_t fAproj; // The projectile A value |
58 | Int_t fZproj; // The projectile Z value | |
59 | Double_t fPnucProj; // The projectile momentum per nucleon | |
da17f667 | 60 | Int_t fIdProj; // User defined projectile particle ID |
4575fcea | 61 | Int_t fAtarg; // The target A value |
62 | Int_t fZtarg; // The target Z value | |
63 | Double_t fPnucTarg; // The target momentum per nucleon | |
da17f667 | 64 | Int_t fIdTarg; // User defined target particle ID |
7849a8ab | 65 | Int_t fNcals; // The number of calorimeter systems |
66 | TObjArray* fCalorimeters; // Array to hold the pointers to the calorimeter systems | |
67 | Int_t fCalCopy; // Flag to denote creation of private copies in fCalorimeters | |
d16062ac | 68 | |
1ce8a857 | 69 | ClassDef(AliEvent,6) // Creation and investigation of an Alice physics event. |
d16062ac | 70 | }; |
71 | #endif |