]> git.uio.no Git - u/mrichter/AliRoot.git/blob - T0/AliT0Reconstructor.h
update EMCal EP v2
[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   Bool_t  PileupFlag() const;
38   Bool_t  BackgroundFlag() const;
39   Bool_t  SatelliteFlag() const;
40   //!!!!!!!!!!!!!!!!!!!!!!!
41  
42  protected:
43   Float_t             fdZonA;             // Zideal - Zreal side A 
44   Float_t             fdZonC;             // Zideal - Zreal side C
45   Float_t             fZposition;        // vertex position
46   Float_t             fTime0vertex[24];  // time position if Zvertex=0
47   AliT0Parameters     *fParam;           //pointer to T0 parameters class     
48   TObjArray           fAmpLEDrec;        // amp LED-CFD 
49   TObjArray           fQTC;        // QTC vs #MIPs
50   TObjArray           fAmpLED;        // LED-CFD vs #MIPs
51   AliT0Calibrator     *fCalib;           //pointer to T0 Calibrator     
52   Float_t fLatencyHPTDC;  //latency HPTDC
53   Float_t fLatencyL1;     //  latency for (T0A+T0C)/2
54   Float_t fLatencyL1A;    // latency for T0A
55   Float_t fLatencyL1C;    //latency for T0C
56   Float_t fGRPdelays;    //latency for T0C
57   Float_t *fTimeMeanShift;
58   Float_t *fTimeSigmaShift;
59
60   AliESDTZEROfriend*  fESDTZEROfriend; // ESD friend object 
61   AliESDTZERO*        fESDTZERO;       // ESD output object  
62  
63  private:
64   AliT0Reconstructor( const AliT0Reconstructor&r ); //Not implemented
65   AliT0Reconstructor& operator=(const AliT0Reconstructor&r); //Not implemented
66
67   ClassDef(AliT0Reconstructor, 8)   // class for the T0 reconstruction
68
69 };
70
71 typedef AliT0Reconstructor AliSTARTReconstructor; // for backward compatibility
72
73 #endif