16 |
|
#define MITPHYSICS_MODS_MUONIDMOD_H |
17 |
|
|
18 |
|
#include "MitAna/TreeMod/interface/BaseMod.h" |
19 |
< |
#include "MitAna/DataTree/interface/Collections.h" |
19 |
> |
#include "MitAna/DataTree/interface/MuonFwd.h" |
20 |
> |
#include "MitAna/DataTree/interface/VertexFwd.h" |
21 |
|
#include "MitPhysics/Utils/interface/MuonTools.h" |
22 |
|
|
23 |
|
namespace mithep |
37 |
|
const char *GetInputName() const { return fMuonBranchName; } |
38 |
|
const char *GetIsoType() const { return fMuonIsoType; } |
39 |
|
const char *GetOutputName() const { return GetCleanMuonsName(); } |
40 |
< |
Double_t GetPtMin(Double_t pt) const { return fMuonPtMin; } |
40 |
< |
Double_t GetTrackIsoCut() const { return fTrackIsolationCut; } |
40 |
> |
Double_t GetPtMin() const { return fMuonPtMin; } |
41 |
|
Bool_t GetReverseIsoCut() const { return fReverseIsoCut; } |
42 |
+ |
Bool_t GetReverseD0Cut() const { return fReverseD0Cut; } |
43 |
+ |
Double_t GetTrackIsoCut() const { return fTrackIsolationCut; } |
44 |
+ |
void SetApplyD0Cut(Bool_t b) { fApplyD0Cut = b; } |
45 |
|
void SetCaloIsoCut(Double_t cut) { fCaloIsolationCut = cut; } |
46 |
|
void SetClassType(const char *type) { fMuonClassType = type; } |
47 |
|
void SetCleanMuonsName(const char *name) { fCleanMuonsName = name; } |
48 |
|
void SetCleanName(const char *name) { SetCleanMuonsName(name); } |
49 |
|
void SetCombIsoCut(Double_t cut) { fCombIsolationCut = cut; } |
50 |
< |
void SetD0Cut(Double_t cut) { fD0Cut = cut; } |
50 |
> |
void SetD0Cut(Double_t cut) { fD0Cut = cut; } |
51 |
> |
void SetEtaCut(Double_t cut) { fEtaCut = cut; } |
52 |
|
void SetIDType(const char *type) { fMuonIDType = type; } |
53 |
|
void SetInputName(const char *name) { fMuonBranchName = name; } |
54 |
|
void SetIsoType(const char *type) { fMuonIsoType = type; } |
55 |
|
void SetOutputName(const char *name) { SetCleanMuonsName(name); } |
56 |
|
void SetPtMin(Double_t pt) { fMuonPtMin = pt; } |
57 |
< |
void SetReverseIsoCut(Bool_t b) { fReverseIsoCut = b; } |
57 |
> |
void SetReverseIsoCut(Bool_t b) { fReverseIsoCut = b; } |
58 |
> |
void SetReverseD0Cut(Bool_t b) { fReverseD0Cut = b; } |
59 |
|
void SetTrackIsoCut(Double_t cut) { fTrackIsolationCut = cut; } |
60 |
|
|
61 |
|
enum EMuIdType { |
62 |
|
kIdUndef = 0, //not defined |
63 |
+ |
kWMuId, //"WMuId" |
64 |
+ |
kZMuId, //"ZMuId" |
65 |
|
kTight, //"Tight" |
66 |
|
kLoose, //"Loose" |
67 |
+ |
kMinimal, //"Minimal" |
68 |
|
kNoId, //"NoId" |
69 |
|
kCustomId //"Custom" |
70 |
|
}; |
81 |
|
kAll, //"All" |
82 |
|
kGlobal, //"Global" |
83 |
|
kSta, //"Standalone" |
84 |
< |
kTrackerOnly //"TrackerOnly" |
84 |
> |
kTrackerMuon, //"TrackerMuon" |
85 |
> |
kCaloMuon, //"CaloMuon" |
86 |
> |
kTrackerBased //"TrackerMuon or CaloMuon" |
87 |
|
}; |
88 |
|
|
89 |
|
protected: |
100 |
|
Double_t fCaloIsolationCut; //cut value for calo isolation |
101 |
|
Double_t fCombIsolationCut; //cut value for combined isolation |
102 |
|
Double_t fMuonPtMin; //min muon pt |
103 |
+ |
Bool_t fApplyD0Cut; //=true then apply d0 cut (def=1) |
104 |
|
Double_t fD0Cut; //max d0 |
105 |
+ |
Double_t fEtaCut; //max eta, absolute value |
106 |
+ |
Bool_t fReverseIsoCut; //apply reversion iso cut (default=0) |
107 |
+ |
Bool_t fReverseD0Cut; //apply reversion d0 cut (default=0) |
108 |
|
EMuIdType fMuIDType; //!muon id type (imposed) |
109 |
|
EMuIsoType fMuIsoType; //!muon iso type (imposed) |
110 |
|
EMuClassType fMuClassType; //!muon class type (imposed) |
111 |
|
const MuonCol *fMuons; //!muon collection |
112 |
|
const VertexCol *fVertices; //!vertices branch |
113 |
|
MuonTools *fMuonTools; //!muon tool |
100 |
– |
Bool_t fReverseIsoCut; //!apply reversion iso cut |
114 |
|
|
115 |
|
ClassDef(MuonIDMod, 1) // Muon identification module |
116 |
|
}; |