]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliESDZDC.h
Make fZDCEMEnergy Double_t aigain, change to array breaks backward comp. when reading...
[u/mrichter/AliRoot.git] / STEER / AliESDZDC.h
index 85ede7bffbec371f2bed9435bfe9d730565f7375..d20e9debc9a96a82c0b2e0b55771a7e72003f165 100644 (file)
@@ -25,7 +25,8 @@ public:
   Double_t GetZDCP1Energy() const {return fZDCP1Energy;}
   Double_t GetZDCN2Energy() const {return fZDCN2Energy;}
   Double_t GetZDCP2Energy() const {return fZDCP2Energy;}
-  Double_t GetZDCEMEnergy(Int_t i) const {return fZDCEMEnergy[i];}
+  Double_t GetZDCEMEnergy(Int_t i) const {if(i==0){return fZDCEMEnergy;}
+  else if(i==1){return fZDCEMEnergy1;}return 0;}
   Short_t  GetZDCParticipants() const {return fZDCParticipants;}
   const Double_t * GetZN1TowerEnergy() const {return fZN1TowerEnergy;}
   const Double_t * GetZN2TowerEnergy() const {return fZN2TowerEnergy;}
@@ -35,33 +36,33 @@ public:
   const Double_t * GetZN2TowerEnergyLR() const {return fZN2TowerEnergyLR;}
   const Double_t * GetZP1TowerEnergyLR() const {return fZP1TowerEnergyLR;}
   const Double_t * GetZP2TowerEnergyLR() const {return fZP2TowerEnergyLR;}
-  void  SetZDC(Double_t n1Energy, Double_t p1Energy, Double_t emEnergy1, Double_t emEnergy2,
+  void  SetZDC(Double_t n1Energy, Double_t p1Energy, Double_t emEnergy0, Double_t emEnergy1,
               Double_t n2Energy, Double_t p2Energy, Short_t participants) 
-   {fZDCN1Energy=n1Energy; fZDCP1Energy=p1Energy; fZDCEMEnergy[0]=emEnergy1; fZDCEMEnergy[1]=emEnergy2;
+   {fZDCN1Energy=n1Energy; fZDCP1Energy=p1Energy; fZDCEMEnergy=emEnergy0; fZDCEMEnergy1=emEnergy1;
     fZDCN2Energy=n2Energy; fZDCP2Energy=p2Energy; fZDCParticipants=participants;}
   void  SetZN1TowerEnergy(Float_t tow1[5]){
-      for(Int_t i=0; i<5; i++) fZN1TowerEnergy[i] = tow1[i];
+      for(Int_t i=0; i<4; i++) fZN1TowerEnergy[i] = tow1[i];
   }
   void  SetZN2TowerEnergy(Float_t tow2[5]){
-      for(Int_t i=0; i<5; i++) fZN2TowerEnergy[i] = tow2[i];
+      for(Int_t i=0; i<4; i++) fZN2TowerEnergy[i] = tow2[i];
   }
   void  SetZP1TowerEnergy(Float_t tow1[5]){
-      for(Int_t i=0; i<5; i++) fZP1TowerEnergy[i] = tow1[i];
+      for(Int_t i=0; i<4; i++) fZP1TowerEnergy[i] = tow1[i];
   }
   void  SetZP2TowerEnergy(Float_t tow2[5]){
-      for(Int_t i=0; i<5; i++) fZP2TowerEnergy[i] = tow2[i];
+      for(Int_t i=0; i<4; i++) fZP2TowerEnergy[i] = tow2[i];
   }
   void  SetZN1TowerEnergyLR(Float_t tow1[5]){
-      for(Int_t i=0; i<5; i++) fZN1TowerEnergyLR[i] = tow1[i];
+      for(Int_t i=0; i<4; i++) fZN1TowerEnergyLR[i] = tow1[i];
   }
   void  SetZN2TowerEnergyLR(Float_t tow2[5]){
-      for(Int_t i=0; i<5; i++) fZN2TowerEnergyLR[i] = tow2[i];
+      for(Int_t i=0; i<4; i++) fZN2TowerEnergyLR[i] = tow2[i];
   }
   void  SetZP1TowerEnergyLR(Float_t tow1[5]){
-      for(Int_t i=0; i<5; i++) fZP1TowerEnergyLR[i] = tow1[i];
+      for(Int_t i=0; i<4; i++) fZP1TowerEnergyLR[i] = tow1[i];
   }
   void  SetZP2TowerEnergyLR(Float_t tow2[4]){
-      for(Int_t i=0; i<5; i++) fZP2TowerEnergyLR[i] = tow2[i];
+      for(Int_t i=0; i<4; i++) fZP2TowerEnergyLR[i] = tow2[i];
   }
 
   void    Reset();
@@ -73,7 +74,8 @@ private:
   Double32_t   fZDCP1Energy;      // reconstructed energy in the proton ZDC
   Double32_t   fZDCN2Energy;      // reconstructed energy in the neutron ZDC
   Double32_t   fZDCP2Energy;      // reconstructed energy in the proton ZDC
-  Double32_t   fZDCEMEnergy[2];   // signal in the electromagnetic ZDCs
+  Double32_t   fZDCEMEnergy;      // signal in the electromagnetic ZDCs
+  Double32_t   fZDCEMEnergy1;    // second EM signal,cannot change fZDCEMEnergy to array (not backward compatible)
   Double32_t   fZN1TowerEnergy[5];// reco E in 5 ZN1 sectors - high gain chain
   Double32_t   fZN2TowerEnergy[5];// reco E in 5 ZN2 sectors - high gain chain
   Double32_t   fZP1TowerEnergy[5];// reco E in 5 ZP1 sectors - high gain chain
@@ -83,7 +85,7 @@ private:
   Double32_t   fZP1TowerEnergyLR[5];// reco E in 5 ZP1 sectors - low gain chain
   Double32_t   fZP2TowerEnergyLR[5];// reco E in 5 ZP2 sectors - low gain chain
   Short_t      fZDCParticipants;  // number of participants estimated by the ZDC
-  ClassDef(AliESDZDC,6)
+  ClassDef(AliESDZDC,7)
 };
 
 #endif