]> git.uio.no Git - u/mrichter/AliRoot.git/blob - T0/AliT0Reconstructor.h
protection if aplitude calibration for some PMT does not exist
[u/mrichter/AliRoot.git] / T0 / AliT0Reconstructor.h
1 #ifndef ALIT0RECONSTRUCTOR_H
2 #define ALIT0RECONSTRUCTOR_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  * header class T0 reconstruction 
9  * Alla Maevskaya INR RAS alla@inr.ru      *
10  * Alla.Maevskaya@cern.ch
11  *******************************************************************/
12
13 #include "AliReconstructor.h"
14 #include "AliT0Parameters.h"
15 #include "AliT0Calibrator.h"
16 #include "AliT0RecoParam.h"
17 #include "AliESDTZEROfriend.h"
18 #include "AliESDTZERO.h"
19
20 class AliT0Reconstructor: public AliReconstructor {
21  public:
22   AliT0Reconstructor();
23   virtual ~AliT0Reconstructor() {};
24
25   virtual  void   Reconstruct(TTree* fdigits, TTree * frecpoints) const;
26   virtual  void   Reconstruct(AliRawReader*rawReader , TTree* recTree) const;
27   
28   virtual void     FillESD( AliRawReader*/*rawReader*/,  TTree*clustersTree, AliESDEvent*esd ) const
29   {FillESD((TTree*)NULL,clustersTree,esd);}
30   virtual void     FillESD( TTree* digitsTree,  TTree*clustersTree, AliESDEvent*esd ) const;
31
32   virtual Bool_t   HasDigitConversion() const {return kFALSE;}
33   static const AliT0RecoParam* GetRecoParam()
34     { return dynamic_cast<const AliT0RecoParam*>(AliReconstructor::GetRecoParam(11)); } // getting RecoParam obj
35    
36  
37  protected:
38   Float_t             fdZonA;             // Zideal - Zreal side A 
39   Float_t             fdZonC;             // Zideal - Zreal side C
40   Float_t             fZposition;        // vertex position
41   Float_t             fTime0vertex[24];  // time position if Zvertex=0
42   AliT0Parameters     *fParam;           //pointer to T0 parameters class     
43   TObjArray           fAmpLEDrec;        // amp LED-CFD 
44   TObjArray           fQTC;        // QTC vs #MIPs
45   TObjArray           fAmpLED;        // LED-CFD vs #MIPs
46   AliT0Calibrator     *fCalib;           //pointer to T0 Calibrator     
47   Float_t fLatencyHPTDC;  //latency HPTDC
48   Float_t fLatencyL1;     //  latency for (T0A+T0C)/2
49   Float_t fLatencyL1A;    // latency for T0A
50   Float_t fLatencyL1C;    //latency for T0C
51   Float_t fGRPdelays;    //latency for T0C
52   Float_t *fTimeMeanShift;
53   Float_t *fTimeSigmaShift;
54
55   AliESDTZEROfriend*  fESDTZEROfriend; // ESD friend object 
56   AliESDTZERO*        fESDTZERO;       // ESD output object  
57  
58  private:
59   AliT0Reconstructor( const AliT0Reconstructor&r ); //Not implemented
60   AliT0Reconstructor& operator=(const AliT0Reconstructor&r); //Not implemented
61
62   ClassDef(AliT0Reconstructor, 8)   // class for the T0 reconstruction
63
64 };
65
66 typedef AliT0Reconstructor AliSTARTReconstructor; // for backward compatibility
67
68 #endif