CMS 3D CMS Logo

Functions | Variables
photons_cff Namespace Reference

Functions

def make_bitmapVID_docstring (id_modules_working_points_pset)
 

Variables

 _bitmapVIDForPho_docstring
 
 _bitmapVIDForPhoRun2_docstring
 
 _photonTask_Run2
 
 bitmapVIDForPho
 
 bitmapVIDForPhoRun2
 
 bool
 
 branchName
 
 calibratedPatPhotonsNano
 
 checkCharge
 
 correctionFile
 
 cut
 
 cutBased
 
 cutBasedID_Fall17V2_loose
 
 cutBasedID_Fall17V2_medium
 
 cutBasedID_Fall17V2_tight
 
 cutBasedID_loose
 
 cutBasedID_medium
 
 cutBasedID_tight
 
 dEscaleDown
 
 dEscaleUp
 
 dEsigmaDown
 
 dEsigmaUp
 
 doc
 
 docString
 
 doQuadratic
 
 EAFile_PFIso_Chg
 
 EAFile_PFIso_Neu
 
 EAFile_PFIso_Pho
 
 ecalEnergyErrPostCorrNew
 
 ecalEnergyPostCorrNew
 
 ecalEnergyPreCorrNew
 
 ecalPFClusterIso
 
 eCorr
 
 electronIdx
 
 electronVeto
 
 energyErr
 
 energyRaw
 
 energyScaleDownNew
 
 energyScaleUpNew
 
 energySigmaDownNew
 
 energySigmaUpNew
 
 esEffSigmaRR
 
 esEnergyOverRawE
 
 etaWidth
 
 finalPhotons
 
 float
 
 haloTaggerMVAVal
 
 hasConversionTracks
 
 hcalPFClusterIso
 
 hoe
 
 hoe_PUcorr
 
 hOverEForPho
 
 HoverEQuadratic
 
 int
 
 isoForPho
 
 isoForPhoFall17V2
 
 isScEtaEB
 
 isScEtaEE
 
 jetIdx
 
 matched
 
 maxDeltaR
 
 maxDPtRel
 
 mcMap
 
 mcPdgId
 
 mcStatus
 
 modules
 
 mvaID
 
 mvaID_Fall17V2
 
 mvaID_Fall17V2_WP80
 
 mvaID_Fall17V2_WP90
 
 mvaID_WP80
 
 mvaID_WP90
 
 name
 
 objName
 
 objType
 
 parentSrcs
 
 pfChargedIso
 
 pfChargedIsoPFPV
 
 pfChargedIsoWorstVtx
 
 PFIsoAllFall17V2
 
 PFIsoAllQuadratic
 
 PFIsoChgFall17V2
 
 PFIsoChgQuadratic
 
 pfPhoIso03
 
 pfRelIso03_all
 
 pfRelIso03_all_quadratic
 
 pfRelIso03_chg
 
 pfRelIso03_chg_quadratic
 
 phiWidth
 
 photon_id_modules_WorkingPoints_nanoAOD
 
 photon_id_modules_WorkingPoints_nanoAOD_Run2
 
 photonMCTable
 
 photonMCTask
 
 photonsMCMatchForTable
 
 photonTable
 
 photonTablesTask
 
 photonTask
 
 pixelSeed
 
 precision
 
 produceCalibratedObjs
 
 pt
 
 QuadraticEAFile_HoverE
 
 QuadraticEAFile_PFIso_Chg
 
 QuadraticEAFile_PFIso_ECal
 
 QuadraticEAFile_PFIso_HCal
 
 r9
 
 relative
 
 resolveAmbiguities
 
 resolveByMatchQuality
 
 rho
 
 rho_PFIso
 
 s4
 
 seedGain
 
 seedGainPho
 
 seediEtaOriX
 
 seediPhiOriY
 
 sieie
 
 sieip
 
 sipip
 
 slimmedPhotonsWithUserData
 
 src
 
 srcForID
 
 trkSumPtHollowConeDR03
 
 trkSumPtSolidConeDR04
 
 userFloats
 
 userIntFromBools
 
 userInts
 
 variables
 
 VIDNestedWPBitmap
 
 vidNestedWPBitmap
 
 VIDNestedWPBitmapFall17V2
 
 WorkingPoints
 
 x_calo
 
 y_calo
 
 z_calo
 

Function Documentation

◆ make_bitmapVID_docstring()

