Improved alignment awareness in AliITStrackerMI (A. Dainese)
[u/mrichter/AliRoot.git] / ZDC / AliZDCReconstructor.h
CommitLineData
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
8///////////////////////////////////////////////////////////////////////////////
9// //
10// class for ZDC reconstruction //
11// //
12///////////////////////////////////////////////////////////////////////////////
13
14#include "AliReconstructor.h"
48642b09 15#include "AliCDBManager.h"
16#include "AliCDBStorage.h"
6024ec85 17#include "AliZDCPedestals.h"
18#include "AliZDCCalib.h"
19#include "AliZDCRecParam.h"
70f04f6d 20#include "AliLog.h"
8309c1ab 21
22class TF1;
23class AliLoader;
24
8309c1ab 25class AliZDCReconstructor: public AliReconstructor {
26public:
27 AliZDCReconstructor();
28 virtual ~AliZDCReconstructor();
29
a4cab348 30 virtual Bool_t HasDigitConversion() const {return kFALSE;};
70f04f6d 31
32 virtual void Reconstruct(TTree* digitsTree, TTree* clustersTree) const;
33 virtual void Reconstruct(AliRawReader* rawReader, TTree* clustersTree) const;
34
70f04f6d 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);}
a4cab348 39
78d18275 40 AliCDBStorage *SetStorage(const char* uri);
6024ec85 41 AliZDCPedestals *GetPedData() const;
42 AliZDCCalib *GetECalibData() const;
43 AliZDCRecParam *GetRecParams() const;
646f1679 44
8309c1ab 45private:
cc2abffd 46 AliZDCReconstructor(const AliZDCReconstructor&);
47 AliZDCReconstructor& operator =(const AliZDCReconstructor&);
8309c1ab 48
c35ed519 49 void ReconstructEvent(TTree *clustersTree,
50 Float_t* ZN1ADCCorr, Float_t* ZP1ADCCorr, Float_t* ZN2ADCCorr, Float_t* ZP2ADCCorr,
51 Float_t* ZEM1ADCCorr, Float_t* ZEM2ADCCorr, Float_t* PMRef1, Float_t* PMRef2) const;
70f04f6d 52 void FillZDCintoESD(TTree *clustersTree, AliESDEvent*esd) const;
8309c1ab 53
54 TF1* fZNCen; //! Nspectator n true vs. EZN
55 TF1* fZNPer; //! Nspectator n true vs. EZN
56 TF1* fZPCen; //! Nspectator p true vs. EZP
57 TF1* fZPPer; //! Nspectator p true vs. EZP
58 TF1* fZDCCen; //! Nspectators true vs. EZDC
59 TF1* fZDCPer; //! Nspectators true vs. EZDC
60 TF1* fbCen; //! b vs. EZDC
61 TF1* fbPer; //! b vs. EZDC
62 TF1* fZEMn; //! Nspectators n from ZEM energy
63 TF1* fZEMp; //! Nspectators p from ZEM energy
64 TF1* fZEMsp; //! Nspectators from ZEM energy
65 TF1* fZEMb; //! b from ZEM energy
48642b09 66
6024ec85 67 AliZDCPedestals *fPedData; //! pedestal calibration data
68 AliZDCCalib *fECalibData; //! energy and equalization calibration data
69 AliZDCRecParam *fRecParam; //! reconstruction parameters
8309c1ab 70
6024ec85 71 ClassDef(AliZDCReconstructor, 3) // class for the ZDC reconstruction
8309c1ab 72};
73
74#endif