]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ZDC/AliZDCReconstructor.h
added sample macros for TPC Conformal mapping tracker to be run embedded inside AliRo...
[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"
17#include "AliZDCCalibData.h"
70f04f6d 18#include "AliLog.h"
8309c1ab 19
20class TF1;
21class AliLoader;
22
8309c1ab 23class AliZDCReconstructor: public AliReconstructor {
24public:
25 AliZDCReconstructor();
26 virtual ~AliZDCReconstructor();
27
a4cab348 28 virtual Bool_t HasDigitConversion() const {return kFALSE;};
70f04f6d 29
30 virtual void Reconstruct(TTree* digitsTree, TTree* clustersTree) const;
31 virtual void Reconstruct(AliRawReader* rawReader, TTree* clustersTree) const;
32
70f04f6d 33 virtual void FillESD(TTree* /*digitsTree*/, TTree* clustersTree, AliESDEvent* esd) const
34 {FillZDCintoESD(clustersTree,esd);}
35 virtual void FillESD(AliRawReader* /*rawReader*/, TTree* clustersTree, AliESDEvent* esd) const
36 {FillZDCintoESD(clustersTree,esd);}
a4cab348 37
78d18275 38 AliCDBStorage *SetStorage(const char* uri);
4fda3ba1 39 AliZDCCalibData *GetCalibData() const;
646f1679 40
8309c1ab 41private:
cc2abffd 42 AliZDCReconstructor(const AliZDCReconstructor&);
43 AliZDCReconstructor& operator =(const AliZDCReconstructor&);
8309c1ab 44
646f1679 45 void ReconstructEvent(TTree *clustersTree, Float_t* ZN1ADCCorrHG,
46 Float_t* ZP1ADCCorrHG, Float_t* ZN2ADCCorrHG,
47 Float_t* ZP2ADCCorrHG, Float_t* ZN1ADCCorrLG,
48 Float_t* ZP1ADCCorrLG, Float_t* ZN2ADCCorrLG,
e6c385f0 49 Float_t* ZP2ADCCorrLG, Float_t ZEMADCCorrHG) const;
70f04f6d 50 void FillZDCintoESD(TTree *clustersTree, AliESDEvent*esd) const;
8309c1ab 51
52 TF1* fZNCen; //! Nspectator n true vs. EZN
53 TF1* fZNPer; //! Nspectator n true vs. EZN
54 TF1* fZPCen; //! Nspectator p true vs. EZP
55 TF1* fZPPer; //! Nspectator p true vs. EZP
56 TF1* fZDCCen; //! Nspectators true vs. EZDC
57 TF1* fZDCPer; //! Nspectators true vs. EZDC
58 TF1* fbCen; //! b vs. EZDC
59 TF1* fbPer; //! b vs. EZDC
60 TF1* fZEMn; //! Nspectators n from ZEM energy
61 TF1* fZEMp; //! Nspectators p from ZEM energy
62 TF1* fZEMsp; //! Nspectators from ZEM energy
63 TF1* fZEMb; //! b from ZEM energy
48642b09 64
78d18275 65 AliZDCCalibData *fCalibData; //! calibration data
8309c1ab 66
646f1679 67 ClassDef(AliZDCReconstructor, 2) // class for the ZDC reconstruction
8309c1ab 68};
69
70#endif