CMS 3D CMS Logo

Functions | Variables
nano_cff Namespace Reference

Functions

def nanoAOD_addDeepBTagFor80X (process)
 
def nanoAOD_addDeepFlavourTagFor94X2016 (process)
 
def nanoAOD_customizeCommon (process)
 
def nanoAOD_customizeData (process)
 
def nanoAOD_customizeMC (process)
 

Variables

 _80x_sequence
 Era dependent customization. More...
 
 btagSFdir
 
 btagWeightTable
 
 cut
 
 debug
 
 discNames
 
 discShortNames
 
 doc
 
 electronName
 
 electrons
 
 electronSel
 
 genEvent
 
 genWeightsTable
 
 jetName
 
 jets
 
 jetSel
 
 l1bits
 
 legacyL1
 
 lhaid
 
 lheInfo
 
 lheInfoTable
 
 lheWeightPrecision
 
 linkedObjects
 
 maxPdfWeights
 
 measurementTypesB
 
 measurementTypesC
 
 measurementTypesUDSG
 
 muonName
 
 muons
 
 muonSel
 
 name
 
 namedWeightIDs
 
 namedWeightLabels
 
 nanoMetadata
 
 nanoSequence
 
 nanoSequenceMC
 
 operatingPoints
 
 photonName
 
 photons
 
 photonSel
 
 precision
 
 preferredPDFs
 
 simpleCleanerTable
 
 src
 
 storeLHEParticles
 
 strings
 
 sysTypes
 
 tag
 
 tauName
 
 taus
 
 tauSel
 
 weightFiles
 

Function Documentation

def nano_cff.nanoAOD_addDeepBTagFor80X (   process)

Definition at line 136 of file nano_cff.py.

References PVValHelper.add(), helpers.getPatAlgosToolsTask(), and edm.print().

137  print("Updating process to run DeepCSV btag on legacy 80X datasets")
138  updateJetCollection(
139  process,
140  jetSource = cms.InputTag('slimmedJets'),
141  jetCorrections = ('AK4PFchs', cms.vstring(['L1FastJet', 'L2Relative', 'L3Absolute','L2L3Residual']), 'None'),
142  btagDiscriminators = ['pfDeepCSVJetTags:probb','pfDeepCSVJetTags:probbb','pfDeepCSVJetTags:probc'], ## to add discriminators
143  btagPrefix = ''
144  )
145  process.load("Configuration.StandardSequences.MagneticField_cff")
146  process.looseJetId.src="selectedUpdatedPatJets"
147  process.tightJetId.src="selectedUpdatedPatJets"
148  process.tightJetIdLepVeto.src="selectedUpdatedPatJets"
149  process.bJetVars.src="selectedUpdatedPatJets"
150  process.slimmedJetsWithUserData.src="selectedUpdatedPatJets"
151  process.qgtagger80x.srcJets="selectedUpdatedPatJets"
152  patAlgosToolsTask = getPatAlgosToolsTask(process)
153  patAlgosToolsTask .add(process.updatedPatJets)
154  patAlgosToolsTask .add(process.patJetCorrFactors)
155  process.additionalendpath = cms.EndPath(patAlgosToolsTask)
156  return process
def nanoAOD_addDeepBTagFor80X(process)
Definition: nano_cff.py:136
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:65
void add(std::map< std::string, TH1 * > &h, TH1 *hist)
def getPatAlgosToolsTask(process)
Definition: helpers.py:14
def nano_cff.nanoAOD_addDeepFlavourTagFor94X2016 (   process)

Definition at line 157 of file nano_cff.py.

References PVValHelper.add(), helpers.getPatAlgosToolsTask(), and edm.print().

