]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliESDZDC.h
Usage of the recently introduced OCDB entry which contains the list of defined cosmic...
[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
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 //
2b6cdc43 48 Double32_t * GetZNCCentroid();
49 Double32_t * GetZNACentroid();
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 //
d1d3e36b 63 void SetZN1TowerEnergy(Float_t tow1[5])
64 {for(Int_t i=0; i<5; i++) fZN1TowerEnergy[i] = tow1[i];}
65 void SetZN2TowerEnergy(Float_t tow2[5])
66 {for(Int_t i=0; i<5; i++) fZN2TowerEnergy[i] = tow2[i];}
67 void SetZP1TowerEnergy(Float_t tow1[5])
68 {for(Int_t i=0; i<5; i++) fZP1TowerEnergy[i] = tow1[i];}
69 void SetZP2TowerEnergy(Float_t tow2[5])
70 {for(Int_t i=0; i<5; i++) fZP2TowerEnergy[i] = tow2[i];}
71 void SetZN1TowerEnergyLR(Float_t tow1[5])
72 {for(Int_t i=0; i<5; i++) fZN1TowerEnergyLR[i] = tow1[i];}
73 void SetZN2TowerEnergyLR(Float_t tow2[5])
74 {for(Int_t i=0; i<5; i++) fZN2TowerEnergyLR[i] = tow2[i];}
75 void SetZP1TowerEnergyLR(Float_t tow1[5])
76 {for(Int_t i=0; i<5; i++) fZP1TowerEnergyLR[i] = tow1[i];}
77 void SetZP2TowerEnergyLR(Float_t tow2[5])
78 {for(Int_t i=0; i<5; i++) fZP2TowerEnergyLR[i] = tow2[i];}
89291556 79 void SetZNACentroid(Float_t centrCoord[2])
80 {for(Int_t i=0; i<2; i++) fZNACentrCoord[i] = centrCoord[i];}
81 void SetZNCCentroid(Float_t centrCoord[2])
82 {for(Int_t i=0; i<2; i++) fZNCCentrCoord[i] = centrCoord[i];}
d5ebf00e 83
84 void Reset();
85 void Print(const Option_t *opt=0) const;
86
87private:
88
d1d3e36b 89 Double32_t fZDCN1Energy; // reconstructed energy in the neutron ZDC
90 Double32_t fZDCP1Energy; // reconstructed energy in the proton ZDC
91 Double32_t fZDCN2Energy; // reconstructed energy in the neutron ZDC
92 Double32_t fZDCP2Energy; // reconstructed energy in the proton ZDC
93 Double32_t fZDCEMEnergy; // signal in the electromagnetic ZDCs
94 Double32_t fZDCEMEnergy1; // second EM signal,cannot change fZDCEMEnergy to array (not backward compatible)
a85132e7 95 Double32_t fZN1TowerEnergy[5];// reco E in 5 ZN1 sectors - high gain chain
96 Double32_t fZN2TowerEnergy[5];// reco E in 5 ZN2 sectors - high gain chain
97 Double32_t fZP1TowerEnergy[5];// reco E in 5 ZP1 sectors - high gain chain
98 Double32_t fZP2TowerEnergy[5];// reco E in 5 ZP2 sectors - high gain chain
99 Double32_t fZN1TowerEnergyLR[5];// reco E in 5 ZN1 sectors - low gain chain
100 Double32_t fZN2TowerEnergyLR[5];// reco E in 5 ZN2 sectors - low gain chain
101 Double32_t fZP1TowerEnergyLR[5];// reco E in 5 ZP1 sectors - low gain chain
102 Double32_t fZP2TowerEnergyLR[5];// reco E in 5 ZP2 sectors - low gain chain
5f0ec064 103 Short_t fZDCParticipants; // number of participants estimated by the ZDC (ONLY in A-A)
104 Short_t fZDCPartSideA; // number of participants estimated by the ZDC (ONLY in A-A)
105 Short_t fZDCPartSideC; // number of participants estimated by the ZDC (ONLY in A-A)
106 Double32_t fImpactParameter; // impact parameter estimated by the ZDC (ONLY in A-A)
107 Double32_t fImpactParamSideA; // impact parameter estimated by the ZDC (ONLY in A-A)
108 Double32_t fImpactParamSideC; // impact parameter estimated by the ZDC (ONLY in A-A)
109 Double32_t fZNACentrCoord[2]; // Coordinates of the centroid over ZNC
110 Double32_t fZNCCentrCoord[2]; // Coordinates of the centroid over ZNA
111 UInt_t fESDQuality; // flags from reconstruction
89291556 112 //
5f0ec064 113 ClassDef(AliESDZDC,10)
d5ebf00e 114};
115
116#endif
7b4458a2 117