]> git.uio.no Git - u/mrichter/AliRoot.git/blob - AliEvent.h
2bc9905856d59c8df80542f40800ced426a0d09b
[u/mrichter/AliRoot.git] / AliEvent.h
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
6 // $Id: AliEvent.h,v 1.2 2001/07/04 15:59:20 nick Exp $
7
8 #include <iomanip.h>
9 #include <math.h>
10  
11 #include "TObject.h"
12 #include "TObjArray.h"
13 #include "TDatime.h"
14  
15 #include "AliVertex.h"
16 #include "AliCalorimeter.h"
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
24   void SetDayTime(TDatime& stamp);        // Set the date and time stamp
25   void SetRunNumber(Int_t run);           // Set the run number
26   void SetEventNumber(Int_t evt);         // Set the event number
27   void SetProjectile(Int_t a,Int_t z,Double_t pnuc); // Set projectile A, Z and momentum value per nucleon
28   Int_t GetProjectileA();                 // Provide A value of the projectile
29   Int_t GetProjectileZ();                 // Provide Z value of the projectile
30   Double_t GetProjectilePnuc();           // Provide the projectile momentum value per nucleon
31   void SetTarget(Int_t a,Int_t z,Double_t pnuc); // Set target A, Z and momentum value per nucleon
32   Int_t GetTargetA();                     // Provide A value of the target
33   Int_t GetTargetZ();                     // Provide Z value of the target
34   Double_t GetTargetPnuc();               // Provide the target momentum value per nucleon
35   void Reset();                           // Reset all values
36   TDatime GetDayTime();                   // Provide the date and time stamp
37   Int_t GetRunNumber();                   // Provide the run number
38   Int_t GetEventNumber();                 // Provide the event number
39   void HeaderInfo();                      // Print the event header information
40   void Info(TString f="car");             // Print the event info within coordinate frame f
41   void SetCalCopy(Int_t j);               // (De)activate creation of private copies in fCalorimeters
42   Int_t GetCalCopy();                     // Provide CalCopy flag value      
43   void AddCalorimeter(AliCalorimeter& c); // Add a calorimeter system to the event
44   void AddCalorimeter(AliCalorimeter* c) { AddCalorimeter(*c); }
45   Int_t GetNcalorimeters();               // Provide the number of calorimeter systems
46   AliCalorimeter* GetCalorimeter(Int_t i);// Provide i-th calorimeter system of the event
47   AliCalorimeter* GetCalorimeter(TString name); // Provide calorimeter with name "name"
48
49  protected:
50   TDatime fDaytime;         // The date and time stamp
51   Int_t fRun;               // The run number
52   Int_t fEvent;             // The event number
53   Int_t fAproj;             // The projectile A value
54   Int_t fZproj;             // The projectile Z value
55   Double_t fPnucProj;       // The projectile momentum per nucleon
56   Int_t fAtarg;             // The target A value
57   Int_t fZtarg;             // The target Z value
58   Double_t fPnucTarg;       // The target momentum per nucleon
59   Int_t fNcals;             // The number of calorimeter systems 
60   TObjArray* fCalorimeters; // Array to hold the pointers to the calorimeter systems
61   Int_t fCalCopy;           // Flag to denote creation of private copies in fCalorimeters
62
63  ClassDef(AliEvent,2) // Creation and investigation of an Alice physics event.
64 };
65 #endif