CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
List of all members | Public Member Functions | Public Attributes | Static Public Attributes | Static Private Attributes
adaptToRunAtMiniAOD.adaptToRunAtMiniAOD Class Reference
Inheritance diagram for adaptToRunAtMiniAOD.adaptToRunAtMiniAOD:

Public Member Functions

def __init__ (self, process, runBoosted=False, postfix="")
 
def adaptTauToMiniAODReReco (self, reclusterJets=True)
 
def addTauReReco (self)
 
def convertModuleToMiniAODInput (self, name)
 
def setOutputModule (self, mode=0)
 

Public Attributes

 miniAODTausTask
 
 runBoosted
 

Static Public Attributes

 addAssociatedTracks
 
 addBTagInfo
 
 addDiscriminators
 
 addGenJetMatch
 
 addGenPartonMatch
 
 addJetCharge
 
 addJetCorrFactors
 
 addJetFlavourInfo
 
 dataset
 
 dataTier
 
 debug
 
 deltaR
 
 discriminatorSources
 
 dRcone
 
 dRconeLimitedToJetArea
 
 dRmuonMatch
 
 embedGenPartonMatch
 
 fastCloning
 
 fileName
 
 filterName
 
 GenParticles
 PAT part in the following. More...
 
 getJetMCFlavour
 
 idLabel
 
 inputTag
 
 inst
 
 jetCollection
 
 jetCollInstanceName
 
 jetCorrFactorsSource
 
 jetRegionSrc
 
 jetSource
 
 jetSrc
 
 lostCandidatesTag
 
 m
 
 matched
 
 maxJetAbsEta
 
 minJetPt
 
 name
 
 originalTauName
 
 output
 
 outputCommands
 
 packedCandidatesTag
 
 pfCandAssocMapSrc
 
 pfCandidateSrc
 
 pfCandSrc
 
 PFTauProducer
 
 PFTauTag
 
 plugin
 
 postfix
 
 primaryVertexSrc
 
 process
 
 provenanceConfigLabel
 
 PVTag
 
 SelectEvents
 
 src
 
 srcTracks
 
 subjetSrc
 
 tauIdEmbedder
 
 toKeep
 
 updatedTauName
 
 verbosity
 

Static Private Attributes

 _chargedHadronProducer
 
 _combinatoricRecoTauProducer
 
 _jetRegionProducer
 
 _modifiersToRemove
 
 _noUpdatedTauName
 
 _patTauProducer
 
 _piZeroProducer
 
 _tauIDAntiMuSimple
 
 _tauPVProducer
 
 _updatedTauName
 

Detailed Description

Definition at line 12 of file adaptToRunAtMiniAOD.py.

Constructor & Destructor Documentation

◆ __init__()

def adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.__init__ (   self,
  process,
  runBoosted = False,
  postfix = "" 
)

Definition at line 13 of file adaptToRunAtMiniAOD.py.

References edm::ProductLabels.process, DTT0WireWorkflow.DTT0WireWorkflow.process, DTVdriftWorkflow.DTvdriftWorkflow.process, cscdqm::HWStandbyType.process, DTTtrigWorkflow.DTttrigWorkflow.process, EgammaHLTValidationUtils.EgammaDQMModuleMaker.process, Config.Process.process, DTWorkflow.DTWorkflow.process, ConfigBuilder.ConfigBuilder.process, adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.process, JsonOutputProducer::JsonConfigurationBlock.process, and Config.TestModuleCommand.process.

13  def __init__(self, process, runBoosted=False, postfix=""):
14  self.process = process
15  self.runBoosted = runBoosted
16  self.postfix = postfix
17  if runBoosted:
18  self.postfix = 'Boosted'+postfix
19  #print("Adapting boosted tau reconstruction to run at miniAOD; postfix = \"%s\"" % self.postfix)
20  #else:
21  # print("Adapting tau reconstruction to run at miniAOD; postfix = \"%s\"" % self.postfix)
22 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ adaptTauToMiniAODReReco()

def adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.adaptTauToMiniAODReReco (   self,
  reclusterJets = True 
)

Definition at line 63 of file adaptToRunAtMiniAOD.py.

