]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliESDZDC.h
update for running on GRID
[u/mrichter/AliRoot.git] / STEER / AliESDZDC.h
index 95e2293536eef305e86569a9524ff32658ca2661..ae1549356c54cebfe79cc93d06f9655f6e9b369a 100644 (file)
@@ -9,11 +9,11 @@
 //                      Implementation of   Class AliESDZDC
 //   This is a class that summarizes the ZDC data for the ESD   
 //   Origin: Christian Klein-Boesing, CERN, Christian.Klein-Boesing@cern.ch 
+//   *** 15/10/2009 Scaler added to AliESDZDC class ***
+//   *** Scaler format:  32 floats from VME scaler  ***
 //-------------------------------------------------------------------------
 
 #include <TObject.h>
-#include <TMath.h>
-
 
 class AliESDZDC: public TObject {
 public:
@@ -22,6 +22,7 @@ public:
   AliESDZDC& operator=(const AliESDZDC& zdc);
   virtual void Copy(TObject &obj) const;
 
+  UInt_t   GetESDQuality()  const {return fESDQuality;}
   Double_t GetZDCN1Energy() const {return fZDCN1Energy;}
   Double_t GetZDCP1Energy() const {return fZDCP1Energy;}
   Double_t GetZDCN2Energy() const {return fZDCN2Energy;}
@@ -30,7 +31,11 @@ public:
           {if(i==0){return fZDCEMEnergy;} else if(i==1){return fZDCEMEnergy1;}
           return 0;}
   Short_t  GetZDCParticipants() const {return fZDCParticipants;}
-  Short_t  GetZDCParticipants2() const {return fZDCParticipants2;}
+  Short_t  GetZDCPartSideA() const {return fZDCPartSideA;}
+  Short_t  GetZDCPartSideC() const {return fZDCPartSideC;}
+  Double_t GetImpactParameter() const {return fImpactParameter;}
+  Double_t GetImpactParamSideA() const {return fImpactParamSideA;}
+  Double_t GetImpactParamSideC() const {return fImpactParamSideC;}
   const Double_t * GetZN1TowerEnergy() const {return fZN1TowerEnergy;}
   const Double_t * GetZN2TowerEnergy() const {return fZN2TowerEnergy;}
   const Double_t * GetZP1TowerEnergy() const {return fZP1TowerEnergy;}
@@ -40,39 +45,48 @@ public:
   const Double_t * GetZP1TowerEnergyLR() const {return fZP1TowerEnergyLR;}
   const Double_t * GetZP2TowerEnergyLR() const {return fZP2TowerEnergyLR;}
   //
-  Double32_t * GetZNCCentroid();
-  Double32_t * GetZNACentroid();
+  Bool_t GetZNCentroidInPbPb(Float_t beamEne, Double_t centrZNC[2], Double_t centrZNA[2]);
+  Bool_t GetZNCentroidInpp(Double_t centrZNC[2], Double_t centrZNA[2]);
   //
   void  SetZDC(Double_t n1Energy, Double_t p1Energy, 
-               Double_t emEnergy0, Double_t emEnergy1,
-               Double_t n2Energy, Double_t p2Energy, 
-               Short_t participants, Short_t participants2) 
+              Double_t emEnergy0, Double_t emEnergy1,
+              Double_t n2Energy, Double_t p2Energy, 
+              Short_t participants, Short_t nPartA, Short_t nPartC,
+              Double_t b, Double_t bA, Double_t bC, UInt_t recoFlag) 
        {fZDCN1Energy=n1Energy; fZDCP1Energy=p1Energy; 
-       fZDCEMEnergy=emEnergy0; fZDCEMEnergy1=emEnergy1;
-       fZDCN2Energy=n2Energy; fZDCP2Energy=p2Energy; 
-       fZDCParticipants=participants; fZDCParticipants2=participants2;}
+        fZDCEMEnergy=emEnergy0; fZDCEMEnergy1=emEnergy1;
+        fZDCN2Energy=n2Energy; fZDCP2Energy=p2Energy; 
+        fZDCParticipants=participants; fZDCPartSideA=nPartA; fZDCPartSideC=nPartC;
+        fImpactParameter=b; fImpactParamSideA=bA, fImpactParamSideC=bC,
+        fESDQuality=recoFlag;}
   //
-  void  SetZN1TowerEnergy(Float_t tow1[5])
+  void  SetZN1TowerEnergy(const Float_t tow1[5])
           {for(Int_t i=0; i<5; i++) fZN1TowerEnergy[i] = tow1[i];}
