Minor changes (R.Barbera)
[u/mrichter/AliRoot.git] / EVGEN / AliGenEventHeader.h
CommitLineData
56a10437 1#ifndef ALIGENEVENTHEADER_H
2#define ALIGENEVENTHEADER_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7/* $Id$ */
8
9#include <TNamed.h>
10#include <TDatime.h>
11
675e9664 12// Event header base class for generator.
13// Stores as a minimum the date, run number, event number, number of particles produced
14// and the impact parameter
15// Author: andreas.morsch@cern.ch
16
56a10437 17class AliGenEventHeader : public TNamed
18{
19 public:
20
21 AliGenEventHeader(const char* name="Undefined");
22 virtual ~AliGenEventHeader() {}
23 // Getters
24 virtual TDatime Date() {return fDate;}
25 virtual Int_t RunNumber() {return fRunNumber;}
26 virtual Int_t EventNumber() {return fEventNumber;}
27 virtual Int_t NProduced() {return fNProduced;}
28 virtual Float_t ImpactParameter() {return fImpactParameter;}
29 // Setters
30 virtual void SetDate(TDatime date) {fDate=date;}
31 virtual void SetRunNumber(Int_t run) {fRunNumber=run;}
32 virtual void SetEventNumber(Int_t event) {fEventNumber=event;}
33 virtual void SetNProduced(Int_t nprod) {fNProduced=nprod;}
34 virtual void SetImpactParameter(Float_t b) {fImpactParameter=b;}
35
36protected:
37 TDatime fDate; // Date
38 Int_t fRunNumber; // Run Number
39 Int_t fEventNumber; // Event Number
40 Int_t fNProduced; // Number stable or undecayed particles
41 Float_t fImpactParameter; // Impact Parameter
42
43 ClassDef(AliGenEventHeader,1) // Event header for primary event
44};
45
46#endif