04-jul-2001 NvE Storage of calorimeters introduced in AliEvent and ResetVertices()
[u/mrichter/AliRoot.git] / RALICE / AliEvent.h
CommitLineData
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
7849a8ab 6// $Id: AliEvent.h,v 1.1 2001/06/06 13:22:48 nick Exp $
d16062ac 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"
7849a8ab 16#include "AliCalorimeter.h"
d16062ac 17
18class 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 Reset(); // Reset all values
28 TDatime GetDayTime(); // Provide the date and time stamp
29 Int_t GetRunNumber(); // Provide the run number
30 Int_t GetEventNumber(); // Provide the event number
31 void HeaderInfo(); // Print the event header information
32 void Info(TString f="car"); // Print the event info within coordinate frame f
7849a8ab 33 void SetCalCopy(Int_t j); // (De)activate creation of private copies in fCalorimeters
34 Int_t GetCalCopy(); // Provide CalCopy flag value
35 void AddCalorimeter(AliCalorimeter& c); // Add a calorimeter system to the event
36 void AddCalorimeter(AliCalorimeter* c) { AddCalorimeter(*c); }
37 Int_t GetNcalorimeters(); // Provide the number of calorimeter systems
38 AliCalorimeter* GetCalorimeter(Int_t i);// Provide i-th calorimeter system of the event
39 AliCalorimeter* GetCalorimeter(TString name); // Provide calorimeter with name "name"
d16062ac 40
41 protected:
7849a8ab 42 TDatime fDaytime; // The date and time stamp
43 Int_t fRun; // The run number
44 Int_t fEvent; // The event number
45 Int_t fNcals; // The number of calorimeter systems
46 TObjArray* fCalorimeters; // Array to hold the pointers to the calorimeter systems
47 Int_t fCalCopy; // Flag to denote creation of private copies in fCalorimeters
d16062ac 48
49 ClassDef(AliEvent,1) // Creation and investigation of an Alice physics event.
50};
51#endif