CMS 3D CMS Logo

Functions | Variables
photons_cff Namespace Reference

Functions

def make_bitmapVID_docstring (id_modules_working_points_pset)
 

Variables

 _withSpring16V2p2_Task
 
 _withUpdatePho_Task
 
 bitmapVIDForPho
 
 bitmapVIDForPhoSpring16V2p2
 
 bool
 
 branchName
 
 calibratedPatPhotonsNano
 
 checkCharge
 
 correctionFile
 
 cut
 
 cutBased
 
 cutBased_Fall17V1Bitmap
 
 cutBased_Spring16V2p2
 
 cutbasedID_loose
 
 cutbasedID_medium
 
 cutbasedID_tight
 
 cutbasedIDV1_loose
 
 cutbasedIDV1_medium
 
 cutbasedIDV1_tight
 
 cutID_Spring16_loose
 
 cutID_Spring16_medium
 
 cutID_Spring16_tight
 
 dEscaleDown
 
 dEscaleUp
 adding 4 most imp scale & smearing variables to table More...
 
 dEsigmaDown
 
 dEsigmaUp
 
 doc
 
 docString
 
 EAFile_PFIso_Chg
 
 EAFile_PFIso_Neu
 
 EAFile_PFIso_Pho
 
 ecalEnergyErrPostCorrNew
 
 ecalEnergyPostCorrNew
 
 ecalEnergyPreCorrNew
 
 eCorr
 
 electronIdx
 
 electronVeto
 
 energyErr
 
 energyRaw
 
 energyScaleDownNew
 
 energyScaleUpNew
 
 energySigmaDownNew
 
 energySigmaUpNew
 
 esEffSigmaRR
 
 esEnergyOverRawE
 
 etaWidth
 
 extension
 
 finalPhotons
 
 float
 
 hoe
 
 int
 
 isoForPho
 
 isScEtaEB
 
 isScEtaEE
 
 jetIdx
 
 mapIsoChg
 
 mapIsoNeu
 
 mapIsoPho
 
 matched
 
 maxDeltaR
 
 maxDPtRel
 
 mcMap
 
 mcPdgId
 
 mcStatus
 
 modifications
 
 modifierConfig
 
 modules
 
 mvaID
 
 mvaID_Spring16nonTrigV1
 
 mvaID_Spring16nonTrigV1_WP80
 
 mvaID_Spring16nonTrigV1_WP90
 
 mvaID_WP80
 
 mvaID_WP90
 
 name
 
 objName
 
 objType
 
 pfChargedIsoPFPV
 
 pfChargedIsoWorstVtx
 
 PFIsoAll
 
 PFIsoChg
 
 pfPhoIso03
 
 pfRelIso03_all
 
 pfRelIso03_chg
 
 phiWidth
 
 photon_id_modules_WorkingPoints_nanoAOD
 
 photon_id_modules_WorkingPoints_nanoAOD_Spring16V2p2
 
 photonMCTable
 
 photonMCTask
 
 photonsMCMatchForTable
 
 photonTable
 
 photonTablesTask
 
 photonTask
 
 pixelSeed
 
 precision
 
 produceCalibratedObjs
 
 pt
 
 r9
 
 relative
 
 resolveAmbiguities
 
 resolveByMatchQuality
 
 rho_PFIso
 
 s4
 
 seedGain
 
 seedGainPho
 
 sieie
 
 sieip
 
 singleton
 
 sipip
 
 slimmedPhotonsTo106X
 
 slimmedPhotonsWithUserData
 TEMPORARY as no ID for Run3 yet. More...
 
 src
 
 userFloats
 
 userIntFromBools
 
 userInts
 
 variables
 
 VIDNestedWPBitmap
 
 vidNestedWPBitmap
 
 VIDNestedWPBitmap_Spring16V2p2
 
 vidNestedWPBitmap_Spring16V2p2
 
 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 32 of file photons_cff.py.

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

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

Variable Documentation

◆ _withSpring16V2p2_Task

photons_cff._withSpring16V2p2_Task
private

Definition at line 370 of file photons_cff.py.

◆ _withUpdatePho_Task

photons_cff._withUpdatePho_Task
private

Definition at line 363 of file photons_cff.py.

◆ bitmapVIDForPho

photons_cff.bitmapVIDForPho

Definition at line 46 of file photons_cff.py.

◆ bitmapVIDForPhoSpring16V2p2