158  print("Updating process to run DeepCSV btag on 94X re-miniAOD of legacy 80X datasets")
159  updateJetCollection(
160  process,
161  jetSource = cms.InputTag('slimmedJets'),
162  jetCorrections = ('AK4PFchs', cms.vstring(['L1FastJet', 'L2Relative', 'L3Absolute','L2L3Residual']), 'None'),
163  btagDiscriminators = ['pfDeepFlavourJetTags:probb','pfDeepFlavourJetTags:probbb','pfDeepFlavourJetTags:problepb'], ## to add discriminators
164  btagPrefix = ''
165  )
166  process.load("Configuration.StandardSequences.MagneticField_cff")
167  process.looseJetId.src="selectedUpdatedPatJets"
168  process.tightJetId.src="selectedUpdatedPatJets"
169  process.tightJetIdLepVeto.src="selectedUpdatedPatJets"
170  process.bJetVars.src="selectedUpdatedPatJets"
171  process.slimmedJetsWithUserData.src="selectedUpdatedPatJets"
172  process.qgtagger80x.srcJets="selectedUpdatedPatJets"
173  process.pfDeepFlavourJetTags.graph_path = 'RecoBTag/Combined/data/DeepFlavourV03_10X_training/constant_graph.pb'
174  process.pfDeepFlavourJetTags.lp_names = ["cpf_input_batchnorm/keras_learning_phase"]
175  patAlgosToolsTask = getPatAlgosToolsTask(process)
176  patAlgosToolsTask .add(process.updatedPatJets)
177  patAlgosToolsTask .add(process.patJetCorrFactors)
178  process.additionalendpath = cms.EndPath(patAlgosToolsTask)
179  return process
180 
181 
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:65
def nanoAOD_addDeepFlavourTagFor94X2016(process)
Definition: nano_cff.py:157
void add(std::map< std::string, TH1 * > &h, TH1 *hist)
def getPatAlgosToolsTask(process)
Definition: helpers.py:14
def nano_cff.nanoAOD_customizeCommon (   process)

Definition at line 182 of file nano_cff.py.

Referenced by nanoAOD_customizeData(), and nanoAOD_customizeMC().

183  run2_miniAOD_80XLegacy.toModify(process, nanoAOD_addDeepBTagFor80X)
184  run2_nanoAOD_94X2016.toModify(process, nanoAOD_addDeepFlavourTagFor94X2016)
185  return process
186 
187 
def nanoAOD_customizeCommon(process)
Definition: nano_cff.py:182
def nano_cff.nanoAOD_customizeData (   process)

Definition at line 188 of file nano_cff.py.

References nanoAOD_customizeCommon().

189  process = nanoAOD_customizeCommon(process)
190  if hasattr(process,'calibratedPatElectrons80X'):
191  process.calibratedPatElectrons80X.isMC = cms.bool(False)
192  process.calibratedPatPhotons80X.isMC = cms.bool(False)
193  return process
194 
def nanoAOD_customizeCommon(process)
Definition: nano_cff.py:182
def nanoAOD_customizeData(process)
Definition: nano_cff.py:188
def nano_cff.nanoAOD_customizeMC (   process)

Definition at line 195 of file nano_cff.py.

References nanoAOD_customizeCommon().

195 def nanoAOD_customizeMC(process):
196  process = nanoAOD_customizeCommon(process)
197  if hasattr(process,'calibratedPatElectrons80X'):
198  process.calibratedPatElectrons80X.isMC = cms.bool(True)
199  process.calibratedPatPhotons80X.isMC = cms.bool(True)
200  return process
201 
def nanoAOD_customizeMC(process)
Definition: nano_cff.py:195
def nanoAOD_customizeCommon(process)
Definition: nano_cff.py:182

Variable Documentation

nano_cff._80x_sequence
private

Era dependent customization.

Definition at line 203 of file nano_cff.py.

nano_cff.btagSFdir

Definition at line 55 of file nano_cff.py.

nano_cff.btagWeightTable

Definition at line 57 of file nano_cff.py.

nano_cff.cut

Definition at line 59 of file nano_cff.py.

nano_cff.debug

Definition at line 114 of file nano_cff.py.

nano_cff.discNames

Definition at line 60 of file nano_cff.py.

nano_cff.discShortNames

Definition at line 65 of file nano_cff.py.

nano_cff.doc

Definition at line 40 of file nano_cff.py.

nano_cff.electronName

Definition at line 51 of file nano_cff.py.

nano_cff.electrons