-  void  SetZN2TowerEnergy(Float_t tow2[5])
+  void  SetZN2TowerEnergy(const Float_t tow2[5])
           {for(Int_t i=0; i<5; i++) fZN2TowerEnergy[i] = tow2[i];}
-  void  SetZP1TowerEnergy(Float_t tow1[5])
+  void  SetZP1TowerEnergy(const Float_t tow1[5])
           {for(Int_t i=0; i<5; i++) fZP1TowerEnergy[i] = tow1[i];}
-  void  SetZP2TowerEnergy(Float_t tow2[5])
+  void  SetZP2TowerEnergy(const Float_t tow2[5])
           {for(Int_t i=0; i<5; i++) fZP2TowerEnergy[i] = tow2[i];}
-  void  SetZN1TowerEnergyLR(Float_t tow1[5])
+  void  SetZN1TowerEnergyLR(const Float_t tow1[5])
           {for(Int_t i=0; i<5; i++) fZN1TowerEnergyLR[i] = tow1[i];}
-  void  SetZN2TowerEnergyLR(Float_t tow2[5])
+  void  SetZN2TowerEnergyLR(const Float_t tow2[5])
           {for(Int_t i=0; i<5; i++) fZN2TowerEnergyLR[i] = tow2[i];}
-  void  SetZP1TowerEnergyLR(Float_t tow1[5])
+  void  SetZP1TowerEnergyLR(const Float_t tow1[5])
           {for(Int_t i=0; i<5; i++) fZP1TowerEnergyLR[i] = tow1[i];}
-  void  SetZP2TowerEnergyLR(Float_t tow2[5])
+  void  SetZP2TowerEnergyLR(const Float_t tow2[5])
           {for(Int_t i=0; i<5; i++) fZP2TowerEnergyLR[i] = tow2[i];}
-  void  SetZNACentroid(Float_t centrCoord[2])
+  void  SetZNACentroid(const Float_t centrCoord[2])
           {for(Int_t i=0; i<2; i++) fZNACentrCoord[i] = centrCoord[i];}
-  void  SetZNCCentroid(Float_t centrCoord[2])
+  void  SetZNCCentroid(const Float_t centrCoord[2])
           {for(Int_t i=0; i<2; i++) fZNCCentrCoord[i] = centrCoord[i];}
 
+  UInt_t GetZDCScaler(Int_t i)  const {return fVMEScaler[i];}
+  const UInt_t* GetZDCScaler()  const {return fVMEScaler;}
+  
+  void SetZDCScaler(const UInt_t count[32]) 
+       {for(Int_t k=0; k<32; k++) fVMEScaler[k] = count[k];}
+
   void    Reset();
   void    Print(const Option_t *opt=0) const;
 
@@ -92,12 +106,19 @@ private:
   Double32_t   fZN2TowerEnergyLR[5];// reco E in 5 ZN2 sectors - low gain chain
   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 - side C
-  Short_t      fZDCParticipants2;// number of participants estimated by the ZDC - side A
-  Double32_t   fZNACentrCoord[2];// Coordinates of the centroid over ZNC
-  Double32_t   fZNCCentrCoord[2];// Coordinates of the centroid over ZNA
+  Short_t      fZDCParticipants;    // number of participants estimated by the ZDC (ONLY in A-A)
+  Short_t      fZDCPartSideA;     // number of participants estimated by the ZDC (ONLY in A-A)
+  Short_t      fZDCPartSideC;     // number of participants estimated by the ZDC (ONLY in A-A)
+  Double32_t   fImpactParameter;  // impact parameter estimated by the ZDC (ONLY in A-A)
+  Double32_t   fImpactParamSideA; // impact parameter estimated by the ZDC (ONLY in A-A)
+  Double32_t   fImpactParamSideC; // impact parameter estimated by the ZDC (ONLY in A-A)
+  Double32_t   fZNACentrCoord[2]; // Coordinates of the centroid over ZNC
+  Double32_t   fZNCCentrCoord[2]; // Coordinates of the centroid over ZNA
+  UInt_t       fESDQuality;      // flags from reconstruction
   //
-  ClassDef(AliESDZDC,9)
+  UInt_t fVMEScaler[32]; // counts from VME scaler
+
+  ClassDef(AliESDZDC,12)
 };
 
 #endif