CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
photonId_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 PhotonIDProd = cms.EDProducer("PhotonIDProducer",
4  #required inputs
5  #What collection of photons do I run on?
6  photonProducer = cms.string('photons'),
7  photonLabel = cms.string(''),
8  #What labels do I use for my products?
9  photonCutBasedIDLooseLabel = cms.string('PhotonCutBasedIDLoose'),
10  photonCutBasedIDTightLabel = cms.string('PhotonCutBasedIDTight'),
11  photonCutBasedIDLooseEMLabel=cms.string('PhotonCutBasedIDLooseEM'),
12  #What rechit collection do I use for ECAL iso?
13  doCutBased = cms.bool(True),
14  #switches, turn on quality cuts for various quantities.
15  RequireFiducial = cms.bool(False),
16  DoHollowConeTrackIsolationCut = cms.bool(True),
17  DoSolidConeTrackIsolationCut = cms.bool(False),
18  DoHollowConeNTrkCut = cms.bool(False),
19  DoSolidConeNTrkCut = cms.bool(False),
20  DoHadOverEMCut = cms.bool(True),
21  DoEtaWidthCut = cms.bool(True),
22  DoHcalTowerIsolationCut = cms.bool(True),
23  DoEcalRecHitIsolationCut = cms.bool(True),
24  DoEcalIsoRelativeCut = cms.bool(True),
25  DoR9Cut = cms.bool(False),
26  #LooseEM cuts EB
27  LooseEMEcalIsoRelativeCutSlopeEB = cms.double(0.006),
28  LooseEMEcalIsoRelativeCutOffsetEB= cms.double(4.2),
29  LooseEMHcalTowerIsoSlopeEB= cms.double(0.0025),
30  LooseEMHcalTowerIsoOffsetEB=cms.double(2.2),
31  LooseEMHollowTrkSlopeEB=cms.double(0.),
32  LooseEMHollowTrkOffsetEB=cms.double(999999999),
33  LooseEMSolidTrkSlopeEB=cms.double(0.),
34  LooseEMSolidTrkOffsetEB=cms.double(999999999),
35  LooseEMSolidTrkEB=cms.double(999999999),
36  LooseEMSolidNTrkEB=cms.int32(999999999),
37  LooseEMHollowNTrkEB=cms.int32(999999999),
38  LooseEMEtaWidthEB=cms.double(999999999),
39  LooseEMHadOverEMEB=cms.double(0.05),
40  LooseEMR9CutEB=cms.double(0.0),
41  #LoosePhoton cuts EB
42  LoosePhotonEcalIsoRelativeCutSlopeEB = cms.double(0.006),
43  LoosePhotonEcalIsoRelativeCutOffsetEB= cms.double(4.2),
44  LoosePhotonHcalTowerIsoSlopeEB= cms.double(0.0025),
45  LoosePhotonHcalTowerIsoOffsetEB=cms.double(2.2),
46  LoosePhotonHollowTrkSlopeEB=cms.double(0.001),
47  LoosePhotonHollowTrkOffsetEB=cms.double(3.5),
48  LoosePhotonSolidTrkSlopeEB=cms.double(0.),
49  LoosePhotonSolidTrkOffsetEB=cms.double(999999999),
50  LoosePhotonSolidTrkEB=cms.double(999999999),
51  LoosePhotonSolidNTrkEB=cms.int32(999999999),
52  LoosePhotonHollowNTrkEB=cms.int32(999999999),
53  LoosePhotonEtaWidthEB=cms.double(999999999),
54  LoosePhotonHadOverEMEB=cms.double(0.05),
55  LoosePhotonR9CutEB=cms.double(0.0),
56  #TightPhoton cuts EB
57  TightPhotonEcalIsoRelativeCutSlopeEB = cms.double(0.006),
58  TightPhotonEcalIsoRelativeCutOffsetEB= cms.double(4.2),
59  TightPhotonHcalTowerIsoSlopeEB= cms.double(0.0025),
60  TightPhotonHcalTowerIsoOffsetEB=cms.double(2.2),
61  TightPhotonHollowTrkSlopeEB=cms.double(0.001),
62  TightPhotonHollowTrkOffsetEB=cms.double(2.),
63  TightPhotonSolidTrkSlopeEB=cms.double(0.),
64  TightPhotonSolidTrkOffsetEB=cms.double(999999999),
65  TightPhotonSolidTrkEB=cms.double(999999999),
66  TightPhotonSolidNTrkEB=cms.int32(999999999),
67  TightPhotonHollowNTrkEB=cms.int32(999999999),
68  TightPhotonEtaWidthEB=cms.double(0.013),
69  TightPhotonHadOverEMEB=cms.double(0.05),
70  TightPhotonR9CutEB=cms.double(0.0),
71  #LooseEM cuts EE
72  LooseEMEcalIsoRelativeCutSlopeEE = cms.double(0.006),
73  LooseEMEcalIsoRelativeCutOffsetEE= cms.double(4.2),
74  LooseEMHcalTowerIsoSlopeEE= cms.double(0.0025),
75  LooseEMHcalTowerIsoOffsetEE=cms.double(2.2),
76  LooseEMHollowTrkSlopeEE=cms.double(0.),
77  LooseEMHollowTrkOffsetEE=cms.double(999999999),
78  LooseEMSolidTrkSlopeEE=cms.double(0.),
79  LooseEMSolidTrkOffsetEE=cms.double(999999999),
80  LooseEMSolidTrkEE=cms.double(999999999),
81  LooseEMSolidNTrkEE=cms.int32(999999999),
82  LooseEMHollowNTrkEE=cms.int32(999999999),
83  LooseEMEtaWidthEE=cms.double(999999999),
84  LooseEMHadOverEMEE=cms.double(0.05),
85  LooseEMR9CutEE=cms.double(0.0),
86  #LoosePhoton cuts EE
87  LoosePhotonEcalIsoRelativeCutSlopeEE = cms.double(0.006),
88  LoosePhotonEcalIsoRelativeCutOffsetEE= cms.double(4.2),
89  LoosePhotonHcalTowerIsoSlopeEE= cms.double(0.0025),
90  LoosePhotonHcalTowerIsoOffsetEE=cms.double(2.2),
91  LoosePhotonHollowTrkSlopeEE=cms.double(0.001),
92  LoosePhotonHollowTrkOffsetEE=cms.double(3.5),
93  LoosePhotonSolidTrkSlopeEE=cms.double(0.),
94  LoosePhotonSolidTrkOffsetEE=cms.double(999999999),
95  LoosePhotonSolidTrkEE=cms.double(999999999),
96  LoosePhotonSolidNTrkEE=cms.int32(999999999),
97  LoosePhotonHollowNTrkEE=cms.int32(999999999),
98  LoosePhotonEtaWidthEE=cms.double(999999999),
99  LoosePhotonHadOverEMEE=cms.double(0.05),
100  LoosePhotonR9CutEE=cms.double(0.0),
101  #TightPhoton cuts EE
102  TightPhotonEcalIsoRelativeCutSlopeEE = cms.double(0.006),
103  TightPhotonEcalIsoRelativeCutOffsetEE= cms.double(4.2),
104  TightPhotonHcalTowerIsoSlopeEE= cms.double(0.0025),
105  TightPhotonHcalTowerIsoOffsetEE=cms.double(2.2),
106  TightPhotonHollowTrkSlopeEE=cms.double(0.001),
107  TightPhotonHollowTrkOffsetEE=cms.double(2.),
108  TightPhotonSolidTrkSlopeEE=cms.double(0.),
109  TightPhotonSolidTrkOffsetEE=cms.double(999999999),
110  TightPhotonSolidTrkEE=cms.double(999999999),
111  TightPhotonSolidNTrkEE=cms.int32(999999999),
112  TightPhotonHollowNTrkEE=cms.int32(999999999),
113  TightPhotonEtaWidthEE=cms.double(0.03),
114  TightPhotonHadOverEMEE=cms.double(0.05),
115  TightPhotonR9CutEE=cms.double(0.0)
116 )
117 
118