]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliESDRun.h
Fix for Coverity 10007: BAD_FREE
[u/mrichter/AliRoot.git] / STEER / AliESDRun.h
index c62728209b9ad9d05cb3c41f744a67826d312247..991f138251eb09e5e6b8234721fca306da8fd1d6 100644 (file)
@@ -23,6 +23,7 @@ public:
 
   enum StatusBits {kBInfoStored = BIT(14), kUniformBMap = BIT(15), kConvSqrtSHalfGeV = BIT(16)};
 
+
   AliESDRun();
   AliESDRun(const AliESDRun& esd);
   AliESDRun& operator=(const AliESDRun& esd);
@@ -86,12 +87,26 @@ public:
   enum {kNTriggerClasses = 50};
   enum {kNPHOSMatrix = 5};
   enum {kNEMCALMatrix = 12};
+  enum {kT0spreadSize = 4};
+  //
+  Double_t   GetMeanIntensity(int beam,int btp)     const 
+  { return (beam>=0&&beam<2&&btp>=0&&btp<2) ? fMeanBeamInt[beam][btp]:0;}
+  void       SetMeanIntensity(int beam,int btp, double v=-1) 
+  { if (beam>=0&&beam<2&&btp>=0&&btp<2) fMeanBeamInt[beam][btp]=v;}  
+  Double_t   GetMeanIntensityIntecting(int beam)    const {return GetMeanIntensity(beam,0);}
+  Double_t   GetMeanIntensityNonIntecting(int beam) const {return GetMeanIntensity(beam,1);}
+  // 
+  Float_t    GetT0spread(Int_t i) const {
+    return ((i >= 0)  && (i<kT0spreadSize)) ? fT0spread[i] : 0;}
+  void       SetT0spread(Int_t i, Float_t t);
+  void       SetT0spread(Float_t *t);
 
 private:
   Float_t         fCurrentL3;       // signed current in the L3     (LHC convention: +current -> +Bz)
   Float_t         fCurrentDip;      // signed current in the Dipole (LHC convention: +current -> -Bx)
   Float_t         fBeamEnergy;      // beamEnergy entry from GRP
   Double32_t      fMagneticField;   // Solenoid Magnetic Field in kG : for compatibility with AliMagF
+  Double32_t      fMeanBeamInt[2][2]; // mean intensity of interacting and non-intercting bunches per beam
   Double32_t      fDiamondXY[2];    // Interaction diamond (x,y) in RUN
   Double32_t      fDiamondCovXY[3]; // Interaction diamond covariance (x,y) in RUN
   Double32_t      fDiamondZ;        // Interaction diamond (z) in RUN
@@ -105,8 +120,9 @@ private:
   UInt_t          fDetInReco;       // Detector mask for detectors in reconstruction
   TGeoHMatrix*    fPHOSMatrix[kNPHOSMatrix]; //PHOS module position and orientation matrices
   TGeoHMatrix*    fEMCALMatrix[kNEMCALMatrix]; //EMCAL supermodule position and orientation matrices
+  Float_t         fT0spread[kT0spreadSize];     // spread of time distributions on T0A, T0C, (T0A+T0C)/2, (T0A-T0C)/2
 
-  ClassDef(AliESDRun,8)
+  ClassDef(AliESDRun,10)
 };
 
 #endif