ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/MuonIDMod.h
Revision: 1.20
Committed: Tue May 19 11:42:20 2009 UTC (15 years, 11 months ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.19: +6 -4 lines
Log Message:
Use the new ReqEventObject model.

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.20 // $Id: MuonIDMod.h,v 1.19 2009/05/11 08:02:43 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 loizides 1.20 Bool_t GetReverseIsoCut() const { return fReverseIsoCut; }
41 loizides 1.11 Double_t GetTrackIsoCut() const { return fTrackIsolationCut; }
42 loizides 1.20 void SetApplyD0Cut(Bool_t b) { fApplyD0Cut = b; }
43 loizides 1.11 void SetCaloIsoCut(Double_t cut) { fCaloIsolationCut = cut; }
44     void SetClassType(const char *type) { fMuonClassType = type; }
45 loizides 1.18 void SetCleanMuonsName(const char *name) { fCleanMuonsName = name; }
46 loizides 1.11 void SetCleanName(const char *name) { SetCleanMuonsName(name); }
47 loizides 1.18 void SetCombIsoCut(Double_t cut) { fCombIsolationCut = cut; }
48 loizides 1.20 void SetD0Cut(Double_t cut) { fD0Cut = cut; }
49 loizides 1.11 void SetIDType(const char *type) { fMuonIDType = type; }
50     void SetInputName(const char *name) { fMuonBranchName = name; }
51     void SetIsoType(const char *type) { fMuonIsoType = type; }
52     void SetOutputName(const char *name) { SetCleanMuonsName(name); }
53     void SetPtMin(Double_t pt) { fMuonPtMin = pt; }
54 loizides 1.20 void SetReverseIsoCut(Bool_t b) { fReverseIsoCut = b; }
55 loizides 1.11 void SetTrackIsoCut(Double_t cut) { fTrackIsolationCut = cut; }
56 loizides 1.6
57     enum EMuIdType {
58     kIdUndef = 0, //not defined
59     kTight, //"Tight"
60     kLoose, //"Loose"
61 loizides 1.12 kNoId, //"NoId"
62 loizides 1.6 kCustomId //"Custom"
63     };
64     enum EMuIsoType {
65     kIsoUndef = 0, //not defined
66     kTrackCalo, //"TrackCalo"
67     kTrackCaloCombined, //"TrackCaloCombined"
68     kTrackCaloSliding, //"TrackCaloSliding"
69     kCustomIso, //"Custom"
70     kNoIso //"NoIso"
71     };
72     enum EMuClassType {
73     kClassUndef = 0, //not defined
74     kAll, //"All"
75     kGlobal, //"Global"
76     kSta, //"Standalone"
77     kTrackerOnly //"TrackerOnly"
78     };
79    
80 loizides 1.1 protected:
81 loizides 1.11 void Process();
82     void SlaveBegin();
83 loizides 1.10
84 loizides 1.11 TString fMuonBranchName; //name of muon collection (input)
85     TString fCleanMuonsName; //name of exported "good muon" collection
86 ceballos 1.15 TString fVertexName; //name of vertex collection
87 loizides 1.11 TString fMuonIDType; //type of muon id scheme we impose
88     TString fMuonIsoType; //type of muon isolations scheme we impose
89     TString fMuonClassType; //type of muon class we impose
90     Double_t fTrackIsolationCut; //cut value for track isolation
91     Double_t fCaloIsolationCut; //cut value for calo isolation
92     Double_t fCombIsolationCut; //cut value for combined isolation
93     Double_t fMuonPtMin; //min muon pt
94 loizides 1.20 Bool_t fApplyD0Cut; //=true then apply d0 cut (def=1)
95 loizides 1.16 Double_t fD0Cut; //max d0
96 loizides 1.19 Bool_t fReverseIsoCut; //apply reversion iso cut (default=0)
97 loizides 1.11 EMuIdType fMuIDType; //!muon id type (imposed)
98     EMuIsoType fMuIsoType; //!muon iso type (imposed)
99     EMuClassType fMuClassType; //!muon class type (imposed)
100 loizides 1.16 const MuonCol *fMuons; //!muon collection
101     const VertexCol *fVertices; //!vertices branch
102     MuonTools *fMuonTools; //!muon tool
103 loizides 1.1
104 loizides 1.11 ClassDef(MuonIDMod, 1) // Muon identification module
105 loizides 1.1 };
106     }
107     #endif