]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliGenEventHeader.h
Coverity Fix.
[u/mrichter/AliRoot.git] / STEER / AliGenEventHeader.h
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 //---------------------------------------------------------------------
10 // Event header base class for generator. 
11 // Stores generated event information
12 // Author: andreas.morsch@cern.ch
13 //---------------------------------------------------------------------
14
15 #include <TNamed.h>
16 #include <TArrayF.h>
17
18 class AliGenEventHeader : public TNamed
19 {
20  public:
21
22   AliGenEventHeader(const char* name);
23   AliGenEventHeader();
24   virtual ~AliGenEventHeader() {}
25   // Getters
26   virtual Int_t           NProduced()       const  {return fNProduced;}
27   virtual Float_t         InteractionTime() const  {return fInteractionTime;}
28   virtual Float_t         EventWeight()     const  {return fEventWeight;}
29   virtual void            PrimaryVertex(TArrayF &o) const;
30   // Setters
31   virtual void   SetNProduced(Int_t nprod)         {fNProduced = nprod;}
32   virtual void   SetPrimaryVertex(const TArrayF &o);
33   virtual void   SetInteractionTime(Float_t t)     {fInteractionTime = t;}
34   virtual void   SetEventWeight(Float_t w)         {fEventWeight = w;}
35         
36           
37 protected:
38   Int_t     fNProduced;                 // Number stable or undecayed particles
39   TArrayF   fVertex;                    // Primary Vertex Position
40   Float_t   fInteractionTime;           // Time of the interaction
41   Float_t   fEventWeight;               // Event weight
42   ClassDef(AliGenEventHeader, 4)        // Event header for primary event
43 };
44
45 #endif