Minor bug fix: GetOutputDataTypes was calling the wrong const method internally.
[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"
7bff3766 19#include "AliZDCRecoParam.h"
20#include "AliZDCRecoParampp.h"
21#include "AliZDCRecoParamPbPb.h"
70f04f6d 22#include "AliLog.h"
8309c1ab 23
8309c1ab 24class AliLoader;
25
8309c1ab 26class AliZDCReconstructor: public AliReconstructor {
27public:
28 AliZDCReconstructor();
29 virtual ~AliZDCReconstructor();
30
a4cab348 31 virtual Bool_t HasDigitConversion() const {return kFALSE;};
70f04f6d 32
33 virtual void Reconstruct(TTree* digitsTree, TTree* clustersTree) const;
34 virtual void Reconstruct(AliRawReader* rawReader, TTree* clustersTree) const;
35
70f04f6d 36 virtual void FillESD(TTree* /*digitsTree*/, TTree* clustersTree, AliESDEvent* esd) const
37 {FillZDCintoESD(clustersTree,esd);}
38 virtual void FillESD(AliRawReader* /*rawReader*/, TTree* clustersTree, AliESDEvent* esd) const
39 {FillZDCintoESD(clustersTree,esd);}
a4cab348 40
7bff3766 41 // parameter settings for reconstruction
42 static void SetRecoParam(AliZDCRecoParam * param){fRecoParam = param;}
43 static const AliZDCRecoParam* GetRecoParam(){return fRecoParam;}
44
45 // OCDB objects for reconstruction
78d18275 46 AliCDBStorage *SetStorage(const char* uri);
6024ec85 47 AliZDCPedestals *GetPedData() const;
48 AliZDCCalib *GetECalibData() const;
646f1679 49
8309c1ab 50private:
cc2abffd 51 AliZDCReconstructor(const AliZDCReconstructor&);
52 AliZDCReconstructor& operator =(const AliZDCReconstructor&);
8309c1ab 53
7bff3766 54 void ReconstructEventpp(TTree *clustersTree,
55 Float_t* ZN1ADCCorr, Float_t* ZP1ADCCorr, Float_t* ZN2ADCCorr, Float_t* ZP2ADCCorr,
56 Float_t* ZEM1ADCCorr, Float_t* ZEM2ADCCorr, Float_t* PMRef1, Float_t* PMRef2) const;
57 void ReconstructEventPbPb(TTree *clustersTree,
c35ed519 58 Float_t* ZN1ADCCorr, Float_t* ZP1ADCCorr, Float_t* ZN2ADCCorr, Float_t* ZP2ADCCorr,
59 Float_t* ZEM1ADCCorr, Float_t* ZEM2ADCCorr, Float_t* PMRef1, Float_t* PMRef2) const;
70f04f6d 60 void FillZDCintoESD(TTree *clustersTree, AliESDEvent*esd) const;
8309c1ab 61
7bff3766 62 static AliZDCRecoParam *fRecoParam; // reconstruction parameters
63
6024ec85 64 AliZDCPedestals *fPedData; //! pedestal calibration data
65 AliZDCCalib *fECalibData; //! energy and equalization calibration data
8309c1ab 66
7bff3766 67 ClassDef(AliZDCReconstructor, 4) // class for the ZDC reconstruction
8309c1ab 68};
69
70#endif