CMS 3D CMS Logo

Functions | Variables
photons_cff Namespace Reference

Functions

def make_bitmapVID_docstring (id_modules_working_points_pset)
 

Variables

 _updatePhoTo106X_sequence
 
 _with102Xv1Scale_sequence
 
 _with80XScale_sequence
 
 _with94Xv1Scale_sequence
 
 _with94Xv2Scale_sequence
 
 _withUL17Scale_sequence
 UL to be done first. More...
 
 _withUL18Scale_sequence
 
 _withUpdatePho_sequence
 
 bitmapVIDForPho
 
 bitmapVIDForPhoSpring16V2p2
 
 bool
 
 branchName
 
 calibratedPatPhotons102Xv1
 
 calibratedPatPhotons80XLegacy
 
 calibratedPatPhotons94Xv1
 
 calibratedPatPhotons94Xv2
 
 calibratedPatPhotonsUL17
 
 calibratedPatPhotonsUL18
 
 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
 
 doc
 
 docString
 
 EAFile_PFIso_Chg
 
 EAFile_PFIso_Neu
 
 EAFile_PFIso_Pho
 
 ecalEnergyErrPostCorrNew
 
 ecalEnergyPostCorrNew
 
 ecalEnergyPreCorrNew
 
 eCorr
 
 electronIdx
 
 electronVeto
 
 energyErr
 
 extension
 
 finalPhotons
 
 float
 
 hoe
 
 int
 
 isoForPho
 
 isScEtaEB
 
 isScEtaEE
 
 jetIdx
 
 mapIsoChg
 
 mapIsoNeu
 
 mapIsoPho
 
 matched
 
 maxDeltaR
 
 maxDPtRel
 
 mcMap
 
 mcPdgId
 
 mcStatus
 
 modifications
 
 modifierConfig
 
 modules
 
 mvaID
 
 mvaID_Fall17V1p1
 
 mvaID_Spring16nonTrigV1
 
 mvaID_Spring16nonTrigV1_WP80
 
 mvaID_Spring16nonTrigV1_WP90
 
 mvaID_WP80
 
 mvaID_WP90
 
 name
 
 objName
 
 objType
 
 PFIsoAll
 
 PFIsoChg
 
 pfRelIso03_all
 
 pfRelIso03_chg
 
 photon_id_modules_WorkingPoints_nanoAOD
 
 photon_id_modules_WorkingPoints_nanoAOD_Spring16V2p2
 
 photonMC
 
 photonMCTable
 
 photonSequence
 
 photonsMCMatchForTable
 
 photonTable
 
 photonTables
 
 pixelSeed
 
 precision
 
 produceCalibratedObjs
 
 pt
 
 r9
 
 relative
 
 resolveAmbiguities
 
 resolveByMatchQuality
 
 rho_PFIso
 
 seedGain
 
 seedGainPho
 
 sieie
 
 singleton
 
 slimmedPhotonsTo106X
 
 slimmedPhotonsWithUserData
 
 src
 
 userFloats
 
 userIntFromBools
 
 userInts
 
 variables
 
 VIDNestedWPBitmap
 
 vidNestedWPBitmap
 
 VIDNestedWPBitmap_Spring16V2p2
 
 vidNestedWPBitmap_Spring16V2p2
 
 WorkingPoints
 

Function Documentation

def photons_cff.make_bitmapVID_docstring (   id_modules_working_points_pset)

Definition at line 30 of file photons_cff.py.

References dir, int, join(), cmsBatch.log, and split.

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

Variable Documentation

photons_cff._updatePhoTo106X_sequence
private

Definition at line 324 of file photons_cff.py.

photons_cff._with102Xv1Scale_sequence
private

Definition at line 342 of file photons_cff.py.

photons_cff._with80XScale_sequence
private

Definition at line 330 of file photons_cff.py.

photons_cff._with94Xv1Scale_sequence
private

Definition at line 334 of file photons_cff.py.

photons_cff._with94Xv2Scale_sequence
private

Definition at line 338 of file photons_cff.py.

photons_cff._withUL17Scale_sequence
private

UL to be done first.

Definition at line 315 of file photons_cff.py.

photons_cff._withUL18Scale_sequence
private

Definition at line 319 of file photons_cff.py.

photons_cff._withUpdatePho_sequence
private

Definition at line 325 of file photons_cff.py.

photons_cff.bitmapVIDForPho

Definition at line 44 of file photons_cff.py.

photons_cff.bitmapVIDForPhoSpring16V2p2

