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 */
8 ///////////////////////////////////////////////////////////////////////////////
10 // class for ZDC reconstruction //
12 ///////////////////////////////////////////////////////////////////////////////
14 #include "AliReconstructor.h"
15 #include "AliCDBManager.h"
16 #include "AliCDBStorage.h"
17 #include "AliZDCPedestals.h"
18 #include "AliZDCCalib.h"
19 #include "AliZDCRecParam.h"
25 class AliZDCReconstructor: public AliReconstructor {
27 AliZDCReconstructor();
28 virtual ~AliZDCReconstructor();
30 virtual Bool_t HasDigitConversion() const {return kFALSE;};
32 virtual void Reconstruct(TTree* digitsTree, TTree* clustersTree) const;
33 virtual void Reconstruct(AliRawReader* rawReader, TTree* clustersTree) const;
35 virtual void FillESD(TTree* /*digitsTree*/, TTree* clustersTree, AliESDEvent* esd) const
36 {FillZDCintoESD(clustersTree,esd);}
37 virtual void FillESD(AliRawReader* /*rawReader*/, TTree* clustersTree, AliESDEvent* esd) const
38 {FillZDCintoESD(clustersTree,esd);}
40 AliCDBStorage *SetStorage(const char* uri);
41 AliZDCPedestals *GetPedData() const;
42 AliZDCCalib *GetECalibData() const;
43 AliZDCRecParam *GetRecParams() const;
46 AliZDCReconstructor(const AliZDCReconstructor&);
47 AliZDCReconstructor& operator =(const AliZDCReconstructor&);
49 void ReconstructEvent(TTree *clustersTree, Float_t* ZN1ADCCorrHG,
50 Float_t* ZP1ADCCorrHG, Float_t* ZN2ADCCorrHG,
51 Float_t* ZP2ADCCorrHG, Float_t* ZN1ADCCorrLG,
52 Float_t* ZP1ADCCorrLG, Float_t* ZN2ADCCorrLG,
53 Float_t* ZP2ADCCorrLG, Float_t ZEMADCCorrHG) const;
54 void FillZDCintoESD(TTree *clustersTree, AliESDEvent*esd) const;
56 TF1* fZNCen; //! Nspectator n true vs. EZN
57 TF1* fZNPer; //! Nspectator n true vs. EZN
58 TF1* fZPCen; //! Nspectator p true vs. EZP
59 TF1* fZPPer; //! Nspectator p true vs. EZP
60 TF1* fZDCCen; //! Nspectators true vs. EZDC
61 TF1* fZDCPer; //! Nspectators true vs. EZDC
62 TF1* fbCen; //! b vs. EZDC
63 TF1* fbPer; //! b vs. EZDC
64 TF1* fZEMn; //! Nspectators n from ZEM energy
65 TF1* fZEMp; //! Nspectators p from ZEM energy
66 TF1* fZEMsp; //! Nspectators from ZEM energy
67 TF1* fZEMb; //! b from ZEM energy
69 AliZDCPedestals *fPedData; //! pedestal calibration data
70 AliZDCCalib *fECalibData; //! energy and equalization calibration data
71 AliZDCRecParam *fRecParam; //! reconstruction parameters
73 ClassDef(AliZDCReconstructor, 3) // class for the ZDC reconstruction