ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/MuonIDMod.h
Revision: 1.10
Committed: Wed Dec 10 11:44:33 2008 UTC (16 years, 4 months ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.9: +5 -5 lines
Log Message:
Added sort.

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.10 // $Id: MuonIDMod.h,v 1.9 2008/12/04 13:53: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.9 const char *GetMuonBranchName(const char *name) const { return fMuonBranchName; }
29     const char *GetCleanMuonsName(const char *name) const { return fCleanMuonsName; }
30     const char *GetMuonIDType(const char *type) const { return fMuonIDType; }
31     const char *GetMuonIsoType(const char *type) const { return fMuonIsoType; }
32     const char *GetMuonClassType(const char *type) const { return fMuonClassType; }
33     Double_t GetTrackIsolationCut(Double_t cut) const { return fTrackIsolationCut; }
34     Double_t GetCaloIsolationCut(Double_t cut) const { return fCaloIsolationCut; }
35     Double_t GetCombIsolationCut(Double_t cut) const { return fCombIsolationCut; }
36     Double_t GetMuonPtMin(Double_t pt) const { return fMuonPtMin; }
37     void SetMuonBranchName(const char *name) { fMuonBranchName = name; }
38     void SetCleanMuonsName(const char *name) { fCleanMuonsName = name; }
39     void SetMuonIDType(const char *type) { fMuonIDType = type; }
40     void SetMuonIsoType(const char *type) { fMuonIsoType = type; }
41     void SetMuonClassType(const char *type) { fMuonClassType = type; }
42     void SetTrackIsolationCut(Double_t cut) { fTrackIsolationCut = cut; }
43     void SetCaloIsolationCut(Double_t cut) { fCaloIsolationCut = cut; }
44     void SetCombIsolationCut(Double_t cut) { fCombIsolationCut = cut; }
45     void SetMuonPtMin(Double_t pt) { fMuonPtMin = pt; }
46 loizides 1.6
47     enum EMuIdType {
48     kIdUndef = 0, //not defined
49     kTight, //"Tight"
50     kLoose, //"Loose"
51     kCustomId //"Custom"
52     };
53     enum EMuIsoType {
54     kIsoUndef = 0, //not defined
55     kTrackCalo, //"TrackCalo"
56     kTrackCaloCombined, //"TrackCaloCombined"
57     kTrackCaloSliding, //"TrackCaloSliding"
58     kCustomIso, //"Custom"
59     kNoIso //"NoIso"
60     };
61     enum EMuClassType {
62     kClassUndef = 0, //not defined
63     kAll, //"All"
64     kGlobal, //"Global"
65     kSta, //"Standalone"
66     kTrackerOnly //"TrackerOnly"
67     };
68    
69 loizides 1.1 protected:
70 loizides 1.10 void Process();
71     void SlaveBegin();
72    
73 loizides 1.9 TString fMuonBranchName; //name of muon collection (in branch)
74     TString fCleanMuonsName; //name of exported "good muon" collection
75     TString fMuonIDType; //type of muon id scheme we impose
76     TString fMuonIsoType; //type of muon isolations scheme we impose
77     TString fMuonClassType; //type of muon class we impose
78     Double_t fTrackIsolationCut; //cut value for track isolation
79     Double_t fCaloIsolationCut; //cut value for calo isolation
80     Double_t fCombIsolationCut; //cut value for combined isolation
81     Double_t fMuonPtMin; //min muon pt
82     const MuonCol *fMuons; //!muon branch
83     MuonTools *fMuonTools; //!muon tool
84     EMuIdType fMuIDType; //!muon id type (imposed)
85     EMuIsoType fMuIsoType; //!muon iso type (imposed)
86     EMuClassType fMuClassType; //!muon class type (imposed)
87 loizides 1.1
88 loizides 1.10 ClassDef(MuonIDMod,1) // Muon identification module
89 loizides 1.1 };
90     }
91     #endif