Definition at line 49 of file photons_cff.py.

photons_cff.bool

Definition at line 203 of file photons_cff.py.

photons_cff.branchName

Definition at line 275 of file photons_cff.py.

photons_cff.calibratedPatPhotons102Xv1

Definition at line 86 of file photons_cff.py.

photons_cff.calibratedPatPhotons80XLegacy

Definition at line 101 of file photons_cff.py.

photons_cff.calibratedPatPhotons94Xv1

Definition at line 91 of file photons_cff.py.

photons_cff.calibratedPatPhotons94Xv2

Definition at line 96 of file photons_cff.py.

photons_cff.calibratedPatPhotonsUL17

Definition at line 76 of file photons_cff.py.

photons_cff.calibratedPatPhotonsUL18

Definition at line 81 of file photons_cff.py.

photons_cff.checkCharge

Definition at line 262 of file photons_cff.py.

photons_cff.correctionFile

Definition at line 78 of file photons_cff.py.

photons_cff.cut

Definition at line 172 of file photons_cff.py.

photons_cff.cutBased

Definition at line 188 of file photons_cff.py.

photons_cff.cutBased_Fall17V1Bitmap

Definition at line 193 of file photons_cff.py.

photons_cff.cutBased_Spring16V2p2

Definition at line 209 of file photons_cff.py.

photons_cff.cutbasedID_loose

Definition at line 116 of file photons_cff.py.

photons_cff.cutbasedID_medium

Definition at line 117 of file photons_cff.py.

photons_cff.cutbasedID_tight

Definition at line 118 of file photons_cff.py.

photons_cff.cutbasedIDV1_loose

Definition at line 121 of file photons_cff.py.

photons_cff.cutbasedIDV1_medium

Definition at line 122 of file photons_cff.py.

photons_cff.cutbasedIDV1_tight

Definition at line 123 of file photons_cff.py.

photons_cff.cutID_Spring16_loose

Definition at line 124 of file photons_cff.py.

photons_cff.cutID_Spring16_medium

Definition at line 125 of file photons_cff.py.

photons_cff.cutID_Spring16_tight

Definition at line 126 of file photons_cff.py.

photons_cff.doc

Definition at line 179 of file photons_cff.py.

photons_cff.docString

Definition at line 276 of file photons_cff.py.

photons_cff.EAFile_PFIso_Chg

Definition at line 61 of file photons_cff.py.

photons_cff.EAFile_PFIso_Neu

Definition at line 62 of file photons_cff.py.

photons_cff.EAFile_PFIso_Pho

Definition at line 63 of file photons_cff.py.

photons_cff.ecalEnergyErrPostCorrNew

Definition at line 138 of file photons_cff.py.

photons_cff.ecalEnergyPostCorrNew

Definition at line 140 of file photons_cff.py.

photons_cff.ecalEnergyPreCorrNew

Definition at line 139 of file photons_cff.py.

photons_cff.eCorr

Definition at line 239 of file photons_cff.py.

photons_cff.electronIdx

Definition at line 184 of file photons_cff.py.

photons_cff.electronVeto

Definition at line 203 of file photons_cff.py.

photons_cff.energyErr

Definition at line 185 of file photons_cff.py.

photons_cff.extension

Definition at line 181 of file photons_cff.py.

photons_cff.finalPhotons

Definition at line 170 of file photons_cff.py.

photons_cff.float

Definition at line 185 of file photons_cff.py.

photons_cff.hoe

Definition at line 227 of file photons_cff.py.

photons_cff.int

Definition at line 183 of file photons_cff.py.

Referenced by make_bitmapVID_docstring().

photons_cff.isoForPho

Definition at line 54 of file photons_cff.py.

photons_cff.isScEtaEB

Definition at line 228 of file photons_cff.py.

photons_cff.isScEtaEE

Definition at line 229 of file photons_cff.py.

photons_cff.jetIdx

Definition at line 183 of file photons_cff.py.

photons_cff.mapIsoChg

Definition at line 58 of file photons_cff.py.

photons_cff.mapIsoNeu

Definition at line 59 of file photons_cff.py.

photons_cff.mapIsoPho

Definition at line 60 of file photons_cff.py.

photons_cff.matched

Definition at line 260 of file photons_cff.py.

photons_cff.maxDeltaR

Definition at line 264 of file photons_cff.py.

photons_cff.maxDPtRel

Definition at line 265 of file photons_cff.py.

photons_cff.mcMap