63  def adaptTauToMiniAODReReco(self,reclusterJets=True):

◆ addTauReReco()

def adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.addTauReReco (   self)

Definition at line 24 of file adaptToRunAtMiniAOD.py.

24  def addTauReReco(self):
25  #PAT
26  self.process.load('PhysicsTools.PatAlgos.producersLayer1.tauProducer_cff')
27  self.process.load('PhysicsTools.PatAlgos.selectionLayer1.tauSelector_cfi')
28  self.process.selectedPatTaus.cut="pt > 18. && tauID(\'decayModeFindingNewDMs\')> 0.5" #Cut as in MiniAOD
29  #Tau RECO
30  self.process.load("RecoTauTag.Configuration.RecoPFTauTag_cff")
31  #Task/Sequence for tau rereco
32  self.process.miniAODTausTask = cms.Task(
33  self.process.PFTauTask,
34  self.process.makePatTausTask,
35  self.process.selectedPatTaus
36  )
37  #Add Run-2 tauIDs for boostedTaus
38  if self.runBoosted:
39  self.process.PFTauMVAIsoTask = cms.Task(
40  self.process.hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw,
41  self.process.hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLT,
42  self.process.hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw,
43  self.process.hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLT
44  )
45  self.process.PFTauTask.add(self.process.PFTauMVAIsoTask)
46  self.miniAODTausTask = configtools.cloneProcessingSnippetTask(
47  self.process,self.process.miniAODTausTask,postfix=self.postfix)
48  setattr(self.process,'miniAODTausSequence'+self.postfix,cms.Sequence(self.miniAODTausTask))
49  if not self.postfix=="":
50  del self.process.miniAODTausTask
51 
def load(fileName)
Definition: svgfig.py:547

◆ convertModuleToMiniAODInput()

def adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.convertModuleToMiniAODInput (   self,
  name 
)

Definition at line 53 of file adaptToRunAtMiniAOD.py.

References edm::ProductLabels.process, DTT0WireWorkflow.DTT0WireWorkflow.process, DTVdriftWorkflow.DTvdriftWorkflow.process, cscdqm::HWStandbyType.process, DTTtrigWorkflow.DTttrigWorkflow.process, EgammaHLTValidationUtils.EgammaDQMModuleMaker.process, Config.Process.process, DTWorkflow.DTWorkflow.process, ConfigBuilder.ConfigBuilder.process, adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.process, JsonOutputProducer::JsonConfigurationBlock.process, and Config.TestModuleCommand.process.

53  def convertModuleToMiniAODInput(self,name):
54  module = getattr(self.process, name)
55  if hasattr(module, 'particleFlowSrc'):
56  module.particleFlowSrc = cms.InputTag("packedPFCandidates", "", "")
57  if hasattr(module, 'vertexSrc'):
58  module.vertexSrc = cms.InputTag('offlineSlimmedPrimaryVertices')
59  if hasattr(module, 'qualityCuts') and hasattr(module.qualityCuts, 'primaryVertexSrc'):
60  module.qualityCuts.primaryVertexSrc = cms.InputTag('offlineSlimmedPrimaryVertices')
61 

◆ setOutputModule()

def adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.setOutputModule (   self,
  mode = 0 
)

Definition at line 308 of file adaptToRunAtMiniAOD.py.

308  def setOutputModule(self,mode=0):

Member Data Documentation

◆ _chargedHadronProducer

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD._chargedHadronProducer
staticprivate

Definition at line 147 of file adaptToRunAtMiniAOD.py.

◆ _combinatoricRecoTauProducer

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD._combinatoricRecoTauProducer
staticprivate

Definition at line 160 of file adaptToRunAtMiniAOD.py.

◆ _jetRegionProducer

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD._jetRegionProducer
staticprivate

Definition at line 129 of file adaptToRunAtMiniAOD.py.

◆ _modifiersToRemove

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD._modifiersToRemove
staticprivate

Definition at line 171 of file adaptToRunAtMiniAOD.py.

◆ _noUpdatedTauName

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD._noUpdatedTauName
staticprivate

Definition at line 280 of file adaptToRunAtMiniAOD.py.

◆ _patTauProducer

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD._patTauProducer
staticprivate

