]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ZDC/AliZDCReco.h
adding task for subtracting background after jet finding, used for all clustering...
[u/mrichter/AliRoot.git] / ZDC / AliZDCReco.h
CommitLineData
1450a7cd 1#ifndef ALIZDCRECO_H
2#define ALIZDCRECO_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6////////////////////////////////////////////////
7// Classe for ZDC RecPoints //
8////////////////////////////////////////////////
9
10#include "TObject.h"
11
12class AliZDCReco : public TObject {
13
14public:
cc2abffd 15 AliZDCReco();
c35ed519 16 AliZDCReco(Float_t* ezn1, Float_t* ezp1, Float_t* ezn2, Float_t* ezp2,
17 Float_t* ezn1tow, Float_t* ezp1tow, Float_t* ezn2tow, Float_t* ezp2tow,
18 Float_t* ezem1, Float_t* ezem2, Float_t* ref1, Float_t* ref2,
646f1679 19 //
73bc3a3f 20 Int_t detspnSideA, Int_t detsppSideA,
21 Int_t detspnSideC, Int_t detsppSideC,
22 Int_t trsp, Int_t trspSideA, Int_t trspSideC,
23 Int_t npart, Int_t npartSideA, Int_t npartSideC,
1e319f71 24 Float_t b, Float_t bSideA, Float_t bSideC,
f53e5ecb 25 UInt_t recoFlag, Bool_t scalerOn, UInt_t* scaler, Int_t tdcData[32][4]);
646f1679 26
cc2abffd 27 AliZDCReco(const AliZDCReco &oldreco);
1450a7cd 28 virtual ~AliZDCReco() {}
29
30 // Getters
c35ed519 31 virtual Float_t GetZN1HREnergy() const {return fZN1Energy[0];}
32 virtual Float_t GetZP1HREnergy() const {return fZP1Energy[0];}
33 virtual Float_t GetZN2HREnergy() const {return fZN2Energy[0];}
34 virtual Float_t GetZP2HREnergy() const {return fZP2Energy[0];}
646f1679 35 //
c35ed519 36 virtual Float_t GetZN1LREnergy() const {return fZN1Energy[1];}
37 virtual Float_t GetZP1LREnergy() const {return fZP1Energy[1];}
38 virtual Float_t GetZN2LREnergy() const {return fZN2Energy[1];}
39 virtual Float_t GetZP2LREnergy() const {return fZP2Energy[1];}
646f1679 40 //
c35ed519 41 virtual Float_t GetZN1HREnTow(Int_t tow) const {return fZN1EnTow[tow];}
42 virtual Float_t GetZP1HREnTow(Int_t tow) const {return fZP1EnTow[tow];}
43 virtual Float_t GetZN2HREnTow(Int_t tow) const {return fZN2EnTow[tow];}
44 virtual Float_t GetZP2HREnTow(Int_t tow) const {return fZP2EnTow[tow];}
84d6255e 45 //
c35ed519 46 virtual Float_t GetZN1LREnTow(Int_t tow) const {return fZN1EnTow[tow+5];}
47 virtual Float_t GetZP1LREnTow(Int_t tow) const {return fZP1EnTow[tow+5];}
48 virtual Float_t GetZN2LREnTow(Int_t tow) const {return fZN2EnTow[tow+5];}
49 virtual Float_t GetZP2LREnTow(Int_t tow) const {return fZP2EnTow[tow+5];}
50 //
51 virtual Float_t GetZEM1HRsignal() const {return fZEM1signal[0];}
52 virtual Float_t GetZEM1LRsignal() const {return fZEM1signal[1];}
53 virtual Float_t GetZEM2HRsignal() const {return fZEM2signal[0];}
54 virtual Float_t GetZEM2LRsignal() const {return fZEM2signal[1];}
55 //
56 virtual Float_t GetPMRef1HRsignal() const {return fZEM1signal[0];}
57 virtual Float_t GetPMRef1LRsignal() const {return fZEM1signal[1];}
58 virtual Float_t GetPMRef2HRsignal() const {return fZEM2signal[0];}
59 virtual Float_t GetPMRef2LRsignal() const {return fZEM2signal[1];}
646f1679 60 //
73bc3a3f 61 virtual Int_t GetNDetSpecNSideA() const {return fNDetSpecNSideA;}
62 virtual Int_t GetNDetSpecPSideA() const {return fNDetSpecPSideA;}
63 virtual Int_t GetNDetSpecNSideC() const {return fNDetSpecNSideC;}
64 virtual Int_t GetNDetSpecPSideC() const {return fNDetSpecPSideC;}
65 virtual Int_t GetNTrueSpectators() const {return fNTrueSpectators;}
66 virtual Int_t GetNTrueSpecSideA() const {return fNTrueSpecSideA;}
67 virtual Int_t GetNTrueSpecSideC() const {return fNTrueSpecSideC;}
68 virtual Int_t GetNParticipants() const {return fNParticipants;}
69 virtual Int_t GetNPartSideA() const {return fNPartSideA;}
70 virtual Int_t GetNPartSideC() const {return fNPartSideC;}
71 virtual Float_t GetImpParameter() const {return fImpParameter;}
72 virtual Float_t GetImpParSideA() const {return fImpParSideA;}
73 virtual Float_t GetImpParSideC() const {return fImpParSideC;}
1e319f71 74 //
75 virtual UInt_t GetRecoFlag() const {return fRecoFlag;}
76 virtual UInt_t GetZDCPattern() const {return (fRecoFlag & 0x0000003f);}
77 virtual UInt_t GetChOnFlag() const {return (fRecoFlag & 0x00000100);}
78 virtual UInt_t GetChOvflwFlag() const {return (fRecoFlag & 0x00000200);}
79 virtual UInt_t GetChUndflwFlag() const {return (fRecoFlag & 0x00000400);}
81f09162 80 //
81 virtual Bool_t IsScalerOn() const {return fIsScalerOn;}
82 virtual UInt_t GetZDCScaler(Int_t k) const {return fZDCScaler[k];}
82dffa48 83 //
f53e5ecb 84 virtual Int_t GetZDCTDCData(Int_t j, Int_t k) const {return fZDCTDCData[j][k];}
1450a7cd 85
93f80a6f 86 // Print method
87 virtual void Print(Option_t *) const;
88
89private:
1450a7cd 90 // Data members
4e1fc320 91 Float_t fZN1Energy[2]; // Energy detected in ZN1 (sum of 5 tower signals)
92 Float_t fZP1Energy[2]; // Energy detected in ZP1 (sum of 5 tower signals)
93 Float_t fZN2Energy[2]; // Energy detected in ZN2 (sum of 5 tower signals)
94 Float_t fZP2Energy[2]; // Energy detected in ZP2 (sum of 5 tower signals)
646f1679 95 //
c35ed519 96 Float_t fZN1EnTow[10]; // Energy in ZN1 towers
97 Float_t fZP1EnTow[10]; // Energy in ZP1 towers
98 Float_t fZN2EnTow[10]; // Energy in ZN2 towers
99 Float_t fZP2EnTow[10]; // Energy in ZP2 towers
646f1679 100 //
c35ed519 101 Float_t fZEM1signal[2];// Signal in EM1 ZDC
102 Float_t fZEM2signal[2];// Signal in EM2 ZDC
84d6255e 103 //
c35ed519 104 Float_t fPMRef1[2]; // Reference PM side C
105 Float_t fPMRef2[2]; // Reference PM side A
646f1679 106 //
73bc3a3f 107 Int_t fNDetSpecNSideA; // Number of spectator neutrons detected
108 Int_t fNDetSpecPSideA; // Number of spectator protons detected
109 Int_t fNDetSpecNSideC; // Number of spectator neutrons detected
110 Int_t fNDetSpecPSideC; // Number of spectator protons detected
111 Int_t fNTrueSpectators;// Estimate of the total number of spectators
112 Int_t fNTrueSpecSideA; // Estimate of the number of spectators side A
113 Int_t fNTrueSpecSideC; // Estimate of the number of spectators side C
114 Int_t fNParticipants; // Estimate of the total number of participants
115 Int_t fNPartSideA; // Estimate of the number of participants side A
116 Int_t fNPartSideC; // Estimate of the number of participants side C
117 Float_t fImpParameter; // Estimate of the impact parameter
118 Float_t fImpParSideA; // Estimate of the impact parameter side A
119 Float_t fImpParSideC; // Estimate of the impact parameter side B
1e319f71 120 //
121 UInt_t fRecoFlag; // Reconstruction flag
81f09162 122 Bool_t fIsScalerOn; // True if scaler has been read in the event
123 UInt_t fZDCScaler[32]; // Counts from ZDC VME scaler
82dffa48 124 //
f53e5ecb 125 Int_t fZDCTDCData[32][4]; // TDC data raw
1450a7cd 126
f53e5ecb 127 ClassDef(AliZDCReco,12) // RecPoints for the Zero Degree Calorimeters
1450a7cd 128};
129
130#endif