photons_cff.bitmapVIDForPhoSpring16V2p2

Definition at line 51 of file photons_cff.py.

◆ bool

photons_cff.bool

Definition at line 203 of file photons_cff.py.

◆ branchName

photons_cff.branchName

Definition at line 299 of file photons_cff.py.

◆ calibratedPatPhotonsNano

photons_cff.calibratedPatPhotonsNano

Definition at line 78 of file photons_cff.py.

◆ checkCharge

photons_cff.checkCharge

Definition at line 286 of file photons_cff.py.

◆ correctionFile

photons_cff.correctionFile

Definition at line 80 of file photons_cff.py.

◆ cut

photons_cff.cut

Definition at line 166 of file photons_cff.py.

◆ cutBased

photons_cff.cutBased

Definition at line 188 of file photons_cff.py.

◆ cutBased_Fall17V1Bitmap

photons_cff.cutBased_Fall17V1Bitmap

Definition at line 193 of file photons_cff.py.

◆ cutBased_Spring16V2p2

photons_cff.cutBased_Spring16V2p2

Definition at line 264 of file photons_cff.py.

◆ cutbasedID_loose

photons_cff.cutbasedID_loose

Definition at line 125 of file photons_cff.py.

◆ cutbasedID_medium

photons_cff.cutbasedID_medium

Definition at line 126 of file photons_cff.py.

◆ cutbasedID_tight

photons_cff.cutbasedID_tight

Definition at line 127 of file photons_cff.py.

◆ cutbasedIDV1_loose

photons_cff.cutbasedIDV1_loose

Definition at line 130 of file photons_cff.py.

◆ cutbasedIDV1_medium

photons_cff.cutbasedIDV1_medium

Definition at line 131 of file photons_cff.py.

◆ cutbasedIDV1_tight

photons_cff.cutbasedIDV1_tight

Definition at line 132 of file photons_cff.py.

◆ cutID_Spring16_loose

photons_cff.cutID_Spring16_loose

Definition at line 251 of file photons_cff.py.

◆ cutID_Spring16_medium

photons_cff.cutID_Spring16_medium

Definition at line 252 of file photons_cff.py.

◆ cutID_Spring16_tight

photons_cff.cutID_Spring16_tight

Definition at line 253 of file photons_cff.py.

◆ dEscaleDown

photons_cff.dEscaleDown

Definition at line 325 of file photons_cff.py.

◆ dEscaleUp

photons_cff.dEscaleUp

adding 4 most imp scale & smearing variables to table

Definition at line 324 of file photons_cff.py.

◆ dEsigmaDown

photons_cff.dEsigmaDown

Definition at line 327 of file photons_cff.py.

◆ dEsigmaUp

photons_cff.dEsigmaUp

Definition at line 326 of file photons_cff.py.

◆ doc

photons_cff.doc

Definition at line 173 of file photons_cff.py.

◆ docString

photons_cff.docString

Definition at line 300 of file photons_cff.py.

◆ EAFile_PFIso_Chg

photons_cff.EAFile_PFIso_Chg

Definition at line 63 of file photons_cff.py.

◆ EAFile_PFIso_Neu

photons_cff.EAFile_PFIso_Neu

Definition at line 64 of file photons_cff.py.

◆ EAFile_PFIso_Pho

photons_cff.EAFile_PFIso_Pho

Definition at line 65 of file photons_cff.py.

◆ ecalEnergyErrPostCorrNew

photons_cff.ecalEnergyErrPostCorrNew

Definition at line 143 of file photons_cff.py.

◆ ecalEnergyPostCorrNew

photons_cff.ecalEnergyPostCorrNew

Definition at line 145 of file photons_cff.py.

◆ ecalEnergyPreCorrNew

photons_cff.ecalEnergyPreCorrNew

Definition at line 144 of file photons_cff.py.

◆ eCorr

photons_cff.eCorr

Definition at line 233 of file photons_cff.py.

◆ electronIdx

photons_cff.electronIdx

Definition at line 178 of file photons_cff.py.

◆ electronVeto

photons_cff.electronVeto

Definition at line 203 of file photons_cff.py.

◆ energyErr

photons_cff.energyErr

Definition at line 179 of file photons_cff.py.

◆ energyRaw

photons_cff.energyRaw

Definition at line 180 of file photons_cff.py.

◆ energyScaleDownNew

photons_cff.energyScaleDownNew

