]> git.uio.no Git - u/mrichter/AliRoot.git/blame - FASTSIM/AliFastMuonTriggerEff.h
Remove dependence to RAW module in MUONraw library for online purpose (Christian)
[u/mrichter/AliRoot.git] / FASTSIM / AliFastMuonTriggerEff.h
CommitLineData
6255180c 1#ifndef ALIFASTMUONTRIGGEREFF_H
2#define ALIFASTMUONTRIGGEREFF_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
a42548b0 7// Class for the fast simulation of the muon trigger efficiency
8// The trigger parametrization is computed for background levels 0., 0.5 and 1.
9// In order to set a background level different from 0 it is necessary to
10// explicitly force it with:
11// ForceBkgLevel(BkgLevel).
12// For intermediate background levels, the trigger response is linearly
13// interpolated between these values.
14// There is increased granularity in the pT region below 3 GeV. Although
15// it does not seem to be necessary it is also possible to interpolate
16// between pT bins using SetInt().
6255180c 17
18#include <AliFastResponse.h>
490243f3 19#include <TString.h>
2724a683 20
21class TH3F;
22class TAxis;
490243f3 23
24// Debugging flag
25//#define MYTRIGDEBUG
26
27enum CutTupe {kLow, kHigh, kAny};
6255180c 28
29class AliFastMuonTriggerEff : public AliFastResponse {
30
31 public:
32 AliFastMuonTriggerEff();
e6e76983 33 AliFastMuonTriggerEff(const char* /*Name*/, const char* /*Title*/);
a42548b0 34 AliFastMuonTriggerEff(const AliFastMuonTriggerEff& eff);
6255180c 35 virtual ~AliFastMuonTriggerEff(){;}
36 virtual void Init();
37 virtual void Evaluate(Float_t charge, Float_t pt, Float_t theta, Float_t phi,
490243f3 38 Float_t& effLow, Float_t& effHigh, Float_t& effAny);
20432218 39 virtual void Evaluate(Float_t pt, Float_t theta, Float_t phi,
40 Float_t& effLow, Float_t& effHigh, Float_t& effAny)
41 {Evaluate(1., pt, theta, phi, effLow, effHigh, effAny);}
6255180c 42 virtual Float_t Evaluate(Float_t charge, Float_t pt, Float_t theta, Float_t phi);
20432218 43
490243f3 44 virtual void SetCut(Int_t cut = kLow);
a42548b0 45 virtual Float_t Cut() const {return fCut;}
490243f3 46 virtual Int_t SetBkgLevel(Float_t Bkg=0.);
47 virtual Int_t ForceBkgLevel(Float_t Bkg=0.);
a42548b0 48 virtual Float_t GetBkgLevel() const {return fBkg;}
490243f3 49 Int_t LoadTables(Char_t *namet); // Load trigger response tables
50 void SetInt() {fInt=1;}
51 void UnsetInt() {fInt=0;}
a42548b0 52 Int_t GetInt() const {return fInt;}
53 // Copy
54 AliFastMuonTriggerEff& operator=(const AliFastMuonTriggerEff& rhs);
6255180c 55 protected:
2724a683 56 Double_t fPtMin; // Minimun pt
57 Double_t fPtMax; // Maximum pt
490243f3 58 Double_t fDpt; // Delta_pt
2724a683 59 Int_t fnptb; // Number of bins
60 Double_t fPhiMin; // Lower limit for phi
61 Double_t fPhiMax; // Upper limit for phi
490243f3 62 Double_t fDphi; // Delta_phi
2724a683 63 Int_t fnphib; // Number of bins
490243f3 64 Double_t fThetaMin; // lower limit for theta
65 Double_t fThetaMax; // upper limit for theta
66 Double_t fDtheta; // Delta_theta
2724a683 67 Int_t fnthetab; // Number of bins
68 Int_t fCut; // Cut type (low/high)
69 Int_t fZones; // Total number of zones
70 TH3F* fhEffAPt; // Trig. prob. for Any Pt
71 TH3F* fhEffLPt; // Trig. prob. for Low Pt
72 TH3F* fhEffHPt; // Trig. prob. for High Pt
73 TAxis* fhLX; // x-axis
74 TAxis* fhLY; // y-axis
75 TAxis* fhLZ; // z-axis
76 Float_t fBkg; // Background level
77 TString fTableTitle; // Title of the LUT
78 TString fDescription; // Description of the table content
79 Int_t fInt; // Interpolation flag (1 to interpolate)
490243f3 80 private:
2724a683 81 Int_t fibx; // index x
82 Int_t fiby; // index y
83 Int_t fibz; // index z
6255180c 84 ClassDef(AliFastMuonTriggerEff,1) // Fast Muon Trigger response
85};
86
87#endif
88
89
90