Definition at line 272 of file photons_cff.py.

photons_cff.mcPdgId

Definition at line 261 of file photons_cff.py.

photons_cff.mcStatus

Definition at line 263 of file photons_cff.py.

photons_cff.modifications

Definition at line 283 of file photons_cff.py.

photons_cff.modifierConfig

Definition at line 283 of file photons_cff.py.

photons_cff.modules

Definition at line 7 of file photons_cff.py.

photons_cff.mvaID

Definition at line 109 of file photons_cff.py.

photons_cff.mvaID_Fall17V1p1

Definition at line 110 of file photons_cff.py.

photons_cff.mvaID_Spring16nonTrigV1

Definition at line 111 of file photons_cff.py.

photons_cff.mvaID_Spring16nonTrigV1_WP80

Definition at line 128 of file photons_cff.py.

photons_cff.mvaID_Spring16nonTrigV1_WP90

Definition at line 127 of file photons_cff.py.

photons_cff.mvaID_WP80

Definition at line 120 of file photons_cff.py.

photons_cff.mvaID_WP90

Definition at line 119 of file photons_cff.py.

photons_cff.name

Definition at line 178 of file photons_cff.py.

photons_cff.objName

Definition at line 273 of file photons_cff.py.

photons_cff.objType

Definition at line 274 of file photons_cff.py.

photons_cff.PFIsoAll

Definition at line 113 of file photons_cff.py.

photons_cff.PFIsoChg

Definition at line 112 of file photons_cff.py.

photons_cff.pfRelIso03_all

Definition at line 226 of file photons_cff.py.

photons_cff.pfRelIso03_chg

Definition at line 225 of file photons_cff.py.

photons_cff.photon_id_modules_WorkingPoints_nanoAOD

Definition at line 6 of file photons_cff.py.

photons_cff.photon_id_modules_WorkingPoints_nanoAOD_Spring16V2p2

Definition at line 21 of file photons_cff.py.

photons_cff.photonMC

Definition at line 310 of file photons_cff.py.

photons_cff.photonMCTable

Definition at line 270 of file photons_cff.py.

photons_cff.photonSequence

Definition at line 300 of file photons_cff.py.

photons_cff.photonsMCMatchForTable

Definition at line 258 of file photons_cff.py.

photons_cff.photonTable

Definition at line 175 of file photons_cff.py.

photons_cff.photonTables

Definition at line 309 of file photons_cff.py.

photons_cff.pixelSeed

Definition at line 204 of file photons_cff.py.

photons_cff.precision

Definition at line 185 of file photons_cff.py.

photons_cff.produceCalibratedObjs

Definition at line 77 of file photons_cff.py.

photons_cff.pt

Definition at line 237 of file photons_cff.py.

photons_cff.r9

Definition at line 186 of file photons_cff.py.

photons_cff.relative

Definition at line 56 of file photons_cff.py.

photons_cff.resolveAmbiguities

Definition at line 266 of file photons_cff.py.

photons_cff.resolveByMatchQuality

Definition at line 267 of file photons_cff.py.

photons_cff.rho_PFIso

Definition at line 57 of file photons_cff.py.

photons_cff.seedGain

Definition at line 133 of file photons_cff.py.

photons_cff.seedGainPho

Definition at line 72 of file photons_cff.py.

photons_cff.sieie

Definition at line 187 of file photons_cff.py.

photons_cff.singleton

Definition at line 180 of file photons_cff.py.

photons_cff.slimmedPhotonsTo106X

Definition at line 281 of file photons_cff.py.

photons_cff.slimmedPhotonsWithUserData

Definition at line 106 of file photons_cff.py.

photons_cff.src

Definition at line 45 of file photons_cff.py.

photons_cff.userFloats

Definition at line 108 of file photons_cff.py.

photons_cff.userIntFromBools

Definition at line 115 of file photons_cff.py.

photons_cff.userInts

Definition at line 130 of file photons_cff.py.

photons_cff.variables

Definition at line 182 of file photons_cff.py.

photons_cff.VIDNestedWPBitmap

Definition at line 131 of file photons_cff.py.

photons_cff.vidNestedWPBitmap

Definition at line 198 of file photons_cff.py.

photons_cff.VIDNestedWPBitmap_Spring16V2p2

Definition at line 132 of file photons_cff.py.

photons_cff.vidNestedWPBitmap_Spring16V2p2

Definition at line 220 of file photons_cff.py.

photons_cff.WorkingPoints

Definition at line 15 of file photons_cff.py.