Definition at line 226 of file adaptToRunAtMiniAOD.py.

◆ _piZeroProducer

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD._piZeroProducer
staticprivate

Definition at line 141 of file adaptToRunAtMiniAOD.py.

◆ _tauIDAntiMuSimple

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD._tauIDAntiMuSimple
staticprivate

Definition at line 214 of file adaptToRunAtMiniAOD.py.

◆ _tauPVProducer

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD._tauPVProducer
staticprivate

Definition at line 190 of file adaptToRunAtMiniAOD.py.

◆ _updatedTauName

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD._updatedTauName
staticprivate

Definition at line 279 of file adaptToRunAtMiniAOD.py.

◆ addAssociatedTracks

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.addAssociatedTracks
static

Definition at line 98 of file adaptToRunAtMiniAOD.py.

◆ addBTagInfo

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.addBTagInfo
static

Definition at line 95 of file adaptToRunAtMiniAOD.py.

◆ addDiscriminators

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.addDiscriminators
static

Definition at line 96 of file adaptToRunAtMiniAOD.py.

◆ addGenJetMatch

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.addGenJetMatch
static

Definition at line 102 of file adaptToRunAtMiniAOD.py.

◆ addGenPartonMatch

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.addGenPartonMatch
static

Definition at line 100 of file adaptToRunAtMiniAOD.py.

◆ addJetCharge

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.addJetCharge
static

Definition at line 99 of file adaptToRunAtMiniAOD.py.

◆ addJetCorrFactors

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.addJetCorrFactors
static

Definition at line 93 of file adaptToRunAtMiniAOD.py.

◆ addJetFlavourInfo

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.addJetFlavourInfo
static

Definition at line 104 of file adaptToRunAtMiniAOD.py.

◆ dataset

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.dataset
static

Definition at line 317 of file adaptToRunAtMiniAOD.py.

◆ dataTier

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.dataTier
static

Definition at line 318 of file adaptToRunAtMiniAOD.py.

◆ debug

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.debug
static

◆ deltaR

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.deltaR
static

Definition at line 122 of file adaptToRunAtMiniAOD.py.

◆ discriminatorSources

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.discriminatorSources
static

Definition at line 97 of file adaptToRunAtMiniAOD.py.

◆ dRcone

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.dRcone
static

Definition at line 155 of file adaptToRunAtMiniAOD.py.

◆ dRconeLimitedToJetArea

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.dRconeLimitedToJetArea
static

Definition at line 156 of file adaptToRunAtMiniAOD.py.

◆ dRmuonMatch

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.dRmuonMatch
static

Definition at line 216 of file adaptToRunAtMiniAOD.py.

◆ embedGenPartonMatch

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.embedGenPartonMatch
static

Definition at line 101 of file adaptToRunAtMiniAOD.py.

◆ fastCloning

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.fastCloning
static

Definition at line 316 of file adaptToRunAtMiniAOD.py.

◆ fileName

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.fileName
static

Definition at line 315 of file adaptToRunAtMiniAOD.py.

◆ filterName

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.filterName
static

Definition at line 319 of file adaptToRunAtMiniAOD.py.

◆ GenParticles

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.GenParticles
static

PAT part in the following.

Definition at line 222 of file adaptToRunAtMiniAOD.py.

◆ getJetMCFlavour

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.getJetMCFlavour
static

Definition at line 103 of file adaptToRunAtMiniAOD.py.

◆ idLabel

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.idLabel
static

Definition at line 235 of file adaptToRunAtMiniAOD.py.

◆ inputTag

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.inputTag
static

Definition at line 233 of file adaptToRunAtMiniAOD.py.

◆ inst

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.inst
static

Definition at line 339 of file adaptToRunAtMiniAOD.py.

◆ jetCollection

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.jetCollection
static

Definition at line 66 of file adaptToRunAtMiniAOD.py.

◆ jetCollInstanceName

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.jetCollInstanceName
static

Definition at line 73 of file adaptToRunAtMiniAOD.py.

◆ jetCorrFactorsSource

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.jetCorrFactorsSource
static

Definition at line 94 of file adaptToRunAtMiniAOD.py.