def photons_cff.make_bitmapVID_docstring (   id_modules_working_points_pset)

Definition at line 42 of file photons_cff.py.

References reco.ceil(), DeadROC_duringRun.dir, int, join(), dqm-mbProfile.log, and submitPVValidationJobs.split().

42 def make_bitmapVID_docstring(id_modules_working_points_pset):
43  pset = id_modules_working_points_pset
44 
45  for modname in pset.modules:
46  ids = __import__(modname, globals(), locals(), ['idName','cutFlow'])
47  for name in dir(ids):
48  _id = getattr(ids,name)
49  if hasattr(_id,'idName') and hasattr(_id,'cutFlow'):
50  if (len(pset.WorkingPoints)>0 and _id.idName == pset.WorkingPoints[0].split(':')[-1]):
51  cut_names = ','.join([cut.cutName.value() for cut in _id.cutFlow])
52  n_bits_per_cut = int(ceil(log(len(pset.WorkingPoints)+1,2)))
53  return 'VID compressed bitmap (%s), %d bits per cut'%(cut_names, n_bits_per_cut)
54  raise ValueError("Something is wrong in the photon ID modules parameter set!")
55 
56 
constexpr int32_t ceil(float num)
def make_bitmapVID_docstring(id_modules_working_points_pset)
Definition: photons_cff.py:42
static std::string join(char **cmd)
Definition: RemoteFile.cc:19

Variable Documentation

◆ _bitmapVIDForPho_docstring

photons_cff._bitmapVIDForPho_docstring
private

Definition at line 62 of file photons_cff.py.

◆ _bitmapVIDForPhoRun2_docstring

photons_cff._bitmapVIDForPhoRun2_docstring
private

Definition at line 67 of file photons_cff.py.

◆ _photonTask_Run2

photons_cff._photonTask_Run2
private

Definition at line 311 of file photons_cff.py.

◆ bitmapVIDForPho

photons_cff.bitmapVIDForPho

Definition at line 57 of file photons_cff.py.

◆ bitmapVIDForPhoRun2

photons_cff.bitmapVIDForPhoRun2

Definition at line 64 of file photons_cff.py.

◆ bool

photons_cff.bool

Definition at line 213 of file photons_cff.py.

◆ branchName

photons_cff.branchName

Definition at line 292 of file photons_cff.py.

◆ calibratedPatPhotonsNano

photons_cff.calibratedPatPhotonsNano

Definition at line 98 of file photons_cff.py.

◆ checkCharge

photons_cff.checkCharge

Definition at line 279 of file photons_cff.py.

◆ correctionFile

photons_cff.correctionFile

Definition at line 100 of file photons_cff.py.

◆ cut

photons_cff.cut

Definition at line 184 of file photons_cff.py.

◆ cutBased

photons_cff.cutBased

Definition at line 203 of file photons_cff.py.

◆ cutBasedID_Fall17V2_loose

photons_cff.cutBasedID_Fall17V2_loose

Definition at line 139 of file photons_cff.py.

◆ cutBasedID_Fall17V2_medium

photons_cff.cutBasedID_Fall17V2_medium

Definition at line 140 of file photons_cff.py.

◆ cutBasedID_Fall17V2_tight

photons_cff.cutBasedID_Fall17V2_tight

Definition at line 141 of file photons_cff.py.

◆ cutBasedID_loose

photons_cff.cutBasedID_loose

Definition at line 136 of file photons_cff.py.

◆ cutBasedID_medium

photons_cff.cutBasedID_medium

Definition at line 137 of file photons_cff.py.

◆ cutBasedID_tight

photons_cff.cutBasedID_tight

Definition at line 138 of file photons_cff.py.

◆ dEscaleDown

photons_cff.dEscaleDown

Definition at line 300 of file photons_cff.py.

◆ dEscaleUp

photons_cff.dEscaleUp

Definition at line 299 of file photons_cff.py.

◆ dEsigmaDown

photons_cff.dEsigmaDown

Definition at line 302 of file photons_cff.py.

◆ dEsigmaUp

photons_cff.dEsigmaUp

Definition at line 301 of file photons_cff.py.

◆ doc

photons_cff.doc

Definition at line 190 of file photons_cff.py.

◆ docString

photons_cff.docString

Definition at line 293 of file photons_cff.py.

◆ doQuadratic

photons_cff.doQuadratic

