]>
Commit | Line | Data |
---|---|---|
8309c1ab | 1 | #ifndef ALIZDCRECONSTRUCTOR_H |
2 | #define ALIZDCRECONSTRUCTOR_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
58671297 | 8 | ///////////////////////////////////////////// |
9 | // // | |
10 | // class for ZDC reconstruction // | |
11 | // // | |
12 | ///////////////////////////////////////////// | |
8309c1ab | 13 | |
14 | #include "AliReconstructor.h" | |
7bff3766 | 15 | #include "AliZDCRecoParam.h" |
8309c1ab | 16 | |
90936733 | 17 | class AliCDBManager; |
18 | class AliCDBStorage; | |
19 | class AliZDCPedestals; | |
20 | class AliZDCEnCalib; | |
21 | class AliZDCTowerCalib; | |
22 | class AliZDCMBCalib; | |
23 | class AliZDCRecoParampp; | |
24 | class AliZDCRecoParamPbPb; | |
25 | class AliLog; | |
8309c1ab | 26 | class AliLoader; |
27 | ||
8309c1ab | 28 | class AliZDCReconstructor: public AliReconstructor { |
29 | public: | |
30 | AliZDCReconstructor(); | |
31 | virtual ~AliZDCReconstructor(); | |
32 | ||
73bc3a3f | 33 | virtual void Init(); |
a4cab348 | 34 | virtual Bool_t HasDigitConversion() const {return kFALSE;}; |
73bc3a3f | 35 | |
90936733 | 36 | virtual void Reconstruct(TTree*digitsTree, TTree* clustersTree) const; |
1e319f71 | 37 | virtual void Reconstruct(AliRawReader* rawReader, TTree* clustersTree) const; |
70f04f6d | 38 | |
90936733 | 39 | virtual void FillESD(TTree* /*digitsTree*/, TTree* clustersTree, |
40 | AliESDEvent* esd) const {FillZDCintoESD(clustersTree, esd);} | |
41 | virtual void FillESD(AliRawReader* /*rawReader*/, TTree* clustersTree, | |
42 | AliESDEvent* esd) const {FillZDCintoESD(clustersTree, esd);} | |
73bc3a3f | 43 | |
7bff3766 | 44 | // parameter settings for reconstruction |
03be9e4f | 45 | void SetRecoMode(Int_t recoMode, Float_t beamEnergy) |
90936733 | 46 | {fRecoMode=recoMode; fBeamEnergy=beamEnergy;} |
47 | static void SetRecoParam(AliZDCRecoParam * const param) | |
48 | {fgRecoParam = param;} | |
fd9afd60 | 49 | |
90936733 | 50 | Int_t GetRecoMode() const {return fRecoMode;} |
51 | Float_t GetBeamEnergy() const {return fBeamEnergy;} | |
42d8b8d5 | 52 | |
90936733 | 53 | static const AliZDCRecoParam* GetRecoParam() |
54 | {return dynamic_cast<const AliZDCRecoParam*>(AliReconstructor::GetRecoParam(9));} | |
81f09162 | 55 | |
42d8b8d5 | 56 | void SetPedSubMode(Int_t pedsubMode) {fPedSubMode=pedsubMode;} |
90936733 | 57 | Int_t GetPedSubMode() const {return fPedSubMode;} |
7bff3766 | 58 | |
58671297 | 59 | void SetSignalThreshold(Float_t val) {fSignalThreshold=val;} |
90936733 | 60 | Float_t GetSignalThreshold() const {return fSignalThreshold;} |
58671297 | 61 | |
7bff3766 | 62 | // OCDB objects for reconstruction |
1e319f71 | 63 | AliCDBStorage *SetStorage(const char* uri); |
64 | AliZDCPedestals *GetPedestalData() const; | |
65 | AliZDCEnCalib *GetEnergyCalibData() const; | |
66 | AliZDCTowerCalib *GetTowerCalibData() const; | |
0d579f58 | 67 | AliZDCMBCalib *GetMBCalibData() const; |
73bc3a3f | 68 | AliZDCRecoParampp *GetppRecoParamFromOCDB() const; |
69 | AliZDCRecoParamPbPb *GetPbPbRecoParamFromOCDB() const; | |
646f1679 | 70 | |
8309c1ab | 71 | private: |
3abc001d | 72 | AliZDCReconstructor(const AliZDCReconstructor&); //Not implemented |
73 | AliZDCReconstructor& operator =(const AliZDCReconstructor&); //Not implemented | |
8309c1ab | 74 | |
7bff3766 | 75 | void ReconstructEventpp(TTree *clustersTree, |
90936733 | 76 | const Float_t* const corrADCZN1, const Float_t* const corrADCZP1, |
77 | const Float_t* const corrADCZN2, const Float_t* const corrADCZP2, | |
78 | const Float_t* const corrADCZEM1, const Float_t* const corrADCZEM2, | |
79 | Float_t* sPMRef1, Float_t* sPMRef2, Bool_t isScalerOn, UInt_t* scaler, | |
80 | const Int_t* const evQualityBlock, const Int_t* const triggerBlock, | |
81 | const Int_t* const chBlock, UInt_t puBits) const; | |
7bff3766 | 82 | void ReconstructEventPbPb(TTree *clustersTree, |
90936733 | 83 | const Float_t* const corrADCZN1, const Float_t* const corrADCZP1, |
84 | const Float_t* const corrADCZN2, const Float_t* const corrADCZP2, | |
85 | const Float_t* const corrADCZEM1, const Float_t* const corrADCZEM2, | |
86 | Float_t* sPMRef1, Float_t* sPMRef2, Bool_t isScalerOn, UInt_t* scaler, | |
87 | const Int_t* const evQualityBlock, const Int_t* const triggerBlock, | |
88 | const Int_t* const chBlock, UInt_t puBits) const; | |
1e319f71 | 89 | |
73bc3a3f | 90 | void FillZDCintoESD(TTree *clustersTree, AliESDEvent*esd) const; |
7bff3766 | 91 | |
90936733 | 92 | static AliZDCRecoParam *fgRecoParam; // reconstruction parameters |
42d8b8d5 | 93 | |
90936733 | 94 | static AliZDCMBCalib *fgMBCalibData; //! mb calibration data |
91debfd4 | 95 | AliZDCPedestals *fPedData; //! pedestal calibration data |
96 | AliZDCEnCalib *fEnCalibData; //! energy calibration data | |
97 | AliZDCTowerCalib *fTowCalibData; //! equalization calibration data | |
73bc3a3f | 98 | |
99 | Int_t fRecoMode; // =1->p-p, =2->A-A | |
100 | Float_t fBeamEnergy; // beam energy | |
101 | Int_t fNRun; // Run Number (from raw data) | |
102 | Bool_t fIsCalibrationMB; // true if run type = "CALIBRATION_MB" | |
103 | Int_t fPedSubMode; // =0->mean values, =1->from correlations | |
58671297 | 104 | Float_t fSignalThreshold; // Threshold value for "triggering" in p-p |
73bc3a3f | 105 | |
0d579f58 | 106 | ClassDef(AliZDCReconstructor, 10) // class for the ZDC reconstruction |
8309c1ab | 107 | }; |
108 | ||
109 | #endif |