Fixes for bug #52499: Field polarities inconsistiency
[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
12//-------------------------------------------------------------------------
13
14#include <TObject.h>
d1d3e36b 15#include <TMath.h>
5f0ec064 16#include <TF1.h>
d5ebf00e 17
18
19class AliESDZDC: public TObject {
20public:
21 AliESDZDC();
22 AliESDZDC(const AliESDZDC& zdc);
23 AliESDZDC& operator=(const AliESDZDC& zdc);
732a24fe 24 virtual void Copy(TObject &obj) const;
d5ebf00e 25
f6006c7d 26 UInt_t GetESDQuality() const {return fESDQuality;}
a7b0ef8a 27 Double_t GetZDCN1Energy() const {return fZDCN1Energy;}
28 Double_t GetZDCP1Energy() const {return fZDCP1Energy;}
29 Double_t GetZDCN2Energy() const {return fZDCN2Energy;}
30 Double_t GetZDCP2Energy() const {return fZDCP2Energy;}
d1d3e36b 31 Double_t GetZDCEMEnergy(Int_t i) const
89291556 32 {if(i==0){return fZDCEMEnergy;} else if(i==1){return fZDCEMEnergy1;}
33 return 0;}
a85132e7 34 Short_t GetZDCParticipants() const {return fZDCParticipants;}
5f0ec064 35 Short_t GetZDCPartSideA() const {return fZDCPartSideA;}
36 Short_t GetZDCPartSideC() const {return fZDCPartSideC;}
37 Double_t GetImpactParameter() const {return fImpactParameter;}
38 Double_t GetImpactParamSideA() const {return fImpactParamSideA;}
39 Double_t GetImpactParamSideC() const {return fImpactParamSideC;}
7b4458a2 40 const Double_t * GetZN1TowerEnergy() const {return fZN1TowerEnergy;}
41 const Double_t * GetZN2TowerEnergy() const {return fZN2TowerEnergy;}
a85132e7 42 const Double_t * GetZP1TowerEnergy() const {return fZP1TowerEnergy;}
43 const Double_t * GetZP2TowerEnergy() const {return fZP2TowerEnergy;}
44 const Double_t * GetZN1TowerEnergyLR() const {return fZN1TowerEnergyLR;}
45 const Double_t * GetZN2TowerEnergyLR() const {return fZN2TowerEnergyLR;}
46 const Double_t * GetZP1TowerEnergyLR() const {return fZP1TowerEnergyLR;}
47 const Double_t * GetZP2TowerEnergyLR() const {return fZP2TowerEnergyLR;}
d1d3e36b 48 //
2b6cdc43 49 Double32_t * GetZNCCentroid();
50 Double32_t * GetZNACentroid();
89291556 51 //
52 void SetZDC(Double_t n1Energy, Double_t p1Energy,
5f0ec064 53 Double_t emEnergy0, Double_t emEnergy1,
54 Double_t n2Energy, Double_t p2Energy,
55 Short_t participants, Short_t nPartA, Short_t nPartC,
56 Double_t b, Double_t bA, Double_t bC, UInt_t recoFlag)
89291556 57 {fZDCN1Energy=n1Energy; fZDCP1Energy=p1Energy;
5f0ec064 58 fZDCEMEnergy=emEnergy0; fZDCEMEnergy1=emEnergy1;
59 fZDCN2Energy=n2Energy; fZDCP2Energy=p2Energy;
60 fZDCParticipants=participants; fZDCPartSideA=nPartA; fZDCPartSideC=nPartC;
61 fImpactParameter=b; fImpactParamSideA=bA, fImpactParamSideC=bC,
62 fESDQuality=recoFlag;}
d1d3e36b 63 //
d1d3e36b 64 void SetZN1TowerEnergy(Float_t tow1[5])
65 {for(Int_t i=0; i<5; i++) fZN1TowerEnergy[i] = tow1[i];}
66 void SetZN2TowerEnergy(Float_t tow2[5])
67 {for(Int_t i=0; i<5; i++) fZN2TowerEnergy[i] = tow2[i];}
68 void SetZP1TowerEnergy(Float_t tow1[5])
69 {for(Int_t i=0; i<5; i++) fZP1TowerEnergy[i] = tow1[i];}
70 void SetZP2TowerEnergy(Float_t tow2[5])
71 {for(Int_t i=0; i<5; i++) fZP2TowerEnergy[i] = tow2[i];}
72 void SetZN1TowerEnergyLR(Float_t tow1[5])
73 {for(Int_t i=0; i<5; i++) fZN1TowerEnergyLR[i] = tow1[i];}
74 void SetZN2TowerEnergyLR(Float_t tow2[5])
75 {for(Int_t i=0; i<5; i++) fZN2TowerEnergyLR[i] = tow2[i];}
76 void SetZP1TowerEnergyLR(Float_t tow1[5])
77 {for(Int_t i=0; i<5; i++) fZP1TowerEnergyLR[i] = tow1[i];}
78 void SetZP2TowerEnergyLR(Float_t tow2[5])
79 {for(Int_t i=0; i<5; i++) fZP2TowerEnergyLR[i] = tow2[i];}
89291556 80 void SetZNACentroid(Float_t centrCoord[2])
81 {for(Int_t i=0; i<2; i++) fZNACentrCoord[i] = centrCoord[i];}
82 void SetZNCCentroid(Float_t centrCoord[2])
83 {for(Int_t i=0; i<2; i++) fZNCCentrCoord[i] = centrCoord[i];}
d5ebf00e 84
85 void Reset();
86 void Print(const Option_t *opt=0) const;
87
88private:
89
d1d3e36b 90 Double32_t fZDCN1Energy; // reconstructed energy in the neutron ZDC
91 Double32_t fZDCP1Energy; // reconstructed energy in the proton ZDC
92 Double32_t fZDCN2Energy; // reconstructed energy in the neutron ZDC
93 Double32_t fZDCP2Energy; // reconstructed energy in the proton ZDC
94 Double32_t fZDCEMEnergy; // signal in the electromagnetic ZDCs
95 Double32_t fZDCEMEnergy1; // second EM signal,cannot change fZDCEMEnergy to array (not backward compatible)
a85132e7 96 Double32_t fZN1TowerEnergy[5];// reco E in 5 ZN1 sectors - high gain chain
97 Double32_t fZN2TowerEnergy[5];// reco E in 5 ZN2 sectors - high gain chain
98 Double32_t fZP1TowerEnergy[5];// reco E in 5 ZP1 sectors - high gain chain
99 Double32_t fZP2TowerEnergy[5];// reco E in 5 ZP2 sectors - high gain chain
100 Double32_t fZN1TowerEnergyLR[5];// reco E in 5 ZN1 sectors - low gain chain
101 Double32_t fZN2TowerEnergyLR[5];// reco E in 5 ZN2 sectors - low gain chain
102 Double32_t fZP1TowerEnergyLR[5];// reco E in 5 ZP1 sectors - low gain chain
103 Double32_t fZP2TowerEnergyLR[5];// reco E in 5 ZP2 sectors - low gain chain
5f0ec064 104 Short_t fZDCParticipants; // number of participants estimated by the ZDC (ONLY in A-A)
105 Short_t fZDCPartSideA; // number of participants estimated by the ZDC (ONLY in A-A)
106 Short_t fZDCPartSideC; // number of participants estimated by the ZDC (ONLY in A-A)
107 Double32_t fImpactParameter; // impact parameter estimated by the ZDC (ONLY in A-A)
108 Double32_t fImpactParamSideA; // impact parameter estimated by the ZDC (ONLY in A-A)
109 Double32_t fImpactParamSideC; // impact parameter estimated by the ZDC (ONLY in A-A)
110 Double32_t fZNACentrCoord[2]; // Coordinates of the centroid over ZNC
111 Double32_t fZNCCentrCoord[2]; // Coordinates of the centroid over ZNA
112 UInt_t fESDQuality; // flags from reconstruction
89291556 113 //
5f0ec064 114 ClassDef(AliESDZDC,10)
d5ebf00e 115};
116
117#endif
7b4458a2 118