]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliESDZDC.h
For Pythia with tune don't switch off MI in ConfigHeavyFlavor
[u/mrichter/AliRoot.git] / STEER / AliESDZDC.h
CommitLineData
d5ebf00e 1// -*- mode: C++ -*-
2#ifndef ALIESDZDC_H
3#define ALIESDZDC_H
4
5/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
6 * See cxx source for full Copyright notice */
7
8//-------------------------------------------------------------------------
9// Implementation of Class AliESDZDC
d1d3e36b 10// This is a class that summarizes the ZDC data for the ESD
d5ebf00e 11// Origin: Christian Klein-Boesing, CERN, Christian.Klein-Boesing@cern.ch
54c6a92c 12// *** 15/10/2009 Scaler added to AliESDZDC class ***
13// *** Scaler format: 32 floats from VME scaler ***
d5ebf00e 14//-------------------------------------------------------------------------
15
16#include <TObject.h>
d5ebf00e 17
18class AliESDZDC: public TObject {
19public:
20 AliESDZDC();
21 AliESDZDC(const AliESDZDC& zdc);
22 AliESDZDC& operator=(const AliESDZDC& zdc);
732a24fe 23 virtual void Copy(TObject &obj) const;
d5ebf00e 24
f6006c7d 25 UInt_t GetESDQuality() const {return fESDQuality;}
a7b0ef8a 26 Double_t GetZDCN1Energy() const {return fZDCN1Energy;}
27 Double_t GetZDCP1Energy() const {return fZDCP1Energy;}
28 Double_t GetZDCN2Energy() const {return fZDCN2Energy;}
29 Double_t GetZDCP2Energy() const {return fZDCP2Energy;}
d1d3e36b 30 Double_t GetZDCEMEnergy(Int_t i) const
89291556 31 {if(i==0){return fZDCEMEnergy;} else if(i==1){return fZDCEMEnergy1;}
32 return 0;}
a85132e7 33 Short_t GetZDCParticipants() const {return fZDCParticipants;}
5f0ec064 34 Short_t GetZDCPartSideA() const {return fZDCPartSideA;}
35 Short_t GetZDCPartSideC() const {return fZDCPartSideC;}
36 Double_t GetImpactParameter() const {return fImpactParameter;}
37 Double_t GetImpactParamSideA() const {return fImpactParamSideA;}
38 Double_t GetImpactParamSideC() const {return fImpactParamSideC;}
7b4458a2 39 const Double_t * GetZN1TowerEnergy() const {return fZN1TowerEnergy;}
40 const Double_t * GetZN2TowerEnergy() const {return fZN2TowerEnergy;}
a85132e7 41 const Double_t * GetZP1TowerEnergy() const {return fZP1TowerEnergy;}
42 const Double_t * GetZP2TowerEnergy() const {return fZP2TowerEnergy;}
43 const Double_t * GetZN1TowerEnergyLR() const {return fZN1TowerEnergyLR;}
44 const Double_t * GetZN2TowerEnergyLR() const {return fZN2TowerEnergyLR;}
45 const Double_t * GetZP1TowerEnergyLR() const {return fZP1TowerEnergyLR;}
46 const Double_t * GetZP2TowerEnergyLR() const {return fZP2TowerEnergyLR;}
d1d3e36b 47 //
789b8a8d 48 Bool_t GetZNCentroidInPbPb(Float_t beamEne, Double_t centrZNC[2], Double_t centrZNA[2]);
49 Bool_t GetZNCentroidInpp(Double_t centrZNC[2], Double_t centrZNA[2]);
89291556 50 //
51 void SetZDC(Double_t n1Energy, Double_t p1Energy,
5f0ec064 52 Double_t emEnergy0, Double_t emEnergy1,
53 Double_t n2Energy, Double_t p2Energy,
54 Short_t participants, Short_t nPartA, Short_t nPartC,
55 Double_t b, Double_t bA, Double_t bC, UInt_t recoFlag)
89291556 56 {fZDCN1Energy=n1Energy; fZDCP1Energy=p1Energy;
5f0ec064 57 fZDCEMEnergy=emEnergy0; fZDCEMEnergy1=emEnergy1;
58 fZDCN2Energy=n2Energy; fZDCP2Energy=p2Energy;
59 fZDCParticipants=participants; fZDCPartSideA=nPartA; fZDCPartSideC=nPartC;
60 fImpactParameter=b; fImpactParamSideA=bA, fImpactParamSideC=bC,
61 fESDQuality=recoFlag;}
d1d3e36b 62 //
b19cc8d0 63 void SetZN1TowerEnergy(const Float_t tow1[5])
d1d3e36b 64 {for(Int_t i=0; i<5; i++) fZN1TowerEnergy[i] = tow1[i];}
b19cc8d0 65 void SetZN2TowerEnergy(const Float_t tow2[5])
d1d3e36b 66 {for(Int_t i=0; i<5; i++) fZN2TowerEnergy[i] = tow2[i];}
b19cc8d0 67 void SetZP1TowerEnergy(const Float_t tow1[5])
d1d3e36b 68 {for(Int_t i=0; i<5; i++) fZP1TowerEnergy[i] = tow1[i];}
b19cc8d0 69 void SetZP2TowerEnergy(const Float_t tow2[5])
d1d3e36b 70 {for(Int_t i=0; i<5; i++) fZP2TowerEnergy[i] = tow2[i];}
b19cc8d0 71 void SetZN1TowerEnergyLR(const Float_t tow1[5])
d1d3e36b 72 {for(Int_t i=0; i<5; i++) fZN1TowerEnergyLR[i] = tow1[i];}
b19cc8d0 73 void SetZN2TowerEnergyLR(const Float_t tow2[5])
d1d3e36b 74 {for(Int_t i=0; i<5; i++) fZN2TowerEnergyLR[i] = tow2[i];}
b19cc8d0 75 void SetZP1TowerEnergyLR(const Float_t tow1[5])
d1d3e36b 76 {for(Int_t i=0; i<5; i++) fZP1TowerEnergyLR[i] = tow1[i];}
b19cc8d0 77 void SetZP2TowerEnergyLR(const Float_t tow2[5])
d1d3e36b 78 {for(Int_t i=0; i<5; i++) fZP2TowerEnergyLR[i] = tow2[i];}
b19cc8d0 79 void SetZNACentroid(const Float_t centrCoord[2])
89291556 80 {for(Int_t i=0; i<2; i++) fZNACentrCoord[i] = centrCoord[i];}
b19cc8d0 81 void SetZNCCentroid(const Float_t centrCoord[2])
89291556 82 {for(Int_t i=0; i<2; i++) fZNCCentrCoord[i] = centrCoord[i];}
d5ebf00e 83
54c6a92c 84 UInt_t GetZDCScaler(Int_t i) const {return fVMEScaler[i];}
85 const UInt_t* GetZDCScaler() const {return fVMEScaler;}
86
b19cc8d0 87 void SetZDCScaler(const UInt_t count[32])
54c6a92c 88 {for(Int_t k=0; k<32; k++) fVMEScaler[k] = count[k];}
89
d5ebf00e 90 void Reset();
91 void Print(const Option_t *opt=0) const;
92
93private:
94
d1d3e36b 95 Double32_t fZDCN1Energy; // reconstructed energy in the neutron ZDC
96 Double32_t fZDCP1Energy; // reconstructed energy in the proton ZDC
97 Double32_t fZDCN2Energy; // reconstructed energy in the neutron ZDC
98 Double32_t fZDCP2Energy; // reconstructed energy in the proton ZDC
99 Double32_t fZDCEMEnergy; // signal in the electromagnetic ZDCs
100 Double32_t fZDCEMEnergy1; // second EM signal,cannot change fZDCEMEnergy to array (not backward compatible)
a85132e7 101 Double32_t fZN1TowerEnergy[5];// reco E in 5 ZN1 sectors - high gain chain
102 Double32_t fZN2TowerEnergy[5];// reco E in 5 ZN2 sectors - high gain chain
103 Double32_t fZP1TowerEnergy[5];// reco E in 5 ZP1 sectors - high gain chain
104 Double32_t fZP2TowerEnergy[5];// reco E in 5 ZP2 sectors - high gain chain
105 Double32_t fZN1TowerEnergyLR[5];// reco E in 5 ZN1 sectors - low gain chain
106 Double32_t fZN2TowerEnergyLR[5];// reco E in 5 ZN2 sectors - low gain chain
107 Double32_t fZP1TowerEnergyLR[5];// reco E in 5 ZP1 sectors - low gain chain
108 Double32_t fZP2TowerEnergyLR[5];// reco E in 5 ZP2 sectors - low gain chain
5f0ec064 109 Short_t fZDCParticipants; // number of participants estimated by the ZDC (ONLY in A-A)
110 Short_t fZDCPartSideA; // number of participants estimated by the ZDC (ONLY in A-A)
111 Short_t fZDCPartSideC; // number of participants estimated by the ZDC (ONLY in A-A)
112 Double32_t fImpactParameter; // impact parameter estimated by the ZDC (ONLY in A-A)
113 Double32_t fImpactParamSideA; // impact parameter estimated by the ZDC (ONLY in A-A)
114 Double32_t fImpactParamSideC; // impact parameter estimated by the ZDC (ONLY in A-A)
115 Double32_t fZNACentrCoord[2]; // Coordinates of the centroid over ZNC
116 Double32_t fZNCCentrCoord[2]; // Coordinates of the centroid over ZNA
117 UInt_t fESDQuality; // flags from reconstruction
89291556 118 //
54c6a92c 119 UInt_t fVMEScaler[32]; // counts from VME scaler
120
b19cc8d0 121 ClassDef(AliESDZDC,12)
d5ebf00e 122};
123
124#endif
7b4458a2 125