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 135 of file nano_cff.py.

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

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

Definition at line 156 of file nano_cff.py.

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

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

Definition at line 181 of file nano_cff.py.

Referenced by nanoAOD_customizeData(), and nanoAOD_customizeMC().

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

Definition at line 187 of file nano_cff.py.

References nanoAOD_customizeCommon().

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

Definition at line 194 of file nano_cff.py.

References nanoAOD_customizeCommon().

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

Variable Documentation

nano_cff._80x_sequence
private

Era dependent customization.

Definition at line 202 of file nano_cff.py.

nano_cff.btagSFdir

Definition at line 54 of file nano_cff.py.

nano_cff.btagWeightTable

Definition at line 56 of file nano_cff.py.

nano_cff.cut

Definition at line 58 of file nano_cff.py.

nano_cff.debug

Definition at line 113 of file nano_cff.py.

nano_cff.discNames

Definition at line 59 of file nano_cff.py.

nano_cff.discShortNames

Definition at line 64 of file nano_cff.py.

nano_cff.doc

Definition at line 39 of file nano_cff.py.

nano_cff.electronName

Definition at line 50 of file nano_cff.py.

nano_cff.electrons

Definition at line 32 of file nano_cff.py.

nano_cff.electronSel

Definition at line 47 of file nano_cff.py.

nano_cff.genEvent
nano_cff.genWeightsTable

Definition at line 98 of file nano_cff.py.

nano_cff.jetName

Definition at line 50 of file nano_cff.py.

nano_cff.jets

Definition at line 30 of file nano_cff.py.

nano_cff.jetSel

Definition at line 45 of file nano_cff.py.

nano_cff.l1bits

Definition at line 121 of file nano_cff.py.

nano_cff.legacyL1

Definition at line 121 of file nano_cff.py.

nano_cff.lhaid
nano_cff.lheInfo
nano_cff.lheInfoTable

Definition at line 115 of file nano_cff.py.

nano_cff.lheWeightPrecision

Definition at line 111 of file nano_cff.py.

nano_cff.linkedObjects

Definition at line 29 of file nano_cff.py.

nano_cff.maxPdfWeights

Definition at line 112 of file nano_cff.py.

nano_cff.measurementTypesB

Definition at line 75 of file nano_cff.py.

nano_cff.measurementTypesC

Definition at line 76 of file nano_cff.py.

nano_cff.measurementTypesUDSG

Definition at line 77 of file nano_cff.py.

nano_cff.muonName

Definition at line 50 of file nano_cff.py.

Referenced by main().

nano_cff.muons

Definition at line 31 of file nano_cff.py.

nano_cff.muonSel

Definition at line 46 of file nano_cff.py.

nano_cff.name

Definition at line 38 of file nano_cff.py.

nano_cff.namedWeightIDs

Definition at line 109 of file nano_cff.py.

nano_cff.namedWeightLabels

Definition at line 110 of file nano_cff.py.

nano_cff.nanoMetadata

Definition at line 23 of file nano_cff.py.

nano_cff.nanoSequence

Definition at line 123 of file nano_cff.py.

nano_cff.nanoSequenceMC

Definition at line 130 of file nano_cff.py.

nano_cff.operatingPoints

Definition at line 74 of file nano_cff.py.

nano_cff.photonName

Definition at line 51 of file nano_cff.py.

nano_cff.photons

Definition at line 34 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(), 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(), ReducedEGProducer.produce(), PATObjectCrossLinker.produce(), NanoAODBaseCrossCleaner.produce(), pat::PATPhotonProducer.produce(), HLTJetsCleanedFromLeadingLeptons< JetType >.produce(), pat::Muon.setIsolationPUPPI(), pat::Muon.setIsolationPUPPINoLeptons(), and HepMCValidationHelper.sortByPseudoRapidity().

nano_cff.photonSel

Definition at line 49 of file nano_cff.py.

nano_cff.precision

Definition at line 117 of file nano_cff.py.

nano_cff.preferredPDFs

Definition at line 101 of file nano_cff.py.

nano_cff.simpleCleanerTable

Definition at line 37 of file nano_cff.py.

nano_cff.src

Definition at line 57 of file nano_cff.py.

nano_cff.storeLHEParticles

Definition at line 118 of file nano_cff.py.

nano_cff.strings
nano_cff.sysTypes

Definition at line 78 of file nano_cff.py.

nano_cff.tag

Definition at line 25 of file nano_cff.py.

nano_cff.tauName

Definition at line 51 of file nano_cff.py.

nano_cff.taus

Definition at line 33 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(), l1t::GtRecordDump.dumpTestVectors(), L1RCTJetSummaryCard.fillTauBits(), pat::PATLeptonCountFilter.filter(), L1RCT.getRegions(), deep_tau::DeepTauBase.globalEndJob(), HLTPFTauPairLeadTrackDzMatchFilter.hltFilter(), HLTFiltCand.hltFilter(), L1TSummary.L1TSummary(), L1UpgradeTreeProducer.L1UpgradeTreeProducer(), deep_tau::DeepTauBase::Output.Output(), l1t::stage2::TauPacker.pack(), l1t::stage1::TauPacker.pack(), l1t::stage1::IsoTauPacker.pack(), TtDilepEvtSolutionMaker.produce(), RecoTauPiZeroUnembedder.produce(), PFJetsTauOverlapRemoval.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(), deep_tau::DeepTauBase.produce(), HepMCValidationHelper.removeIsolatedLeptons(), HLTL1TSeed.seedsL1TriggerObjectMaps(), and TauJetCorrector::ParametrizationTauJet.value().

nano_cff.tauSel

Definition at line 48 of file nano_cff.py.

nano_cff.weightFiles

Definition at line 69 of file nano_cff.py.