]>
Commit | Line | Data |
---|---|---|
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 | |
20 | class TF1; | |
21 | class AliLoader; | |
22 | ||
8309c1ab | 23 | class AliZDCReconstructor: public AliReconstructor { |
24 | public: | |
25 | AliZDCReconstructor(); | |
26 | virtual ~AliZDCReconstructor(); | |
27 | ||
70f04f6d | 28 | virtual Bool_t HasDigitConversion() const {return kFALSE;}; |
29 | virtual Bool_t HasLocalReconstruction() const {return kTRUE;}; | |
30 | ||
31 | virtual void Reconstruct(TTree* digitsTree, TTree* clustersTree) const; | |
32 | virtual void Reconstruct(AliRawReader* rawReader, TTree* clustersTree) const; | |
33 | ||
34 | // Not used | |
35 | virtual void Reconstruct(AliRunLoader* /*runLoader*/) const | |
36 | { AliError("Method should not be used anymore !"); } | |
37 | virtual void Reconstruct(AliRunLoader* /*runLoader*/, | |
38 | AliRawReader* /*rawReader*/) const | |
39 | { AliError("Method should not be used anymore !"); } | |
40 | ||
41 | virtual void FillESD(TTree* /*digitsTree*/, TTree* clustersTree, AliESDEvent* esd) const | |
42 | {FillZDCintoESD(clustersTree,esd);} | |
43 | virtual void FillESD(AliRawReader* /*rawReader*/, TTree* clustersTree, AliESDEvent* esd) const | |
44 | {FillZDCintoESD(clustersTree,esd);} | |
48642b09 | 45 | |
70f04f6d | 46 | // Not used |
47 | virtual void FillESD(AliRunLoader* /*runLoader*/, AliESDEvent* /*esd*/) const | |
48 | { AliError("Method should not be used anymore !"); } | |
49 | virtual void FillESD(AliRunLoader* /*runLoader*/, | |
50 | AliRawReader* /*rawReader*/, AliESDEvent* /*esd*/) const | |
51 | { AliError("Method should not be used anymore !"); } | |
52 | ||
78d18275 | 53 | AliCDBStorage *SetStorage(const char* uri); |
4fda3ba1 | 54 | AliZDCCalibData *GetCalibData() const; |
8309c1ab | 55 | |
56 | private: | |
cc2abffd | 57 | AliZDCReconstructor(const AliZDCReconstructor&); |
58 | AliZDCReconstructor& operator =(const AliZDCReconstructor&); | |
8309c1ab | 59 | |
70f04f6d | 60 | void ReconstructEvent(TTree *clustersTree, Float_t zn1corr, Float_t zp1corr, Float_t zemcorr, |
980685f2 | 61 | Float_t zn2corr, Float_t zp2corr) const; |
70f04f6d | 62 | void FillZDCintoESD(TTree *clustersTree, AliESDEvent*esd) const; |
8309c1ab | 63 | |
64 | TF1* fZNCen; //! Nspectator n true vs. EZN | |
65 | TF1* fZNPer; //! Nspectator n true vs. EZN | |
66 | TF1* fZPCen; //! Nspectator p true vs. EZP | |
67 | TF1* fZPPer; //! Nspectator p true vs. EZP | |
68 | TF1* fZDCCen; //! Nspectators true vs. EZDC | |
69 | TF1* fZDCPer; //! Nspectators true vs. EZDC | |
70 | TF1* fbCen; //! b vs. EZDC | |
71 | TF1* fbPer; //! b vs. EZDC | |
72 | TF1* fZEMn; //! Nspectators n from ZEM energy | |
73 | TF1* fZEMp; //! Nspectators p from ZEM energy | |
74 | TF1* fZEMsp; //! Nspectators from ZEM energy | |
75 | TF1* fZEMb; //! b from ZEM energy | |
48642b09 | 76 | |
78d18275 | 77 | AliZDCCalibData *fCalibData; //! calibration data |
8309c1ab | 78 | |
48642b09 | 79 | ClassDef(AliZDCReconstructor, 1) // class for the ZDC reconstruction |
8309c1ab | 80 | }; |
81 | ||
82 | #endif |