]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG3/muondep/AliAnalysisTaskMuonTrackingEff.h
Added fit macro from M. Putis
[u/mrichter/AliRoot.git] / PWG3 / muondep / AliAnalysisTaskMuonTrackingEff.h
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                               */
5
6 /// \ingroup base
7 /// \class AliAnalysisTaskMuonTrackingEff
8 /// \brief tracking chamber efficiency from ESD data
9 //Author: Nicolas LE BRIS - SUBATECH Nantes
10
11 #include "AliAnalysisTask.h"
12
13 class AliCheckMuonDetEltResponse;
14 class AliMUONGeometryTransformer;
15 class AliESDEvent;
16 class TList;
17 class TString;
18
19 class AliAnalysisTaskMuonTrackingEff : public AliAnalysisTask
20 {
21  public:
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();
27
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);
33
34  private:
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
39
40   AliESDEvent * fESD;                             //< ESD object
41   AliMUONGeometryTransformer *fTransformer;       //< Transformer object
42
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
45
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.
50
51   AliCheckMuonDetEltResponse* fChamberEff;  //< Class computing the efficiency
52
53   void Init();                                 // Initialize the object  
54   void LoadOCDBandGeometry();                  // Load the OCDB and the geometry
55
56   ClassDef(AliAnalysisTaskMuonTrackingEff, 1)
57 };
58
59 #endif