Definition at line 33 of file nano_cff.py.

nano_cff.electronSel

Definition at line 48 of file nano_cff.py.

nano_cff.genEvent
nano_cff.genWeightsTable

Definition at line 99 of file nano_cff.py.

nano_cff.jetName

Definition at line 51 of file nano_cff.py.

nano_cff.jets

Definition at line 31 of file nano_cff.py.

nano_cff.jetSel

Definition at line 46 of file nano_cff.py.

nano_cff.l1bits

Definition at line 122 of file nano_cff.py.

nano_cff.legacyL1

Definition at line 122 of file nano_cff.py.

nano_cff.lhaid
nano_cff.lheInfo
nano_cff.lheInfoTable

Definition at line 116 of file nano_cff.py.

nano_cff.lheWeightPrecision

Definition at line 112 of file nano_cff.py.

nano_cff.linkedObjects

Definition at line 30 of file nano_cff.py.

nano_cff.maxPdfWeights

Definition at line 113 of file nano_cff.py.

nano_cff.measurementTypesB

Definition at line 76 of file nano_cff.py.

nano_cff.measurementTypesC

Definition at line 77 of file nano_cff.py.

nano_cff.measurementTypesUDSG

Definition at line 78 of file nano_cff.py.

nano_cff.muonName

Definition at line 51 of file nano_cff.py.

Referenced by main().

nano_cff.muons

Definition at line 32 of file nano_cff.py.

nano_cff.muonSel

Definition at line 47 of file nano_cff.py.

nano_cff.name

Definition at line 39 of file nano_cff.py.

nano_cff.namedWeightIDs

Definition at line 110 of file nano_cff.py.

nano_cff.namedWeightLabels

Definition at line 111 of file nano_cff.py.

nano_cff.nanoMetadata

Definition at line 24 of file nano_cff.py.

nano_cff.nanoSequence

Definition at line 124 of file nano_cff.py.

nano_cff.nanoSequenceMC

Definition at line 131 of file nano_cff.py.

nano_cff.operatingPoints

Definition at line 75 of file nano_cff.py.

nano_cff.photonName

Definition at line 52 of file nano_cff.py.

nano_cff.photons

Definition at line 35 of file nano_cff.py.

Referenced by HcalSiPMHitResponse.add(), HcalSiPMHitResponse.addPEnoise(), PatBasicAnalyzer.analyze(), PhotonIDSimpleAnalyzer.analyze(), PatPhotonSimpleAnalyzer.analyze(), SimplePi0DiscAnalyzer.analyze(), ContainmentCorrectionAnalyzer.analyze(), PhotonValidatorMiniAOD.analyze(), HigPhotonJetHLTOfflineSource.analyze(), ObjMonitor.analyze(), TopMonitor.analyze(), PhotonMonitor.analyze(), EgammaObjects.analyzePhotons(), HLTTauRefProducer.doPhotons(), pat::DuplicatedPhotonRemover.duplicatesBySeed(), pat::DuplicatedPhotonRemover.duplicatesBySuperCluster(), EGExtraInfoModifierFromValueMaps< MapType, OutputType >.EGExtraInfoModifierFromValueMaps(), EGFull5x5ShowerShapeModifierFromValueMaps.EGFull5x5ShowerShapeModifierFromValueMaps(), EGPfIsolationModifierFromValueMaps.EGPfIsolationModifierFromValueMaps(), EGRegressionModifierV1.EGRegressionModifierV1(), EGRegressionModifierV2.EGRegressionModifierV2(), pat::DuplicatedPhotonRemover.electronsBySeed(), pat::DuplicatedPhotonRemover.electronsBySuperCluster(), AdHocNTupler.fill(), citk::PFIsolationSumProducerForPUPPI.fillDescriptions(), citk::PFIsolationSumProducer.fillDescriptions(), L1TEGammaOffline.fillPhotons(), HiggsTo2GammaSkim.filter(), MonoPhotonSkimmer.filter(), AlCaGammaJetSelector.filter(), SinglePhotonJetPlusHOFilter.filter(), HcalQie.getCode(), HFShowerFibreBundle.getHits(), HFShowerPMT.getHits(), HGCalHitCalibration.HGCalHitCalibration(), HLTFiltCand.hltFilter(), HLTTauRefProducer.HLTTauRefProducer(), EGPhotonImporter.importToBlock(), pat::DuplicatedPhotonRemover::EqualBySuperCluster.operator()(), ParticleLevelProducer.produce(), PhotonIDProducer.produce(), photonIsolationHIProducer.produce(), PFLinker.produce(), pat::__class__Producer.produce(), PATObjectCrossLinker.produce(), ReducedEGProducer.produce(), NanoAODBaseCrossCleaner.produce(), pat::PATPhotonProducer.produce(), HLTJetsCleanedFromLeadingLeptons< JetType >.produce(), pat::Muon.setIsolationPUPPI(), pat::Muon.setIsolationPUPPINoLeptons(), and HepMCValidationHelper.sortByPseudoRapidity().