Definition at line 147 of file photons_cff.py.

◆ energyScaleUpNew

photons_cff.energyScaleUpNew

Definition at line 146 of file photons_cff.py.

◆ energySigmaDownNew

photons_cff.energySigmaDownNew

Definition at line 149 of file photons_cff.py.

◆ energySigmaUpNew

photons_cff.energySigmaUpNew

Definition at line 148 of file photons_cff.py.

◆ esEffSigmaRR

photons_cff.esEffSigmaRR

Definition at line 222 of file photons_cff.py.

◆ esEnergyOverRawE

photons_cff.esEnergyOverRawE

Definition at line 223 of file photons_cff.py.

◆ etaWidth

photons_cff.etaWidth

◆ extension

photons_cff.extension

Definition at line 175 of file photons_cff.py.

◆ finalPhotons

photons_cff.finalPhotons

Definition at line 164 of file photons_cff.py.

◆ float

photons_cff.float

Definition at line 179 of file photons_cff.py.

◆ hoe

photons_cff.hoe

Definition at line 213 of file photons_cff.py.

◆ int

photons_cff.int

Definition at line 177 of file photons_cff.py.

Referenced by make_bitmapVID_docstring().

◆ isoForPho

photons_cff.isoForPho

Definition at line 56 of file photons_cff.py.

◆ isScEtaEB

photons_cff.isScEtaEB

Definition at line 214 of file photons_cff.py.

◆ isScEtaEE

photons_cff.isScEtaEE

Definition at line 215 of file photons_cff.py.

◆ jetIdx

photons_cff.jetIdx

Definition at line 177 of file photons_cff.py.

◆ mapIsoChg

photons_cff.mapIsoChg

Definition at line 60 of file photons_cff.py.

◆ mapIsoNeu

photons_cff.mapIsoNeu

Definition at line 61 of file photons_cff.py.

◆ mapIsoPho

photons_cff.mapIsoPho

Definition at line 62 of file photons_cff.py.

◆ matched

photons_cff.matched

Definition at line 284 of file photons_cff.py.

◆ maxDeltaR

photons_cff.maxDeltaR

Definition at line 288 of file photons_cff.py.

◆ maxDPtRel

photons_cff.maxDPtRel

Definition at line 289 of file photons_cff.py.

◆ mcMap

photons_cff.mcMap

Definition at line 296 of file photons_cff.py.

◆ mcPdgId

photons_cff.mcPdgId

Definition at line 285 of file photons_cff.py.

◆ mcStatus

photons_cff.mcStatus

Definition at line 287 of file photons_cff.py.

◆ modifications

photons_cff.modifications

Definition at line 307 of file photons_cff.py.

◆ modifierConfig

photons_cff.modifierConfig

Definition at line 307 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 120 of file photons_cff.py.

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

◆ mvaID_Spring16nonTrigV1

photons_cff.mvaID_Spring16nonTrigV1

Definition at line 248 of file photons_cff.py.

◆ mvaID_Spring16nonTrigV1_WP80

photons_cff.mvaID_Spring16nonTrigV1_WP80

Definition at line 255 of file photons_cff.py.

◆ mvaID_Spring16nonTrigV1_WP90

photons_cff.mvaID_Spring16nonTrigV1_WP90

Definition at line 254 of file photons_cff.py.

◆ mvaID_WP80

photons_cff.mvaID_WP80

Definition at line 129 of file photons_cff.py.

◆ mvaID_WP90

photons_cff.mvaID_WP90

Definition at line 128 of file photons_cff.py.

◆ name

photons_cff.name

Definition at line 172 of file photons_cff.py.

◆ objName

photons_cff.objName

Definition at line 297 of file photons_cff.py.

◆ objType

photons_cff.objType

Definition at line 298 of file photons_cff.py.

◆ pfChargedIsoPFPV

photons_cff.pfChargedIsoPFPV

Definition at line 209 of file photons_cff.py.

◆ pfChargedIsoWorstVtx

photons_cff.pfChargedIsoWorstVtx

Definition at line 210 of file photons_cff.py.

◆ PFIsoAll

photons_cff.PFIsoAll

Definition at line 122 of file photons_cff.py.

◆ PFIsoChg

photons_cff.PFIsoChg

Definition at line 121 of file photons_cff.py.

◆ pfPhoIso03

photons_cff.pfPhoIso03

Definition at line 208 of file photons_cff.py.

