1 #ifndef ALIMUONREALIGNTASK_H
2 #define ALIMUONREALIGNTASK_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 /// \class AliMUONReAlignTask
11 /// \brief Task to refit ESD tracks with relaigned geometry
13 // Author Javier Castillo, CEA/Saclay - Irfu/SPhN
18 class AliMUONClusterInfo;
19 class AliMUONESDInterface;
20 class AliMUONRefitter;
21 class AliMUONRecoParam;
22 class AliMUONGeoemetryTransformer;
26 #include "AliAnalysisTask.h"
28 class AliMUONReAlignTask : public AliAnalysisTask {
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();
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*);
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;}
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);
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
67 ClassDef(AliMUONReAlignTask, 1) // example of analysis