]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliGenEventHeader.h
Fixes for Coverity warnings - M. Sitta
[u/mrichter/AliRoot.git] / STEER / AliGenEventHeader.h
index c40ef93a1d10da028106638d90951e050e887099..97318797e1c46530e6525815164f12ae0a2f14f5 100644 (file)
@@ -23,17 +23,23 @@ class AliGenEventHeader : public TNamed
   AliGenEventHeader();
   virtual ~AliGenEventHeader() {}
   // Getters
-  virtual Int_t           NProduced()  const   {return fNProduced;}
+  virtual Int_t           NProduced()       const  {return fNProduced;}
+  virtual Float_t         InteractionTime() const  {return fInteractionTime;}
+  virtual Float_t         EventWeight()     const  {return fEventWeight;}
   virtual void            PrimaryVertex(TArrayF &o) const;
-  
   // Setters
-  virtual void   SetNProduced(Int_t nprod)         {fNProduced=nprod;}
+  virtual void   SetNProduced(Int_t nprod)         {fNProduced = nprod;}
   virtual void   SetPrimaryVertex(const TArrayF &o);
-  
+  virtual void   SetInteractionTime(Float_t t)     {fInteractionTime = t;}
+  virtual void   SetEventWeight(Float_t w)         {fEventWeight = w;}
+        
+         
 protected:
   Int_t     fNProduced;                 // Number stable or undecayed particles
   TArrayF   fVertex;                    // Primary Vertex Position
-  ClassDef(AliGenEventHeader,2)         // Event header for primary event
+  Float_t   fInteractionTime;           // Time of the interaction
+  Float_t   fEventWeight;               // Event weight
+  ClassDef(AliGenEventHeader, 4)        // Event header for primary event
 };
 
 #endif