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