Fix coverity defect
[u/mrichter/AliRoot.git] / MUON / AliMUONChamberCalibrationTask.h
CommitLineData
e4af7295 1#ifndef ALIMUONCHAMBERCALIBRATIONTASK_H
2#define ALIMUONCHAMBERCALIBRATIONTASK_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 AliMUONChamberCalibrationTask
11/// \brief Definition of the task to extract cluster information
f2deabf0 12/// from MCH tracks after applying the calibration on an aligned ESD
e4af7295 13/// \author Andry Rakotozafindrabe CEA/IRFU/SPhN
14
15class AliMUONRecoParam;
16class AliMUONClusterInfo;
17class AliMUONPadInfo;
18class AliMUONCalibrationData;
19class AliMUONESDInterface;
20class AliMUONVClusterStore;
21class AliMUONVDigitStore;
22class AliMUONTrack;
23
24class AliESDInputHandler;
25class AliESDEvent;
26
27#include "AliAnalysisTaskSE.h"
28#include "TTree.h"
7f56b767 29#include "TString.h"
e4af7295 30
31class AliMUONChamberCalibrationTask : public AliAnalysisTaskSE
32{
33
34 public:
35
c442ee61 36 /// enumerate the list of the available modes for the calibration
37 enum Calibration_t {
9ee1d6ff 38 kNOGAIN,
39 kGAINCONSTANTCAPA,
40 kGAIN,
41 kINJECTIONGAIN
c442ee61 42 };
e4af7295 43
44 // Constructors
45 AliMUONChamberCalibrationTask();
46 AliMUONChamberCalibrationTask( const char* name,
47 char* ocdbpath,
48 const Int_t my_calib_option );
49
50 // Destructor
51 virtual ~AliMUONChamberCalibrationTask();
52
53 // Implementation of interface methods
54 virtual void CreateOutputObjects();
55 virtual void LocalInit();
56 virtual void ConnectInputData( Option_t* option = "" );
57 virtual void Exec( Option_t* option = "" );
58 virtual void Terminate( Option_t* option = "" );
59
60 // Getters
c442ee61 61 /// Return TTree filled with the cluster information
e4af7295 62 TTree* OutputTree() { return fClusterInfoTree; }
63
64 UInt_t BuildClusterMap( AliMUONTrack &track );
65
66 private:
3ef13338 67 /// Not implemented
68 AliMUONChamberCalibrationTask(const AliMUONChamberCalibrationTask& right);
69 /// Not implemented
70 AliMUONChamberCalibrationTask& operator = (const AliMUONChamberCalibrationTask& right);
e4af7295 71
7f56b767 72 TString fOCDBPath; //!< default path to the condition database
f2deabf0 73 Calibration_t fCalibChoice; //!< calibration option
74 TTree* fClusterInfoTree; //!< TTree filled with the cluster information
75 AliMUONRecoParam* fMuonRecoParam; //!< reconstruction parameters for track refitting
76 AliMUONClusterInfo* fClusterInfo; //!< cluster info used to fill the output TTree
77 AliMUONCalibrationData* fCalibData; //!< needed to access to the calibration data for each pad within each cluster
78 AliMUONESDInterface* fESDInterface; //!< interface to easily access to the ESD content
7f56b767 79 AliMUONVDigitStore* fDigitStore; //!< pointer to the digit stored for the current input ESD event
e4af7295 80 AliESDInputHandler* fESDInputHandler; //!< ESD input handler
f2deabf0 81 AliESDEvent* fESDInputEvent; //!< pointer to the current input ESD event
e4af7295 82
f2deabf0 83 ClassDef( AliMUONChamberCalibrationTask, 1 ) // Task to extract cluster information after applying calibration
e4af7295 84
85};
86
87
88#endif