CMS 3D CMS Logo

Functions | Variables
nano_cff Namespace Reference

Functions

def nanoAOD_addDeepBTagFor80X (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 134 of file nano_cff.py.

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

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

Definition at line 156 of file nano_cff.py.

Referenced by nanoAOD_customizeData(), and nanoAOD_customizeMC().

157  run2_miniAOD_80XLegacy.toModify(process, nanoAOD_addDeepBTagFor80X)
158  return process
159 
160 
def nanoAOD_customizeCommon(process)
Definition: nano_cff.py:156
def nano_cff.nanoAOD_customizeData (   process)

Definition at line 161 of file nano_cff.py.

References nanoAOD_customizeCommon().

162  process = nanoAOD_customizeCommon(process)
163  if hasattr(process,'calibratedPatElectrons80X'):
164  process.calibratedPatElectrons80X.isMC = cms.bool(False)
165  process.calibratedPatPhotons80X.isMC = cms.bool(False)
166  return process
167 
def nanoAOD_customizeCommon(process)
Definition: nano_cff.py:156
def nanoAOD_customizeData(process)
Definition: nano_cff.py:161
def nano_cff.nanoAOD_customizeMC (   process)

Definition at line 168 of file nano_cff.py.

References nanoAOD_customizeCommon().

168 def nanoAOD_customizeMC(process):
169  process = nanoAOD_customizeCommon(process)
170  if hasattr(process,'calibratedPatElectrons80X'):
171  process.calibratedPatElectrons80X.isMC = cms.bool(True)
172  process.calibratedPatPhotons80X.isMC = cms.bool(True)
173  return process
174 
def nanoAOD_customizeMC(process)
Definition: nano_cff.py:168
def nanoAOD_customizeCommon(process)
Definition: nano_cff.py:156

Variable Documentation

nano_cff._80x_sequence
private

Era dependent customization.

Definition at line 176 of file nano_cff.py.

nano_cff.btagSFdir

Definition at line 53 of file nano_cff.py.

nano_cff.btagWeightTable

Definition at line 55 of file nano_cff.py.

nano_cff.cut

Definition at line 57 of file nano_cff.py.

nano_cff.debug

Definition at line 112 of file nano_cff.py.

nano_cff.discNames

Definition at line 58 of file nano_cff.py.

nano_cff.discShortNames

Definition at line 63 of file nano_cff.py.

nano_cff.doc

Definition at line 38 of file nano_cff.py.

nano_cff.electronName

Definition at line 49 of file nano_cff.py.

nano_cff.electrons

Definition at line 31 of file nano_cff.py.

nano_cff.electronSel

Definition at line 46 of file nano_cff.py.

nano_cff.genEvent
nano_cff.genWeightsTable

Definition at line 97 of file nano_cff.py.

nano_cff.jetName

Definition at line 49 of file nano_cff.py.

nano_cff.jets

Definition at line 29 of file nano_cff.py.

nano_cff.jetSel

Definition at line 44 of file nano_cff.py.

nano_cff.l1bits

Definition at line 120 of file nano_cff.py.

nano_cff.legacyL1

Definition at line 120 of file nano_cff.py.

nano_cff.lhaid
nano_cff.lheInfo
nano_cff.lheInfoTable

Definition at line 114 of file nano_cff.py.

nano_cff.lheWeightPrecision

Definition at line 110 of file nano_cff.py.

nano_cff.linkedObjects

Definition at line 28 of file nano_cff.py.

nano_cff.maxPdfWeights

Definition at line 111 of file nano_cff.py.

nano_cff.measurementTypesB

Definition at line 74 of file nano_cff.py.

nano_cff.measurementTypesC

Definition at line 75 of file nano_cff.py.

nano_cff.measurementTypesUDSG

Definition at line 76 of file nano_cff.py.

nano_cff.muonName

Definition at line 49 of file nano_cff.py.

Referenced by main().

nano_cff.muons

Definition at line 30 of file nano_cff.py.

nano_cff.muonSel

Definition at line 45 of file nano_cff.py.

nano_cff.name

Definition at line 37 of file nano_cff.py.

nano_cff.namedWeightIDs

Definition at line 108 of file nano_cff.py.

nano_cff.namedWeightLabels

Definition at line 109 of file nano_cff.py.

nano_cff.nanoMetadata

Definition at line 22 of file nano_cff.py.

nano_cff.nanoSequence

Definition at line 122 of file nano_cff.py.

nano_cff.nanoSequenceMC

Definition at line 129 of file nano_cff.py.

nano_cff.operatingPoints

Definition at line 73 of file nano_cff.py.

nano_cff.photonName

Definition at line 50 of file nano_cff.py.

nano_cff.photons

Definition at line 33 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 48 of file nano_cff.py.

nano_cff.precision

Definition at line 116 of file nano_cff.py.

nano_cff.preferredPDFs

Definition at line 100 of file nano_cff.py.

nano_cff.simpleCleanerTable

Definition at line 36 of file nano_cff.py.

nano_cff.src

Definition at line 56 of file nano_cff.py.

nano_cff.storeLHEParticles

Definition at line 117 of file nano_cff.py.

nano_cff.strings
nano_cff.sysTypes

Definition at line 77 of file nano_cff.py.

nano_cff.tag

Definition at line 24 of file nano_cff.py.

nano_cff.tauName

Definition at line 50 of file nano_cff.py.

nano_cff.taus

Definition at line 32 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(), HLTPFTauPairLeadTrackDzMatchFilter.hltFilter(), HLTFiltCand.hltFilter(), L1TSummary.L1TSummary(), L1UpgradeTreeProducer.L1UpgradeTreeProducer(), l1t::stage2::TauPacker.pack(), l1t::stage1::TauPacker.pack(), l1t::stage1::IsoTauPacker.pack(), TtDilepEvtSolutionMaker.produce(), PFJetsTauOverlapRemoval.produce(), RecoTauPiZeroUnembedder.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 47 of file nano_cff.py.

nano_cff.weightFiles

Definition at line 68 of file nano_cff.py.