◆ jetRegionSrc

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.jetRegionSrc
static

Definition at line 161 of file adaptToRunAtMiniAOD.py.

◆ jetSource

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.jetSource
static

Definition at line 92 of file adaptToRunAtMiniAOD.py.

◆ jetSrc

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.jetSrc
static

Definition at line 144 of file adaptToRunAtMiniAOD.py.

◆ lostCandidatesTag

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.lostCandidatesTag
static

Definition at line 194 of file adaptToRunAtMiniAOD.py.

◆ m

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.m
static

Definition at line 337 of file adaptToRunAtMiniAOD.py.

◆ matched

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.matched
static

Definition at line 223 of file adaptToRunAtMiniAOD.py.

◆ maxJetAbsEta

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.maxJetAbsEta
static

Definition at line 123 of file adaptToRunAtMiniAOD.py.

◆ miniAODTausTask

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.miniAODTausTask

Definition at line 46 of file adaptToRunAtMiniAOD.py.

◆ minJetPt

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.minJetPt
static

Definition at line 124 of file adaptToRunAtMiniAOD.py.

◆ name

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.name
static

◆ originalTauName

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.originalTauName
static

Definition at line 288 of file adaptToRunAtMiniAOD.py.

Referenced by runTauIdMVA.TauIDEmbedder.runTauID().

◆ output

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.output
static

Definition at line 313 of file adaptToRunAtMiniAOD.py.

◆ outputCommands

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.outputCommands
static

Definition at line 321 of file adaptToRunAtMiniAOD.py.

◆ packedCandidatesTag

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.packedCandidatesTag
static

Definition at line 193 of file adaptToRunAtMiniAOD.py.

◆ pfCandAssocMapSrc

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.pfCandAssocMapSrc
static

Definition at line 125 of file adaptToRunAtMiniAOD.py.

◆ pfCandidateSrc

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.pfCandidateSrc
static

Definition at line 78 of file adaptToRunAtMiniAOD.py.

◆ pfCandSrc

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.pfCandSrc
static

Definition at line 126 of file adaptToRunAtMiniAOD.py.

◆ PFTauProducer

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.PFTauProducer
static

Definition at line 213 of file adaptToRunAtMiniAOD.py.

◆ PFTauTag

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.PFTauTag
static

Definition at line 199 of file adaptToRunAtMiniAOD.py.

◆ plugin

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.plugin
static

Definition at line 152 of file adaptToRunAtMiniAOD.py.

◆ postfix

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.postfix
static

◆ primaryVertexSrc

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.primaryVertexSrc
static

Definition at line 143 of file adaptToRunAtMiniAOD.py.

◆ process

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.process
static

◆ provenanceConfigLabel

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.provenanceConfigLabel
static

Definition at line 234 of file adaptToRunAtMiniAOD.py.

◆ PVTag

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.PVTag
static

Definition at line 192 of file adaptToRunAtMiniAOD.py.

◆ runBoosted

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.runBoosted

Definition at line 15 of file adaptToRunAtMiniAOD.py.

◆ SelectEvents

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.SelectEvents
static

Definition at line 322 of file adaptToRunAtMiniAOD.py.

◆ src

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.src
static

Definition at line 72 of file adaptToRunAtMiniAOD.py.

◆ srcTracks

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.srcTracks
static

Definition at line 153 of file adaptToRunAtMiniAOD.py.

◆ subjetSrc

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.subjetSrc
static

Definition at line 77 of file adaptToRunAtMiniAOD.py.

◆ tauIdEmbedder

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.tauIdEmbedder
static

Definition at line 286 of file adaptToRunAtMiniAOD.py.

◆ toKeep

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.toKeep
static

Definition at line 281 of file adaptToRunAtMiniAOD.py.

Referenced by runTauIdMVA.TauIDEmbedder.runTauID().

◆ updatedTauName

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.updatedTauName
static

Definition at line 289 of file adaptToRunAtMiniAOD.py.

Referenced by runTauIdMVA.TauIDEmbedder.runTauID().

◆ verbosity

adaptToRunAtMiniAOD.adaptToRunAtMiniAOD.verbosity
static

Definition at line 79 of file adaptToRunAtMiniAOD.py.