1 #ifndef ALIANALYSISTASKMUONTRACKINGEFF_H
2 #define ALIANALYSISTASKMUONTRACKINGEFF_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
7 /// \class AliAnalysisTaskMuonTrackingEff
8 /// \brief tracking chamber efficiency from ESD data
9 //Author: Nicolas LE BRIS - SUBATECH Nantes
11 #include "AliAnalysisTask.h"
13 class AliCheckMuonDetEltResponse;
14 class AliMUONGeometryTransformer;
19 class AliAnalysisTaskMuonTrackingEff : public AliAnalysisTask
22 AliAnalysisTaskMuonTrackingEff();
23 AliAnalysisTaskMuonTrackingEff(const AliAnalysisTaskMuonTrackingEff& rhs);
24 AliAnalysisTaskMuonTrackingEff& operator=(const AliAnalysisTaskMuonTrackingEff&);
25 AliAnalysisTaskMuonTrackingEff(TString name, TString path = "alien://folder=/alice/data/2010/OCDB");
26 virtual ~AliAnalysisTaskMuonTrackingEff();
28 // Implementation of interface methods
29 virtual void ConnectInputData(Option_t *option = "");
30 virtual void CreateOutputObjects();
31 virtual void Exec(Option_t *option);
32 virtual void Terminate(Option_t *option);
35 Bool_t fIsInit; //!< Determine if the object has been initialized
36 Bool_t fIsLoaded; //!< Determine if the OCDB and =geometry have been loaded
37 TString fOCDBpath; //!< OCDB path
38 Int_t fUsableTracks; //!< Number of usable tracks
40 AliESDEvent * fESD; //< ESD object
41 AliMUONGeometryTransformer *fTransformer; //< Transformer object
43 static const Int_t fgkTotNbrOfDetectionElt; //< The total number of detection element in the tracking system.
44 static const Int_t fgkTotNbrOfChamber; //< The total number of tracking chambers in the muon spectrometer
46 TList* fDetEltTDHistList; //< List of histograms of the tracks detected in the detection elements.
47 TList* fDetEltTTHistList; //< List of histograms of the tracks which have passed through the detection elements.
48 TList* fChamberTDHistList; //< List of histograms of the tracks detected in the chambers.
49 TList* fChamberTTHistList; //< List of histograms of the tracks which have passed through the chambers.
51 AliCheckMuonDetEltResponse* fChamberEff; //< Class computing the efficiency
53 void Init(); // Initialize the object
54 void LoadOCDBandGeometry(); // Load the OCDB and the geometry
56 ClassDef(AliAnalysisTaskMuonTrackingEff, 1)