1 |
loizides |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
loizides |
1.6 |
// $Id: MuonIDMod.h,v 1.5 2008/11/26 10:55:32 ceballos 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 |
|
|
// of "good muons" according to the specified ID scheme. TODO: Pointer to a presentation.
|
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 |
|
|
void SetMuonBranchName(const char *name) { fMuonBranchName = name; }
|
29 |
|
|
void SetCleanMuonsName(const char *name) { fCleanMuonsName = name; }
|
30 |
|
|
void SetMuonIDType(const char *type) { fMuonIDType = type; }
|
31 |
|
|
void SetTrackIsolationCut(Double_t cut) { fTrackIsolationCut = cut; }
|
32 |
|
|
void SetCaloIsolationCut(Double_t cut) { fCaloIsolationCut = cut; }
|
33 |
|
|
void SetCombIsolationCut(Double_t cut) { fCombIsolationCut = cut; }
|
34 |
|
|
void SetMuonPtMin(Double_t pt) { fMuonPtMin = pt; }
|
35 |
|
|
|
36 |
|
|
enum EMuIdType {
|
37 |
|
|
kIdUndef = 0, //not defined
|
38 |
|
|
kTight, //"Tight"
|
39 |
|
|
kLoose, //"Loose"
|
40 |
|
|
kCustomId //"Custom"
|
41 |
|
|
};
|
42 |
|
|
enum EMuIsoType {
|
43 |
|
|
kIsoUndef = 0, //not defined
|
44 |
|
|
kTrackCalo, //"TrackCalo"
|
45 |
|
|
kTrackCaloCombined, //"TrackCaloCombined"
|
46 |
|
|
kTrackCaloSliding, //"TrackCaloSliding"
|
47 |
|
|
kCustomIso, //"Custom"
|
48 |
|
|
kNoIso //"NoIso"
|
49 |
|
|
};
|
50 |
|
|
enum EMuClassType {
|
51 |
|
|
kClassUndef = 0, //not defined
|
52 |
|
|
kAll, //"All"
|
53 |
|
|
kGlobal, //"Global"
|
54 |
|
|
kSta, //"Standalone"
|
55 |
|
|
kTrackerOnly //"TrackerOnly"
|
56 |
|
|
};
|
57 |
|
|
|
58 |
loizides |
1.1 |
protected:
|
59 |
loizides |
1.6 |
TString fMuonBranchName; //name of muon collection (in branch)
|
60 |
|
|
TString fCleanMuonsName; //name of exported "good muon" collection
|
61 |
|
|
TString fMuonIDType; //type of muon id scheme we impose
|
62 |
|
|
TString fMuonIsoType; //type of muon isolations scheme we impose
|
63 |
|
|
TString fMuonClassType; //type of muon class we impose
|
64 |
|
|
Double_t fTrackIsolationCut; //cut value for track isolation
|
65 |
|
|
Double_t fCaloIsolationCut; //cut value for calo isolation
|
66 |
|
|
Double_t fCombIsolationCut; //cut value for combined isolation
|
67 |
|
|
Double_t fMuonPtMin; //min muon pt
|
68 |
|
|
MuonCol *fMuons; //!muon branch
|
69 |
|
|
MuonTools *fMuonTools; //!muon tool
|
70 |
|
|
EMuIdType fMuIDType; //!
|
71 |
|
|
EMuIsoType fMuIsoType; //!
|
72 |
|
|
EMuClassType fMuClassType; //!
|
73 |
|
|
|
74 |
|
|
void Process();
|
75 |
|
|
void SlaveBegin();
|
76 |
loizides |
1.1 |
|
77 |
loizides |
1.6 |
ClassDef(MuonIDMod,1) // TAM module for muon id
|
78 |
loizides |
1.1 |
};
|
79 |
|
|
}
|
80 |
|
|
#endif
|