nano_cff.photonSel

Definition at line 50 of file nano_cff.py.

nano_cff.precision

Definition at line 118 of file nano_cff.py.

nano_cff.preferredPDFs

Definition at line 102 of file nano_cff.py.

nano_cff.simpleCleanerTable

Definition at line 38 of file nano_cff.py.

nano_cff.src

Definition at line 58 of file nano_cff.py.

nano_cff.storeLHEParticles

Definition at line 119 of file nano_cff.py.

nano_cff.strings
nano_cff.sysTypes

Definition at line 79 of file nano_cff.py.

nano_cff.tag

Definition at line 26 of file nano_cff.py.

nano_cff.tauName

Definition at line 52 of file nano_cff.py.

nano_cff.taus

Definition at line 34 of file nano_cff.py.

Referenced by HLTTauDQML1Plotter.analyze(), TopTauAnalyzer.analyze(), PatBasicAnalyzer.analyze(), l1t::L1TStage2CaloAnalyzer.analyze(), ResolutionCreator.analyze(), l1t::GtInputDump.analyze(), l1t::L1TGlobalAnalyzer.analyze(), l1t::GtRecordDump.analyze(), L1TTauOffline.analyze(), HPSPFRecoTauAlgorithm.buildOneProng(), HPSPFRecoTauAlgorithm.buildOneProngStrip(), HPSPFRecoTauAlgorithm.buildOneProngTwoStrips(), HPSPFRecoTauAlgorithm.buildThreeProngs(), L1TStage2CaloLayer2Comp.compareTaus(), l1t::GtRecordDump.dumpTestVectors(), L1RCTJetSummaryCard.fillTauBits(), pat::PATLeptonCountFilter.filter(), L1RCT.getRegions(), HLTPFTauPairLeadTrackDzMatchFilter.hltFilter(), HLTFiltCand.hltFilter(), L1TSummary.L1TSummary(), L1UpgradeTreeProducer.L1UpgradeTreeProducer(), l1t::stage2::TauPacker.pack(), l1t::stage1::TauPacker.pack(), l1t::stage1::IsoTauPacker.pack(), TtDilepEvtSolutionMaker.produce(), RecoTauPiZeroUnembedder.produce(), PFJetsTauOverlapRemoval.produce(), PFTauL1TJetsMatching.produce(), pat::__class__Producer.produce(), l1t::FakeInputProducer.produce(), RecoTauProducer.produce(), PATObjectCrossLinker.produce(), NanoAODBaseCrossCleaner.produce(), L1TStage2Layer2Producer.produce(), TauDiscriminationProducerBase< TauType, TauDiscriminator >.produce(), l1t::GenToInputProducer.produce(), l1t::BXVectorInputProducer.produce(), L1TStage1Layer2Producer.produce(), HepMCValidationHelper.removeIsolatedLeptons(), HLTL1TSeed.seedsL1TriggerObjectMaps(), and TauJetCorrector::ParametrizationTauJet.value().

nano_cff.tauSel

Definition at line 49 of file nano_cff.py.

nano_cff.weightFiles

Definition at line 70 of file nano_cff.py.