ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/MuonIDMod.h
Revision: 1.15
Committed: Thu Apr 2 09:20:53 2009 UTC (16 years, 1 month ago) by ceballos
Content type: text/plain
Branch: MAIN
Changes since 1.14: +7 -5 lines
Log Message:
new lepton ID

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: MuonIDMod.h,v 1.12 2008/12/11 10:55:43 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 // Authors: S.Xie
10 //--------------------------------------------------------------------------------------------------
11
12 #ifndef MITPHYSICS_MODS_MUONIDMOD_H
13 #define MITPHYSICS_MODS_MUONIDMOD_H
14
15 #include "MitAna/TreeMod/interface/BaseMod.h"
16 #include "MitAna/DataTree/interface/Collections.h"
17 #include "MitPhysics/Utils/interface/MuonTools.h"
18
19 namespace mithep
20 {
21 class MuonIDMod : public BaseMod
22 {
23 public:
24 MuonIDMod(const char *name="MuonIDMod",
25 const char *title="Muon identification module");
26 ~MuonIDMod() {}
27
28 Double_t GetCaloIsoCut() const { return fCaloIsolationCut; }
29 const char *GetClassType() const { return fMuonClassType; }
30 const char *GetCleanName() const { return GetCleanMuonsName(); }
31 const char *GetCleanMuonsName() const { return fCleanMuonsName; }
32 Double_t GetCombIsoCut() const { return fCombIsolationCut; }
33 const char *GetIDType() const { return fMuonIDType; }
34 const char *GetInputName() const { return fMuonBranchName; }
35 const char *GetIsoType() const { return fMuonIsoType; }
36 const char *GetOutputName() const { return GetCleanMuonsName(); }
37 Double_t GetPtMin(Double_t pt) const { return fMuonPtMin; }
38 Double_t GetTrackIsoCut() const { return fTrackIsolationCut; }
39 void SetCaloIsoCut(Double_t cut) { fCaloIsolationCut = cut; }
40 void SetCombIsoCut(Double_t cut) { fCombIsolationCut = cut; }
41 void SetClassType(const char *type) { fMuonClassType = type; }
42 void SetCleanName(const char *name) { SetCleanMuonsName(name); }
43 void SetCleanMuonsName(const char *name) { fCleanMuonsName = name; }
44 void SetIDType(const char *type) { fMuonIDType = type; }
45 void SetInputName(const char *name) { fMuonBranchName = name; }
46 void SetIsoType(const char *type) { fMuonIsoType = type; }
47 void SetOutputName(const char *name) { SetCleanMuonsName(name); }
48 void SetPtMin(Double_t pt) { fMuonPtMin = pt; }
49 void SetTrackIsoCut(Double_t cut) { fTrackIsolationCut = cut; }
50 void SetD0Cut(Double_t cut) { fD0Cut = cut; }
51
52 enum EMuIdType {
53 kIdUndef = 0, //not defined
54 kTight, //"Tight"
55 kLoose, //"Loose"
56 kNoId, //"NoId"
57 kCustomId //"Custom"
58 };
59 enum EMuIsoType {
60 kIsoUndef = 0, //not defined
61 kTrackCalo, //"TrackCalo"
62 kTrackCaloCombined, //"TrackCaloCombined"
63 kTrackCaloSliding, //"TrackCaloSliding"
64 kCustomIso, //"Custom"
65 kNoIso //"NoIso"
66 };
67 enum EMuClassType {
68 kClassUndef = 0, //not defined
69 kAll, //"All"
70 kGlobal, //"Global"
71 kSta, //"Standalone"
72 kTrackerOnly //"TrackerOnly"
73 };
74
75 protected:
76 void Process();
77 void SlaveBegin();
78
79 TString fMuonBranchName; //name of muon collection (input)
80 TString fCleanMuonsName; //name of exported "good muon" collection
81 TString fVertexName; //name of vertex collection
82 TString fMuonIDType; //type of muon id scheme we impose
83 TString fMuonIsoType; //type of muon isolations scheme we impose
84 TString fMuonClassType; //type of muon class we impose
85 Double_t fTrackIsolationCut; //cut value for track isolation
86 Double_t fCaloIsolationCut; //cut value for calo isolation
87 Double_t fCombIsolationCut; //cut value for combined isolation
88 Double_t fMuonPtMin; //min muon pt
89 const MuonCol *fMuons; //!muon collection
90 const VertexCol *fVertices; // Vertices branches
91 MuonTools *fMuonTools; //!muon tool
92 EMuIdType fMuIDType; //!muon id type (imposed)
93 EMuIsoType fMuIsoType; //!muon iso type (imposed)
94 EMuClassType fMuClassType; //!muon class type (imposed)
95 Double_t fD0Cut; //max d0
96
97 ClassDef(MuonIDMod, 1) // Muon identification module
98 };
99 }
100 #endif