]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONReAlignTask.h
Removing the tasks from the digitization (Ruben)
[u/mrichter/AliRoot.git] / MUON / AliMUONReAlignTask.h
1 #ifndef ALIMUONREALIGNTASK_H
2 #define ALIMUONREALIGNTASK_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice                               */
6
7 // $Id$
8
9 /// \ingroup calign
10 /// \class AliMUONReAlignTask
11 /// \brief Task to refit ESD tracks with relaigned geometry
12 ///
13 //  Author Javier Castillo, CEA/Saclay - Irfu/SPhN
14
15 class TTree;
16 class TString;
17 class AliESDEvent;
18 class AliMUONClusterInfo;
19 class AliMUONESDInterface;
20 class AliMUONRefitter;
21 class AliMUONRecoParam;
22 class AliMUONGeometryTransformer;
23 class AliMUONVStore;
24 class AliMUONTrack;
25
26 #include "AliAnalysisTask.h"
27
28 class AliMUONReAlignTask : public AliAnalysisTask {
29  public:
30   AliMUONReAlignTask(const char *name = "AliMUONReAlignTask", const char *geofilename = "geometry.root", const char *defaultocdb = "local://$ALICE_ROOT/OCDB", const char *misalignocdb = "local://ReAlignOCDB");
31   AliMUONReAlignTask(const AliMUONReAlignTask& obj);
32   AliMUONReAlignTask& operator=(const AliMUONReAlignTask& other); 
33   virtual ~AliMUONReAlignTask();
34   
35   virtual void   LocalInit();
36   virtual void   ConnectInputData(Option_t *);
37   virtual void   CreateOutputObjects();
38   virtual void   Exec(Option_t *option);
39   virtual void   Terminate(const Option_t*);
40
41   /// Set geoemetry file name
42   void SetGeoFilename(const char* geoFilename) {fGeoFilename = geoFilename;}
43   /// Set mis align ocdb
44   void SetMisAlignOCDB(const char* misalignOCDB) {fMisAlignOCDB = misalignOCDB;}
45   /// Set default ocdb
46   void SetDefaultOCDB(const char* defaultOCDB) {fDefaultOCDB = defaultOCDB;}
47   void Prepare(const char* geoFilename, const char* defaultOCDB, const char* misalignOCDB);
48   UInt_t BuildClusterMap(AliMUONTrack &track);
49
50  private:
51   AliESDEvent *fESD;                  ///< ESD object
52   TTree *fClusterInfoTree;            ///< ClusterInfo tree 
53   AliMUONClusterInfo *fClusterInfo;   ///< ClusterInfo object
54   AliMUONESDInterface *fESDInterface; //!< MUONESDInterface
55   AliMUONRefitter  *fRefitter;        //!< The refitter class 
56   AliMUONRecoParam *fRecoParam;       //!< Parameters for reconstruction
57   TString fGeoFilename;               ///< Geometry file name
58   TString fMisAlignOCDB;              ///< OCDB with misalignment file
59   TString fDefaultOCDB;               ///< Default OCDB
60   AliMUONGeometryTransformer *fGeoTransformer;    //!< Original geometry
61   AliMUONGeometryTransformer *fNewGeoTransformer; //!< Aligned geometry
62   AliMUONVStore *fGainStore; ///< Store for gains
63   AliMUONVStore *fPedStore;  ///< Store for pedestals
64   Int_t fPrintLevel;         //!< Print information
65   Int_t fLastRun;            //!< Last run number
66
67   ClassDef(AliMUONReAlignTask, 1) // example of analysis
68 };
69
70 #endif
71