]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONAlignmentTask.h
All FMD corrections are now divided into the analysis + adding new corrections
[u/mrichter/AliRoot.git] / MUON / AliMUONAlignmentTask.h
1 #ifndef ALIMUONALIGNMENTTASK_H
2 #define ALIMUONALIGNMENTTASK_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 /// \ingroup calign
9 /// \class AliMUONAlignmentTask
10 /// \brief Task to align the muon spectrometer
11 ///
12 //  Author Javier Castillo, CEA/Saclay - Irfu/SPhN
13
14 class TList;
15 class TGraphErrors;
16 class AliESDEvent;
17 class AliMUONAlignment;
18 class AliMUONGeometryTransformer;
19
20 #include "AliAnalysisTask.h"
21
22 class AliMUONAlignmentTask : public AliAnalysisTask {
23  public:
24   //  AliMUONAlignmentTask(const char *name = "AliMUONAlignmentTask");
25   AliMUONAlignmentTask(const char *name = "AliMUONAlignmentTask", const char *geofilename = "geometry.root");
26   AliMUONAlignmentTask(const AliMUONAlignmentTask& obj);
27   AliMUONAlignmentTask& operator=(const AliMUONAlignmentTask& other); 
28   virtual ~AliMUONAlignmentTask();
29   
30   virtual void   LocalInit();
31   virtual void   ConnectInputData(Option_t *);
32   virtual void   CreateOutputObjects();
33   virtual void   Exec(Option_t *option);
34   virtual void   Terminate(const Option_t*);
35   
36  private:
37   AliESDEvent *fESD;                      //!< ESD object
38
39   AliMUONAlignment *fAlign;               ///< The MUON alignment object
40   TString fGeoFilename;                   ///< Geometry file name
41   AliMUONGeometryTransformer *fTransform; ///< MUON geometry transformer
42     
43   Int_t fTrackTot;             ///< Number of track read 
44   Int_t fTrackOk;              ///< Number of track read 
45
46   Double_t fParameters[4*156]; ///< Array of alignment parameters
47   Double_t fErrors[4*156];     ///< Array of alignment parameters errors
48   Double_t fPulls[4*156];      ///< Array of alignment parameters pulls
49
50   TGraphErrors *fMSDEx ;   ///< Graph of translations along x
51   TGraphErrors *fMSDEy ;   ///< Graph of translations along y
52   TGraphErrors *fMSDEz ;   ///< Graph of translations along z
53   TGraphErrors *fMSDEp;    ///< Graph of rotation about z 
54
55   TList   *fList;          ///< list of graphs
56    
57   ClassDef(AliMUONAlignmentTask, 1) // example of analysis
58 };
59
60 #endif
61