ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/MuonIDMod.h
Revision: 1.17
Committed: Thu Apr 30 06:34:02 2009 UTC (16 years ago) by ceballos
Content type: text/plain
Branch: MAIN
Changes since 1.16: +4 -1 lines
Log Message:
allow reversing isolation cut

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 ceballos 1.17 // $Id: MuonIDMod.h,v 1.16 2009/04/05 18:36:26 loizides Exp $
3 loizides 1.1 //
4     // MuonIDMod
5     //
6 loizides 1.6 // This module applies muon identification criteria and exports a pointer to a collection
7 loizides 1.7 // of "good muons" according to the specified ID scheme.
8 loizides 1.1 //
9 loizides 1.16 // 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 ceballos 1.15 // Authors: S.Xie
13 loizides 1.1 //--------------------------------------------------------------------------------------------------
14    
15 loizides 1.6 #ifndef MITPHYSICS_MODS_MUONIDMOD_H
16     #define MITPHYSICS_MODS_MUONIDMOD_H
17 loizides 1.1
18     #include "MitAna/TreeMod/interface/BaseMod.h"
19     #include "MitAna/DataTree/interface/Collections.h"
20 ceballos 1.5 #include "MitPhysics/Utils/interface/MuonTools.h"
21 loizides 1.1
22     namespace mithep
23     {
24     class MuonIDMod : public BaseMod
25     {
26     public:
27     MuonIDMod(const char *name="MuonIDMod",
28 loizides 1.6 const char *title="Muon identification module");
29    
30 loizides 1.11 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     Double_t GetTrackIsoCut() const { return fTrackIsolationCut; }
41 ceballos 1.17 Bool_t GetReverseIsoCut() const { return fReverseIsoCut; }
42 loizides 1.11 void SetCaloIsoCut(Double_t cut) { fCaloIsolationCut = cut; }
43     void SetCombIsoCut(Double_t cut) { fCombIsolationCut = cut; }
44     void SetClassType(const char *type) { fMuonClassType = type; }
45     void SetCleanName(const char *name) { SetCleanMuonsName(name); }
46     void SetCleanMuonsName(const char *name) { fCleanMuonsName = name; }
47     void SetIDType(const char *type) { fMuonIDType = type; }
48     void SetInputName(const char *name) { fMuonBranchName = name; }
49     void SetIsoType(const char *type) { fMuonIsoType = type; }
50     void SetOutputName(const char *name) { SetCleanMuonsName(name); }
51     void SetPtMin(Double_t pt) { fMuonPtMin = pt; }
52     void SetTrackIsoCut(Double_t cut) { fTrackIsolationCut = cut; }
53 ceballos 1.15 void SetD0Cut(Double_t cut) { fD0Cut = cut; }
54 ceballos 1.17 void SetReverseIsoCut(Bool_t b) { fReverseIsoCut = b; }
55 loizides 1.6
56     enum EMuIdType {
57     kIdUndef = 0, //not defined
58     kTight, //"Tight"
59     kLoose, //"Loose"
60 loizides 1.12 kNoId, //"NoId"
61 loizides 1.6 kCustomId //"Custom"
62     };
63     enum EMuIsoType {
64     kIsoUndef = 0, //not defined
65     kTrackCalo, //"TrackCalo"
66     kTrackCaloCombined, //"TrackCaloCombined"
67     kTrackCaloSliding, //"TrackCaloSliding"
68     kCustomIso, //"Custom"
69     kNoIso //"NoIso"
70     };
71     enum EMuClassType {
72     kClassUndef = 0, //not defined
73     kAll, //"All"
74     kGlobal, //"Global"
75     kSta, //"Standalone"
76     kTrackerOnly //"TrackerOnly"
77     };
78    
79 loizides 1.1 protected:
80 loizides 1.11 void Process();
81     void SlaveBegin();
82 loizides 1.10
83 loizides 1.11 TString fMuonBranchName; //name of muon collection (input)
84     TString fCleanMuonsName; //name of exported "good muon" collection
85 ceballos 1.15 TString fVertexName; //name of vertex collection
86 loizides 1.11 TString fMuonIDType; //type of muon id scheme we impose
87     TString fMuonIsoType; //type of muon isolations scheme we impose
88     TString fMuonClassType; //type of muon class we impose
89     Double_t fTrackIsolationCut; //cut value for track isolation
90     Double_t fCaloIsolationCut; //cut value for calo isolation
91     Double_t fCombIsolationCut; //cut value for combined isolation
92     Double_t fMuonPtMin; //min muon pt
93 loizides 1.16 Double_t fD0Cut; //max d0
94 loizides 1.11 EMuIdType fMuIDType; //!muon id type (imposed)
95     EMuIsoType fMuIsoType; //!muon iso type (imposed)
96     EMuClassType fMuClassType; //!muon class type (imposed)
97 loizides 1.16 const MuonCol *fMuons; //!muon collection
98     const VertexCol *fVertices; //!vertices branch
99     MuonTools *fMuonTools; //!muon tool
100 ceballos 1.17 Bool_t fReverseIsoCut; //!apply reversion iso cut
101 loizides 1.1
102 loizides 1.11 ClassDef(MuonIDMod, 1) // Muon identification module
103 loizides 1.1 };
104     }
105     #endif