ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/MuonIDMod.h
Revision: 1.12
Committed: Thu Dec 11 10:55:43 2008 UTC (16 years, 4 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_008pre2, Mit_008pre1, Mit_006b, Mit_006a
Changes since 1.11: +2 -1 lines
Log Message:
Small improvements. Added NoId.

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: MuonIDMod.h,v 1.11 2008/12/10 17:28:22 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
51 enum EMuIdType {
52 kIdUndef = 0, //not defined
53 kTight, //"Tight"
54 kLoose, //"Loose"
55 kNoId, //"NoId"
56 kCustomId //"Custom"
57 };
58 enum EMuIsoType {
59 kIsoUndef = 0, //not defined
60 kTrackCalo, //"TrackCalo"
61 kTrackCaloCombined, //"TrackCaloCombined"
62 kTrackCaloSliding, //"TrackCaloSliding"
63 kCustomIso, //"Custom"
64 kNoIso //"NoIso"
65 };
66 enum EMuClassType {
67 kClassUndef = 0, //not defined
68 kAll, //"All"
69 kGlobal, //"Global"
70 kSta, //"Standalone"
71 kTrackerOnly //"TrackerOnly"
72 };
73
74 protected:
75 void Process();
76 void SlaveBegin();
77
78 TString fMuonBranchName; //name of muon collection (input)
79 TString fCleanMuonsName; //name of exported "good muon" collection
80 TString fMuonIDType; //type of muon id scheme we impose
81 TString fMuonIsoType; //type of muon isolations scheme we impose
82 TString fMuonClassType; //type of muon class we impose
83 Double_t fTrackIsolationCut; //cut value for track isolation
84 Double_t fCaloIsolationCut; //cut value for calo isolation
85 Double_t fCombIsolationCut; //cut value for combined isolation
86 Double_t fMuonPtMin; //min muon pt
87 const MuonCol *fMuons; //!muon collection
88 MuonTools *fMuonTools; //!muon tool
89 EMuIdType fMuIDType; //!muon id type (imposed)
90 EMuIsoType fMuIsoType; //!muon iso type (imposed)
91 EMuClassType fMuClassType; //!muon class type (imposed)
92
93 ClassDef(MuonIDMod, 1) // Muon identification module
94 };
95 }
96 #endif