1 |
//--------------------------------------------------------------------------------------------------
|
2 |
// $Id: MuonIDMod.h,v 1.12 2008/12/11 10:55:43 loizides Exp $
|
3 |
//
|
4 |
// MuonIDMod
|
5 |
//
|
6 |
// This module applies muon identification criteria and exports a pointer to a collection
|
7 |
// of "good muons" according to the specified ID scheme.
|
8 |
//
|
9 |
// Authors: S.Xie
|
10 |
//--------------------------------------------------------------------------------------------------
|
11 |
|
12 |
#ifndef MITPHYSICS_MODS_MUONIDMOD_H
|
13 |
#define MITPHYSICS_MODS_MUONIDMOD_H
|
14 |
|
15 |
#include "MitAna/TreeMod/interface/BaseMod.h"
|
16 |
#include "MitAna/DataTree/interface/Collections.h"
|
17 |
#include "MitPhysics/Utils/interface/MuonTools.h"
|
18 |
|
19 |
namespace mithep
|
20 |
{
|
21 |
class MuonIDMod : public BaseMod
|
22 |
{
|
23 |
public:
|
24 |
MuonIDMod(const char *name="MuonIDMod",
|
25 |
const char *title="Muon identification module");
|
26 |
|
27 |
Double_t GetCaloIsoCut() const { return fCaloIsolationCut; }
|
28 |
const char *GetClassType() const { return fMuonClassType; }
|
29 |
const char *GetCleanName() const { return GetCleanMuonsName(); }
|
30 |
const char *GetCleanMuonsName() const { return fCleanMuonsName; }
|
31 |
Double_t GetCombIsoCut() const { return fCombIsolationCut; }
|
32 |
const char *GetIDType() const { return fMuonIDType; }
|
33 |
const char *GetInputName() const { return fMuonBranchName; }
|
34 |
const char *GetIsoType() const { return fMuonIsoType; }
|
35 |
const char *GetOutputName() const { return GetCleanMuonsName(); }
|
36 |
Double_t GetPtMin(Double_t pt) const { return fMuonPtMin; }
|
37 |
Double_t GetTrackIsoCut() const { return fTrackIsolationCut; }
|
38 |
void SetCaloIsoCut(Double_t cut) { fCaloIsolationCut = cut; }
|
39 |
void SetCombIsoCut(Double_t cut) { fCombIsolationCut = cut; }
|
40 |
void SetClassType(const char *type) { fMuonClassType = type; }
|
41 |
void SetCleanName(const char *name) { SetCleanMuonsName(name); }
|
42 |
void SetCleanMuonsName(const char *name) { fCleanMuonsName = name; }
|
43 |
void SetIDType(const char *type) { fMuonIDType = type; }
|
44 |
void SetInputName(const char *name) { fMuonBranchName = name; }
|
45 |
void SetIsoType(const char *type) { fMuonIsoType = type; }
|
46 |
void SetOutputName(const char *name) { SetCleanMuonsName(name); }
|
47 |
void SetPtMin(Double_t pt) { fMuonPtMin = pt; }
|
48 |
void SetTrackIsoCut(Double_t cut) { fTrackIsolationCut = cut; }
|
49 |
|
50 |
enum EMuIdType {
|
51 |
kIdUndef = 0, //not defined
|
52 |
kTight, //"Tight"
|
53 |
kLoose, //"Loose"
|
54 |
kNoId, //"NoId"
|
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 |
protected:
|
74 |
void Process();
|
75 |
void SlaveBegin();
|
76 |
|
77 |
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 |
|
92 |
ClassDef(MuonIDMod, 1) // Muon identification module
|
93 |
};
|
94 |
}
|
95 |
#endif
|