Definition at line 72 of file photons_cff.py.

◆ EAFile_PFIso_Chg

photons_cff.EAFile_PFIso_Chg

Definition at line 88 of file photons_cff.py.

◆ EAFile_PFIso_Neu

photons_cff.EAFile_PFIso_Neu

Definition at line 89 of file photons_cff.py.

◆ EAFile_PFIso_Pho

photons_cff.EAFile_PFIso_Pho

Definition at line 90 of file photons_cff.py.

◆ ecalEnergyErrPostCorrNew

photons_cff.ecalEnergyErrPostCorrNew

Definition at line 172 of file photons_cff.py.

◆ ecalEnergyPostCorrNew

photons_cff.ecalEnergyPostCorrNew

Definition at line 174 of file photons_cff.py.

◆ ecalEnergyPreCorrNew

photons_cff.ecalEnergyPreCorrNew

Definition at line 173 of file photons_cff.py.

◆ ecalPFClusterIso

photons_cff.ecalPFClusterIso

Definition at line 221 of file photons_cff.py.

◆ eCorr

photons_cff.eCorr

Definition at line 253 of file photons_cff.py.

◆ electronIdx

photons_cff.electronIdx

Definition at line 193 of file photons_cff.py.

◆ electronVeto

photons_cff.electronVeto

Definition at line 213 of file photons_cff.py.

◆ energyErr

photons_cff.energyErr

Definition at line 194 of file photons_cff.py.

◆ energyRaw

photons_cff.energyRaw

Definition at line 195 of file photons_cff.py.

◆ energyScaleDownNew

photons_cff.energyScaleDownNew

Definition at line 176 of file photons_cff.py.

◆ energyScaleUpNew

photons_cff.energyScaleUpNew

Definition at line 175 of file photons_cff.py.

◆ energySigmaDownNew

photons_cff.energySigmaDownNew

Definition at line 178 of file photons_cff.py.

◆ energySigmaUpNew

photons_cff.energySigmaUpNew

Definition at line 177 of file photons_cff.py.

◆ esEffSigmaRR

photons_cff.esEffSigmaRR

Definition at line 241 of file photons_cff.py.

◆ esEnergyOverRawE

photons_cff.esEnergyOverRawE

Definition at line 242 of file photons_cff.py.

◆ etaWidth

photons_cff.etaWidth

◆ finalPhotons

photons_cff.finalPhotons

Definition at line 182 of file photons_cff.py.

◆ float

photons_cff.float

Definition at line 194 of file photons_cff.py.

◆ haloTaggerMVAVal

photons_cff.haloTaggerMVAVal

Definition at line 243 of file photons_cff.py.

◆ hasConversionTracks

photons_cff.hasConversionTracks

Definition at line 215 of file photons_cff.py.

◆ hcalPFClusterIso

photons_cff.hcalPFClusterIso

Definition at line 222 of file photons_cff.py.

◆ hoe

photons_cff.hoe

Definition at line 229 of file photons_cff.py.

◆ hoe_PUcorr

photons_cff.hoe_PUcorr

Definition at line 230 of file photons_cff.py.

◆ hOverEForPho

photons_cff.hOverEForPho

Definition at line 79 of file photons_cff.py.

◆ HoverEQuadratic

photons_cff.HoverEQuadratic

Definition at line 130 of file photons_cff.py.

Referenced by HoverEValueMapProducer< T >.doHoverEPho().

◆ int

photons_cff.int

Definition at line 235 of file photons_cff.py.

Referenced by make_bitmapVID_docstring().

◆ isoForPho

photons_cff.isoForPho

Definition at line 69 of file photons_cff.py.

◆ isoForPhoFall17V2

photons_cff.isoForPhoFall17V2

Definition at line 86 of file photons_cff.py.

◆ isScEtaEB

photons_cff.isScEtaEB

Definition at line 231 of file photons_cff.py.

◆ isScEtaEE

photons_cff.isScEtaEE

Definition at line 232 of file photons_cff.py.

◆ jetIdx

photons_cff.jetIdx

Definition at line 192 of file photons_cff.py.

◆ matched

photons_cff.matched

Definition at line 277 of file photons_cff.py.

◆ maxDeltaR

photons_cff.maxDeltaR

Definition at line 281 of file photons_cff.py.

◆ maxDPtRel

photons_cff.maxDPtRel

