ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/MuonIDMod.h
Revision: 1.14
Committed: Mon Mar 23 14:44:12 2009 UTC (16 years, 1 month ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_008
Changes since 1.13: +5 -2 lines
Log Message:
Added refs to talks.

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.14 // $Id: MuonIDMod.h,v 1.13 2009/03/23 14:23:06 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.14 // 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,C.Loizides
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     void SetCaloIsoCut(Double_t cut) { fCaloIsolationCut = cut; }
42     void SetCombIsoCut(Double_t cut) { fCombIsolationCut = cut; }
43     void SetClassType(const char *type) { fMuonClassType = type; }
44     void SetCleanName(const char *name) { SetCleanMuonsName(name); }
45     void SetCleanMuonsName(const char *name) { fCleanMuonsName = name; }
46     void SetIDType(const char *type) { fMuonIDType = type; }
47     void SetInputName(const char *name) { fMuonBranchName = name; }
48     void SetIsoType(const char *type) { fMuonIsoType = type; }
49     void SetOutputName(const char *name) { SetCleanMuonsName(name); }
50     void SetPtMin(Double_t pt) { fMuonPtMin = pt; }
51     void SetTrackIsoCut(Double_t cut) { fTrackIsolationCut = cut; }
52 loizides 1.6
53     enum EMuIdType {
54     kIdUndef = 0, //not defined
55     kTight, //"Tight"
56     kLoose, //"Loose"
57 loizides 1.12 kNoId, //"NoId"
58 loizides 1.6 kCustomId //"Custom"
59     };
60     enum EMuIsoType {
61     kIsoUndef = 0, //not defined
62     kTrackCalo, //"TrackCalo"
63     kTrackCaloCombined, //"TrackCaloCombined"
64     kTrackCaloSliding, //"TrackCaloSliding"
65     kCustomIso, //"Custom"
66     kNoIso //"NoIso"
67     };
68     enum EMuClassType {
69     kClassUndef = 0, //not defined
70     kAll, //"All"
71     kGlobal, //"Global"
72     kSta, //"Standalone"
73     kTrackerOnly //"TrackerOnly"
74     };
75    
76 loizides 1.1 protected:
77 loizides 1.11 void Process();
78     void SlaveBegin();
79 loizides 1.10
80 loizides 1.11 TString fMuonBranchName; //name of muon collection (input)
81     TString fCleanMuonsName; //name of exported "good muon" 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     MuonTools *fMuonTools; //!muon tool
91     EMuIdType fMuIDType; //!muon id type (imposed)
92     EMuIsoType fMuIsoType; //!muon iso type (imposed)
93     EMuClassType fMuClassType; //!muon class type (imposed)
94 loizides 1.1
95 loizides 1.11 ClassDef(MuonIDMod, 1) // Muon identification module
96 loizides 1.1 };
97     }
98     #endif