]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
https://savannah.cern.ch/bugs/index.php?96662
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 18 Aug 2012 20:59:10 +0000 (20:59 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 18 Aug 2012 20:59:10 +0000 (20:59 +0000)
Pietro Antonioli

STEER/AOD/AliAODHeader.cxx
STEER/AOD/AliAODHeader.h

index 81bcbb6eadf6db1cacc4fb4accc196e9d5b048db..27b4690961b851401ec16108cbe41b5fa61bd2ff 100644 (file)
@@ -77,6 +77,7 @@ AliAODHeader::AliAODHeader() :
   for (Int_t sm=0; sm<kNEMCALMatrix; sm++) fEMCALMatrix[sm]=NULL;
   for (Int_t i = 0; i < 6; i++)  fITSClusters[i] = 0;
   for (Int_t j=0; j<64; ++j) fVZEROEqFactors[j]=-1;
+  for (Int_t i=0; i<kT0SpreadSize;i++) fT0spread[i]=0;
 }
 
 //______________________________________________________________________________
@@ -132,6 +133,7 @@ AliAODHeader::AliAODHeader(Int_t nRun,
   for (Int_t m=0; m<kNPHOSMatrix; m++) fPHOSMatrix[m]=NULL;
   for (Int_t sm=0; sm<kNEMCALMatrix; sm++) fEMCALMatrix[sm]=NULL;
   for (Int_t j=0; j<64; ++j) fVZEROEqFactors[j]=-1;
+  for (Int_t i=0; i<kT0SpreadSize;i++) fT0spread[i]=0;
 }
 
 //______________________________________________________________________________
@@ -206,6 +208,7 @@ AliAODHeader::AliAODHeader(Int_t nRun,
   for (Int_t sm=0; sm<kNEMCALMatrix; sm++) fEMCALMatrix[sm]=NULL;
   for (Int_t i = 0; i < 6; i++)  fITSClusters[i] = 0;
   if (vzeroEqFactors) for (Int_t j=0; j<64; ++j) fVZEROEqFactors[j] = vzeroEqFactors[j];
+  for (Int_t i=0; i<kT0SpreadSize;i++) fT0spread[i]=0;
 }
 
 //______________________________________________________________________________
@@ -280,6 +283,8 @@ AliAODHeader::AliAODHeader(const AliAODHeader& hdr) :
   }
   for (Int_t i = 0; i < 6; i++)  fITSClusters[i] = hdr.fITSClusters[i];
   for (Int_t j=0; j<64; ++j) fVZEROEqFactors[j]=hdr.fVZEROEqFactors[j];
+  for (Int_t i=0; i<kT0SpreadSize;i++) fT0spread[i]=hdr.fT0spread[i];
+
 }
 
 //______________________________________________________________________________
@@ -360,6 +365,8 @@ AliAODHeader& AliAODHeader::operator=(const AliAODHeader& hdr)
 
   for (Int_t i = 0; i < 6; i++)  fITSClusters[i] = hdr.fITSClusters[i];
   for (Int_t j=0; j<64; ++j) fVZEROEqFactors[j] = hdr.fVZEROEqFactors[j];
+  for (Int_t i=0; i<kT0SpreadSize;i++) fT0spread[i]=hdr.fT0spread[i];
+
   return *this;
 }
 
index dc3d7876a802d2aa80d3c5bd66189365d8add6be..edb82832fa378466c3e4418d9c8c459cd3e6561f 100644 (file)
@@ -164,12 +164,18 @@ class AliAODHeader : public AliVHeader {
   void Clear(Option_t* = "");
   enum {kNPHOSMatrix = 5};
   enum {kNEMCALMatrix = 12};
+  enum {kT0SpreadSize = 4};
 
   void           SetVZEROEqFactors(const Float_t* factors) {
     if (factors)
       for (Int_t i = 0; i < 64; ++i) fVZEROEqFactors[i] = factors[i];}
   const Float_t* GetVZEROEqFactors() const {return fVZEROEqFactors;}
   Float_t        GetVZEROEqFactors(Int_t i) const {return fVZEROEqFactors[i];}
+  Float_t    GetT0spread(Int_t i) const {
+    return ((i >= 0)  && (i<kT0SpreadSize)) ? fT0spread[i] : 0;}
+  void       SetT0spread(Int_t i, Float_t t) {
+    if ((i>=0)&&(i<kT0SpreadSize)) fT0spread[i]=t;}
+
   
  private :
   
@@ -214,7 +220,8 @@ class AliAODHeader : public AliVHeader {
   AliCentrality* fCentralityP;      // Pointer to full centrality information
   AliEventplane* fEventplaneP;     // Pointer to full event plane information
   Float_t     fVZEROEqFactors[64];  // V0 channel equalization factors for event-plane reconstruction
-  ClassDef(AliAODHeader, 17);
+  Float_t     fT0spread[kT0SpreadSize]; // spread of time distributions: (TOA+T0C/2), T0A, T0C, (T0A-T0C)/2
+  ClassDef(AliAODHeader, 18);
 };
 inline
 void AliAODHeader::SetCentrality(const AliCentrality* cent)      {