Definition at line 282 of file photons_cff.py.

◆ mcMap

photons_cff.mcMap

Definition at line 289 of file photons_cff.py.

◆ mcPdgId

photons_cff.mcPdgId

Definition at line 278 of file photons_cff.py.

◆ mcStatus

photons_cff.mcStatus

Definition at line 280 of file photons_cff.py.

◆ modules

photons_cff.modules

Definition at line 9 of file photons_cff.py.

◆ mvaID

photons_cff.mvaID

Definition at line 127 of file photons_cff.py.

Referenced by pat::PATMuonProducer.produce(), and pat::Muon.setMvaIDValue().

◆ mvaID_Fall17V2

photons_cff.mvaID_Fall17V2

Definition at line 131 of file photons_cff.py.

◆ mvaID_Fall17V2_WP80

photons_cff.mvaID_Fall17V2_WP80

Definition at line 145 of file photons_cff.py.

◆ mvaID_Fall17V2_WP90

photons_cff.mvaID_Fall17V2_WP90

Definition at line 144 of file photons_cff.py.

◆ mvaID_WP80

photons_cff.mvaID_WP80

Definition at line 143 of file photons_cff.py.

◆ mvaID_WP90

photons_cff.mvaID_WP90

Definition at line 142 of file photons_cff.py.

◆ name

photons_cff.name

Definition at line 189 of file photons_cff.py.

◆ objName

photons_cff.objName

Definition at line 290 of file photons_cff.py.

◆ objType

photons_cff.objType

Definition at line 291 of file photons_cff.py.

◆ parentSrcs

photons_cff.parentSrcs

Definition at line 125 of file photons_cff.py.

◆ pfChargedIso

photons_cff.pfChargedIso

Definition at line 224 of file photons_cff.py.

◆ pfChargedIsoPFPV

photons_cff.pfChargedIsoPFPV

Definition at line 225 of file photons_cff.py.

◆ pfChargedIsoWorstVtx

photons_cff.pfChargedIsoWorstVtx

Definition at line 226 of file photons_cff.py.

◆ PFIsoAllFall17V2

photons_cff.PFIsoAllFall17V2

Definition at line 133 of file photons_cff.py.

◆ PFIsoAllQuadratic

photons_cff.PFIsoAllQuadratic

Definition at line 129 of file photons_cff.py.

Referenced by IsoValueMapProducer< T >.doPFIsoPhoQuadratic().

◆ PFIsoChgFall17V2

photons_cff.PFIsoChgFall17V2

Definition at line 132 of file photons_cff.py.

◆ PFIsoChgQuadratic

photons_cff.PFIsoChgQuadratic

Definition at line 128 of file photons_cff.py.

Referenced by IsoValueMapProducer< T >.doPFIsoPhoQuadratic().

◆ pfPhoIso03

photons_cff.pfPhoIso03

Definition at line 223 of file photons_cff.py.

◆ pfRelIso03_all

photons_cff.pfRelIso03_all

Definition at line 269 of file photons_cff.py.

◆ pfRelIso03_all_quadratic

photons_cff.pfRelIso03_all_quadratic

Definition at line 228 of file photons_cff.py.

◆ pfRelIso03_chg

photons_cff.pfRelIso03_chg

Definition at line 268 of file photons_cff.py.

◆ pfRelIso03_chg_quadratic

photons_cff.pfRelIso03_chg_quadratic

Definition at line 227 of file photons_cff.py.

◆ phiWidth

photons_cff.phiWidth

◆ photon_id_modules_WorkingPoints_nanoAOD

photons_cff.photon_id_modules_WorkingPoints_nanoAOD

Definition at line 8 of file photons_cff.py.

◆ photon_id_modules_WorkingPoints_nanoAOD_Run2

photons_cff.photon_id_modules_WorkingPoints_nanoAOD_Run2

Definition at line 23 of file photons_cff.py.

◆ photonMCTable

photons_cff.photonMCTable

Definition at line 287 of file photons_cff.py.

◆ photonMCTask

photons_cff.photonMCTask

Definition at line 309 of file photons_cff.py.

◆ photonsMCMatchForTable

photons_cff.photonsMCMatchForTable

Definition at line 275 of file photons_cff.py.

◆ photonTable

photons_cff.photonTable

Definition at line 187 of file photons_cff.py.

◆ photonTablesTask

photons_cff.photonTablesTask

