ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/MuonIDMod.h
Revision: 1.21
Committed: Mon Jun 1 17:31:38 2009 UTC (15 years, 11 months ago) by ceballos
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_009a
Changes since 1.20: +4 -1 lines
Log Message:
minor updates on anti-cuts

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: MuonIDMod.h,v 1.20 2009/05/19 11:42:20 loizides Exp $
3 //
4 // MuonIDMod
5 //
6 // This module applies muon identification criteria and exports a pointer to a collection
7 // of "good muons" according to the specified ID scheme.
8 //
9 // See http://indico.cern.ch/contributionDisplay.py?contribId=1&confId=45945
10 // See http://indico.cern.ch/getFile.py/access?contribId=1&resId=0&materialId=slides&confId=42229
11 //
12 // Authors: S.Xie
13 //--------------------------------------------------------------------------------------------------
14
15 #ifndef MITPHYSICS_MODS_MUONIDMOD_H
16 #define MITPHYSICS_MODS_MUONIDMOD_H
17
18 #include "MitAna/TreeMod/interface/BaseMod.h"
19 #include "MitAna/DataTree/interface/Collections.h"
20 #include "MitPhysics/Utils/interface/MuonTools.h"
21
22 namespace mithep
23 {
24 class MuonIDMod : public BaseMod
25 {
26 public:
27 MuonIDMod(const char *name="MuonIDMod",
28 const char *title="Muon identification module");
29
30 Double_t GetCaloIsoCut() const { return fCaloIsolationCut; }
31 const char *GetClassType() const { return fMuonClassType; }
32 const char *GetCleanName() const { return GetCleanMuonsName(); }
33 const char *GetCleanMuonsName() const { return fCleanMuonsName; }
34 Double_t GetCombIsoCut() const { return fCombIsolationCut; }
35 const char *GetIDType() const { return fMuonIDType; }
36 const char *GetInputName() const { return fMuonBranchName; }
37 const char *GetIsoType() const { return fMuonIsoType; }
38 const char *GetOutputName() const { return GetCleanMuonsName(); }
39 Double_t GetPtMin(Double_t pt) const { return fMuonPtMin; }
40 Bool_t GetReverseIsoCut() const { return fReverseIsoCut; }
41 Bool_t GetReverseD0Cut() const { return fReverseD0Cut; }
42 Double_t GetTrackIsoCut() const { return fTrackIsolationCut; }
43 void SetApplyD0Cut(Bool_t b) { fApplyD0Cut = b; }
44 void SetCaloIsoCut(Double_t cut) { fCaloIsolationCut = cut; }
45 void SetClassType(const char *type) { fMuonClassType = type; }
46 void SetCleanMuonsName(const char *name) { fCleanMuonsName = name; }
47 void SetCleanName(const char *name) { SetCleanMuonsName(name); }
48 void SetCombIsoCut(Double_t cut) { fCombIsolationCut = cut; }
49 void SetD0Cut(Double_t cut) { fD0Cut = cut; }
50 void SetIDType(const char *type) { fMuonIDType = type; }
51 void SetInputName(const char *name) { fMuonBranchName = name; }
52 void SetIsoType(const char *type) { fMuonIsoType = type; }
53 void SetOutputName(const char *name) { SetCleanMuonsName(name); }
54 void SetPtMin(Double_t pt) { fMuonPtMin = pt; }
55 void SetReverseIsoCut(Bool_t b) { fReverseIsoCut = b; }
56 void SetReverseD0Cut(Bool_t b) { fReverseD0Cut = b; }
57 void SetTrackIsoCut(Double_t cut) { fTrackIsolationCut = cut; }
58
59 enum EMuIdType {
60 kIdUndef = 0, //not defined
61 kTight, //"Tight"
62 kLoose, //"Loose"
63 kNoId, //"NoId"
64 kCustomId //"Custom"
65 };
66 enum EMuIsoType {
67 kIsoUndef = 0, //not defined
68 kTrackCalo, //"TrackCalo"
69 kTrackCaloCombined, //"TrackCaloCombined"
70 kTrackCaloSliding, //"TrackCaloSliding"
71 kCustomIso, //"Custom"
72 kNoIso //"NoIso"
73 };
74 enum EMuClassType {
75 kClassUndef = 0, //not defined
76 kAll, //"All"
77 kGlobal, //"Global"
78 kSta, //"Standalone"
79 kTrackerOnly //"TrackerOnly"
80 };
81
82 protected:
83 void Process();
84 void SlaveBegin();
85
86 TString fMuonBranchName; //name of muon collection (input)
87 TString fCleanMuonsName; //name of exported "good muon" collection
88 TString fVertexName; //name of vertex collection
89 TString fMuonIDType; //type of muon id scheme we impose
90 TString fMuonIsoType; //type of muon isolations scheme we impose
91 TString fMuonClassType; //type of muon class we impose
92 Double_t fTrackIsolationCut; //cut value for track isolation
93 Double_t fCaloIsolationCut; //cut value for calo isolation
94 Double_t fCombIsolationCut; //cut value for combined isolation
95 Double_t fMuonPtMin; //min muon pt
96 Bool_t fApplyD0Cut; //=true then apply d0 cut (def=1)
97 Double_t fD0Cut; //max d0
98 Bool_t fReverseIsoCut; //apply reversion iso cut (default=0)
99 Bool_t fReverseD0Cut; //apply reversion d0 cut (default=0)
100 EMuIdType fMuIDType; //!muon id type (imposed)
101 EMuIsoType fMuIsoType; //!muon iso type (imposed)
102 EMuClassType fMuClassType; //!muon class type (imposed)
103 const MuonCol *fMuons; //!muon collection
104 const VertexCol *fVertices; //!vertices branch
105 MuonTools *fMuonTools; //!muon tool
106
107 ClassDef(MuonIDMod, 1) // Muon identification module
108 };
109 }
110 #endif