Fixing a bug in the computation of the errors (Matthieu)
[u/mrichter/AliRoot.git] / PWG3 / muondep / AliAnalysisTaskMuonTrackingEff.h
CommitLineData
128a8042 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 data
9//Author: Nicolas LE BRIS - SUBATECH Nantes
10
11
12#include "AliAnalysisTask.h"
13#include "AliMUONGeometryTransformer.h"
6db6876c 14
15#include "AliCheckMuonDetEltResponse.h"
16
128a8042 17class AliESDEvent;
18class TClonesArray;
19class TH2F;
20
21class AliAnalysisTaskMuonTrackingEff : public AliAnalysisTask
22{
23 public:
24 AliAnalysisTaskMuonTrackingEff();
665701ae 25 AliAnalysisTaskMuonTrackingEff(const AliAnalysisTaskMuonTrackingEff& rhs);
26 AliAnalysisTaskMuonTrackingEff& operator=(const AliAnalysisTaskMuonTrackingEff&);
128a8042 27 AliAnalysisTaskMuonTrackingEff(const char* name,
0246246b 28 const AliMUONGeometryTransformer* transformer,
29 Bool_t isCosmic = kFALSE);
128a8042 30 virtual ~AliAnalysisTaskMuonTrackingEff();
31
32 // Implementation of interface methods
33 virtual void ConnectInputData(Option_t *option = "");
34 virtual void CreateOutputObjects();
35 virtual void Exec(Option_t *option);
36 virtual void Terminate(Option_t *option);
37
38 static const Int_t fTotNbrOfDetectionElt; ///< The total number of detection element in the tracking system.
0246246b 39 static const Int_t fTotNbrOfChamber;
40
41 void ComputeErrors(); ///< Compute the error on the efficiency (see .ccx for the formula)
42
43 void SetCosmic(Bool_t isCosmic) {fIsCosmicData = isCosmic;};
44 Bool_t IsCosmic() {return fIsCosmicData;};
128a8042 45
46 private:
47 const AliMUONGeometryTransformer* fTransformer;
48 AliESDEvent * fESD; //!<ESD object
49
50 TClonesArray* fDetEltEffHistList; //!<Detetcion efficiencies histograms list.
51 TClonesArray* fDetEltTDHistList; //!<List of histograms of the tracks detected in the detection elements.
52 TClonesArray* fDetEltTTHistList; //!<List of histograms of the tracks which have passed through the detection elements.
0246246b 53 TClonesArray* fChamberEffHistList;
54 TClonesArray* fChamberTDHistList;
55 TClonesArray* fChamberTTHistList;
56
6db6876c 57 AliCheckMuonDetEltResponse* fChamberEff;
58
0246246b 59 Bool_t fIsCosmicData;
128a8042 60
61 ClassDef(AliAnalysisTaskMuonTrackingEff, 1)
62};
63
64#endif