Definition at line 308 of file photons_cff.py.

◆ photonTask

photons_cff.photonTask

Definition at line 306 of file photons_cff.py.

◆ pixelSeed

photons_cff.pixelSeed

Definition at line 214 of file photons_cff.py.

◆ precision

photons_cff.precision

Definition at line 194 of file photons_cff.py.

◆ produceCalibratedObjs

photons_cff.produceCalibratedObjs

Definition at line 99 of file photons_cff.py.

◆ pt

photons_cff.pt

Definition at line 251 of file photons_cff.py.

◆ QuadraticEAFile_HoverE

photons_cff.QuadraticEAFile_HoverE

Definition at line 83 of file photons_cff.py.

◆ QuadraticEAFile_PFIso_Chg

photons_cff.QuadraticEAFile_PFIso_Chg

Definition at line 74 of file photons_cff.py.

◆ QuadraticEAFile_PFIso_ECal

photons_cff.QuadraticEAFile_PFIso_ECal

Definition at line 75 of file photons_cff.py.

◆ QuadraticEAFile_PFIso_HCal

photons_cff.QuadraticEAFile_PFIso_HCal

Definition at line 76 of file photons_cff.py.

◆ r9

photons_cff.r9

Definition at line 196 of file photons_cff.py.

◆ relative

photons_cff.relative

Definition at line 71 of file photons_cff.py.

◆ resolveAmbiguities

photons_cff.resolveAmbiguities

Definition at line 283 of file photons_cff.py.

◆ resolveByMatchQuality

photons_cff.resolveByMatchQuality

Definition at line 284 of file photons_cff.py.

◆ rho

photons_cff.rho

Definition at line 82 of file photons_cff.py.

◆ rho_PFIso

photons_cff.rho_PFIso

Definition at line 73 of file photons_cff.py.

◆ s4

photons_cff.s4

◆ seedGain

photons_cff.seedGain

Definition at line 150 of file photons_cff.py.

◆ seedGainPho

photons_cff.seedGainPho

Definition at line 94 of file photons_cff.py.

◆ seediEtaOriX

photons_cff.seediEtaOriX

Definition at line 234 of file photons_cff.py.

◆ seediPhiOriY

photons_cff.seediPhiOriY

Definition at line 235 of file photons_cff.py.

◆ sieie

photons_cff.sieie

Definition at line 197 of file photons_cff.py.

◆ sieip

photons_cff.sieip

Definition at line 199 of file photons_cff.py.

◆ sipip

photons_cff.sipip

Definition at line 198 of file photons_cff.py.

◆ slimmedPhotonsWithUserData

photons_cff.slimmedPhotonsWithUserData

Definition at line 123 of file photons_cff.py.

◆ src

photons_cff.src

Definition at line 58 of file photons_cff.py.

◆ srcForID

photons_cff.srcForID

Definition at line 59 of file photons_cff.py.

◆ trkSumPtHollowConeDR03

photons_cff.trkSumPtHollowConeDR03

Definition at line 219 of file photons_cff.py.

◆ trkSumPtSolidConeDR04

photons_cff.trkSumPtSolidConeDR04

Definition at line 220 of file photons_cff.py.

◆ userFloats

photons_cff.userFloats

Definition at line 126 of file photons_cff.py.

◆ userIntFromBools

photons_cff.userIntFromBools

Definition at line 135 of file photons_cff.py.

◆ userInts

photons_cff.userInts

Definition at line 147 of file photons_cff.py.

◆ variables

photons_cff.variables

Definition at line 191 of file photons_cff.py.

◆ VIDNestedWPBitmap

photons_cff.VIDNestedWPBitmap

Definition at line 148 of file photons_cff.py.

◆ vidNestedWPBitmap

photons_cff.vidNestedWPBitmap

Definition at line 208 of file photons_cff.py.

◆ VIDNestedWPBitmapFall17V2

photons_cff.VIDNestedWPBitmapFall17V2

Definition at line 149 of file photons_cff.py.

◆ WorkingPoints

photons_cff.WorkingPoints

Definition at line 16 of file photons_cff.py.

◆ x_calo

photons_cff.x_calo

Definition at line 237 of file photons_cff.py.

◆ y_calo

photons_cff.y_calo

Definition at line 238 of file photons_cff.py.

◆ z_calo

photons_cff.z_calo

Definition at line 239 of file photons_cff.py.