Updated run validity
[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"
8309c1ab 18
19class TF1;
20class AliLoader;
21
8309c1ab 22class AliZDCReconstructor: public AliReconstructor {
23public:
24 AliZDCReconstructor();
25 virtual ~AliZDCReconstructor();
26
cc2abffd 27 virtual void Reconstruct(AliRunLoader* runLoader) const;
28 virtual void Reconstruct(AliRunLoader* runLoader,
29 AliRawReader* rawReader) const;
30 virtual void Reconstruct(TTree* digitsTree, TTree* clustersTree) const
31 {AliReconstructor::Reconstruct(digitsTree,clustersTree);}
32 virtual void Reconstruct(AliRawReader* rawReader, TTree* clustersTree) const
33 {AliReconstructor::Reconstruct(rawReader,clustersTree);}
af885e0f 34 virtual void FillESD(AliRunLoader* runLoader, AliESDEvent* esd) const;
35 virtual void FillESD(TTree* digitsTree, TTree* clustersTree, AliESDEvent* esd) const
cc2abffd 36 {AliReconstructor::FillESD(digitsTree,clustersTree,esd);}
af885e0f 37 virtual void FillESD(AliRawReader* rawReader, TTree* clustersTree, AliESDEvent* esd) const
cc2abffd 38 {AliReconstructor::FillESD(rawReader,clustersTree,esd);}
af885e0f 39 virtual void FillESD(AliRunLoader* runLoader, AliRawReader* rawReader, AliESDEvent* esd) const
48642b09 40 {AliReconstructor::FillESD(runLoader,rawReader,esd);}
41
78d18275 42 AliCDBStorage *SetStorage(const char* uri);
4fda3ba1 43 AliZDCCalibData *GetCalibData() const;
8309c1ab 44
45private:
cc2abffd 46 AliZDCReconstructor(const AliZDCReconstructor&);
47 AliZDCReconstructor& operator =(const AliZDCReconstructor&);
8309c1ab 48
980685f2 49 void ReconstructEvent(AliLoader* loader, Float_t zn1corr, Float_t zp1corr, Float_t zemcorr,
50 Float_t zn2corr, Float_t zp2corr) 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
48642b09 67 ClassDef(AliZDCReconstructor, 1) // class for the ZDC reconstruction
8309c1ab 68};
69
70#endif