ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/MuonIDMod.h
Revision: 1.11
Committed: Wed Dec 10 17:28:22 2008 UTC (16 years, 4 months ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.10: +40 -36 lines
Log Message:
Added naming convention: SetInputName/SetOutputName etc.

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.11 // $Id: MuonIDMod.h,v 1.10 2008/12/10 11:44:33 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     // Authors: S.Xie
10     //--------------------------------------------------------------------------------------------------
11    
12 loizides 1.6 #ifndef MITPHYSICS_MODS_MUONIDMOD_H
13     #define MITPHYSICS_MODS_MUONIDMOD_H
14 loizides 1.1
15     #include "MitAna/TreeMod/interface/BaseMod.h"
16     #include "MitAna/DataTree/interface/Collections.h"
17 ceballos 1.5 #include "MitPhysics/Utils/interface/MuonTools.h"
18 loizides 1.1
19     namespace mithep
20     {
21     class MuonIDMod : public BaseMod
22     {
23     public:
24     MuonIDMod(const char *name="MuonIDMod",
25 loizides 1.6 const char *title="Muon identification module");
26 loizides 1.1 ~MuonIDMod() {}
27 loizides 1.6
28 loizides 1.11 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 loizides 1.6
51     enum EMuIdType {
52     kIdUndef = 0, //not defined
53     kTight, //"Tight"
54     kLoose, //"Loose"
55     kCustomId //"Custom"
56     };
57     enum EMuIsoType {
58     kIsoUndef = 0, //not defined
59     kTrackCalo, //"TrackCalo"
60     kTrackCaloCombined, //"TrackCaloCombined"
61     kTrackCaloSliding, //"TrackCaloSliding"
62     kCustomIso, //"Custom"
63     kNoIso //"NoIso"
64     };
65     enum EMuClassType {
66     kClassUndef = 0, //not defined
67     kAll, //"All"
68     kGlobal, //"Global"
69     kSta, //"Standalone"
70     kTrackerOnly //"TrackerOnly"
71     };
72    
73 loizides 1.1 protected:
74 loizides 1.11 void Process();
75     void SlaveBegin();
76 loizides 1.10
77 loizides 1.11 TString fMuonBranchName; //name of muon collection (input)
78     TString fCleanMuonsName; //name of exported "good muon" collection
79     TString fMuonIDType; //type of muon id scheme we impose
80     TString fMuonIsoType; //type of muon isolations scheme we impose
81     TString fMuonClassType; //type of muon class we impose
82     Double_t fTrackIsolationCut; //cut value for track isolation
83     Double_t fCaloIsolationCut; //cut value for calo isolation
84     Double_t fCombIsolationCut; //cut value for combined isolation
85     Double_t fMuonPtMin; //min muon pt
86     const MuonCol *fMuons; //!muon collection
87     MuonTools *fMuonTools; //!muon tool
88     EMuIdType fMuIDType; //!muon id type (imposed)
89     EMuIsoType fMuIsoType; //!muon iso type (imposed)
90     EMuClassType fMuClassType; //!muon class type (imposed)
91 loizides 1.1
92 loizides 1.11 ClassDef(MuonIDMod, 1) // Muon identification module
93 loizides 1.1 };
94     }
95     #endif