◆ pfRelIso03_all

photons_cff.pfRelIso03_all

Definition at line 212 of file photons_cff.py.

◆ pfRelIso03_chg

photons_cff.pfRelIso03_chg

Definition at line 211 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_Spring16V2p2

photons_cff.photon_id_modules_WorkingPoints_nanoAOD_Spring16V2p2

Definition at line 23 of file photons_cff.py.

◆ photonMCTable

photons_cff.photonMCTable

Definition at line 294 of file photons_cff.py.

◆ photonMCTask

photons_cff.photonMCTask

Definition at line 340 of file photons_cff.py.

◆ photonsMCMatchForTable

photons_cff.photonsMCMatchForTable

Definition at line 282 of file photons_cff.py.

◆ photonTable

photons_cff.photonTable

Definition at line 169 of file photons_cff.py.

◆ photonTablesTask

photons_cff.photonTablesTask

Definition at line 339 of file photons_cff.py.

◆ photonTask

photons_cff.photonTask

Definition at line 338 of file photons_cff.py.

◆ pixelSeed

photons_cff.pixelSeed

Definition at line 204 of file photons_cff.py.

◆ precision

photons_cff.precision

Definition at line 179 of file photons_cff.py.

◆ produceCalibratedObjs

photons_cff.produceCalibratedObjs

Definition at line 79 of file photons_cff.py.

◆ pt

photons_cff.pt

Definition at line 231 of file photons_cff.py.

◆ r9

photons_cff.r9

Definition at line 181 of file photons_cff.py.

◆ relative

photons_cff.relative

Definition at line 58 of file photons_cff.py.

◆ resolveAmbiguities

photons_cff.resolveAmbiguities

Definition at line 290 of file photons_cff.py.

◆ resolveByMatchQuality

photons_cff.resolveByMatchQuality

Definition at line 291 of file photons_cff.py.

◆ rho_PFIso

photons_cff.rho_PFIso

Definition at line 59 of file photons_cff.py.

◆ s4

photons_cff.s4

◆ seedGain

photons_cff.seedGain

Definition at line 136 of file photons_cff.py.

◆ seedGainPho

photons_cff.seedGainPho

Definition at line 74 of file photons_cff.py.

◆ sieie

photons_cff.sieie

Definition at line 182 of file photons_cff.py.

◆ sieip

photons_cff.sieip

Definition at line 184 of file photons_cff.py.

◆ singleton

photons_cff.singleton

Definition at line 174 of file photons_cff.py.

◆ sipip

photons_cff.sipip

Definition at line 183 of file photons_cff.py.

◆ slimmedPhotonsTo106X

photons_cff.slimmedPhotonsTo106X

Definition at line 305 of file photons_cff.py.

◆ slimmedPhotonsWithUserData

photons_cff.slimmedPhotonsWithUserData

TEMPORARY as no ID for Run3 yet.

Definition at line 117 of file photons_cff.py.

◆ src

photons_cff.src

Definition at line 47 of file photons_cff.py.

◆ userFloats

photons_cff.userFloats

Definition at line 119 of file photons_cff.py.

◆ userIntFromBools

photons_cff.userIntFromBools

Definition at line 124 of file photons_cff.py.

◆ userInts

photons_cff.userInts

Definition at line 134 of file photons_cff.py.

◆ variables

photons_cff.variables

Definition at line 176 of file photons_cff.py.

◆ VIDNestedWPBitmap

photons_cff.VIDNestedWPBitmap

Definition at line 135 of file photons_cff.py.

◆ vidNestedWPBitmap

photons_cff.vidNestedWPBitmap

Definition at line 198 of file photons_cff.py.

◆ VIDNestedWPBitmap_Spring16V2p2

photons_cff.VIDNestedWPBitmap_Spring16V2p2

Definition at line 259 of file photons_cff.py.

◆ vidNestedWPBitmap_Spring16V2p2

photons_cff.vidNestedWPBitmap_Spring16V2p2

Definition at line 269 of file photons_cff.py.

◆ WorkingPoints

photons_cff.WorkingPoints

Definition at line 17 of file photons_cff.py.

◆ x_calo

photons_cff.x_calo

Definition at line 218 of file photons_cff.py.

◆ y_calo

photons_cff.y_calo

Definition at line 219 of file photons_cff.py.

◆ z_calo

photons_cff.z_calo

Definition at line 220 of file photons_cff.py.