Classes | |
class | AddJetCollection35X |
class | PickRelValInputFiles |
------------------------------------------------------ Automatic pick-up of RelVal input files ------------------------------------------------------ More... | |
class | RunBTagging35X |
------------------------------------------------------ Re-implementation of jetTools ------------------------------------------------------ More... | |
class | SwitchJetCollection35X |
Functions | |
def | run36xOn35xInput |
------------------------------------------------------ Re-configuration of PATJetProducer ------------------------------------------------------ | |
def | run42xOn3yzMcInput |
------------------------------------------------------ Deal with backweard incompatibilities of conditions ------------------------------------------------------ | |
Variables | |
tuple | pickRelValInputFiles = PickRelValInputFiles() |
def cmsswVersionTools::run36xOn35xInput | ( | process, | |
genJets = "" , |
|||
postfix = "" |
|||
) |
------------------------------------------------------ Re-configuration of PATJetProducer ------------------------------------------------------
------------------------------------------------------------------ Reconfigure the PATJetProducer to be able to run the 36X version of PAT on 35X input samples. process : process ------------------------------------------------------------------
Definition at line 41 of file cmsswVersionTools.py.
00044 : 00045 """ 00046 ------------------------------------------------------------------ 00047 Reconfigure the PATJetProducer to be able to run the 36X version 00048 of PAT on 35X input samples. 00049 00050 process : process 00051 ------------------------------------------------------------------ 00052 """ 00053 print "*********************************************************************" 00054 print "NOTE TO USER: when running on 35X sample with 36X s/w versions you " 00055 print " need to adapt for different event contents. The " 00056 print " adaptations need to be made: " 00057 print " " 00058 print " - re-configuration of secondary vertex tag discrimi- " 00059 print " nator information. " 00060 print " " 00061 print "*********************************************************************" 00062 ## re-configure b-discriminator sources for pat jets 00063 process.patJets.discriminatorSources = cms.VInputTag( 00064 cms.InputTag("combinedSecondaryVertexBJetTags"), 00065 cms.InputTag("combinedSecondaryVertexMVABJetTags"), 00066 cms.InputTag("jetBProbabilityBJetTags"), 00067 cms.InputTag("jetProbabilityBJetTags"), 00068 cms.InputTag("simpleSecondaryVertexBJetTags"), 00069 cms.InputTag("softElectronByPtBJetTags"), 00070 cms.InputTag("softElectronByIP3dBJetTags"), 00071 cms.InputTag("softMuonBJetTags"), 00072 cms.InputTag("softMuonByPtBJetTags"), 00073 cms.InputTag("softMuonByIP3dBJetTags"), 00074 cms.InputTag("trackCountingHighEffBJetTags"), 00075 cms.InputTag("trackCountingHighPurBJetTags"), 00076 ) 00077 if genJets != "" : 00078 print "*********************************************************************" 00079 print "NOTE TO USER: when running on 31X samples re-recoed in 3.5.x " 00080 print " with this CMSSW version of PAT " 00081 print " it is required to re-run the GenJet production for " 00082 print " anti-kT since that is not part of the re-reco " 00083 print "*********************************************************************" 00084 process.load("RecoJets.Configuration.GenJetParticles_cff") 00085 process.load("RecoJets.JetProducers." + genJets +"_cfi") 00086 process.patDefaultSequence.replace( getattr(process,"patCandidates"+postfix), process.genParticlesForJets+getattr(process,genJets)+getattr(process,"patCandidates"+postfix)) 00087 00088
def cmsswVersionTools::run42xOn3yzMcInput | ( | process, | |
l1MenuTag = 'L1GtTriggerMenu_L1Menu_Commissioning2010_v4_mc' # L1 menu for Fall10 REDIGI (CMSSW_3_8_7) |
|||
) |
------------------------------------------------------ Deal with backweard incompatibilities of conditions ------------------------------------------------------
Definition at line 17 of file cmsswVersionTools.py.
00020 : 00021 """ 00022 """ 00023 # Use correct L1 trigger menu 00024 import CondCore.DBCommon.CondDBCommon_cfi 00025 process.l1GtTriggerMenu = cms.ESSource( "PoolDBESSource" 00026 , CondCore.DBCommon.CondDBCommon_cfi.CondDBCommon 00027 , toGet = cms.VPSet( 00028 cms.PSet( 00029 connect = cms.untracked.string( 'frontier://FrontierProd/CMS_COND_31X_L1T' ) 00030 , record = cms.string( 'L1GtTriggerMenuRcd' ) 00031 , tag = cms.string( l1MenuTag ) 00032 ) 00033 ) 00034 ) 00035 process.preferL1GtTriggerMenu = cms.ESPrefer( "PoolDBESSource", "l1GtTriggerMenu" ) 00036
Definition at line 1012 of file cmsswVersionTools.py.