CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions | Variables
cmsswVersionTools Namespace Reference

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

More...
 
def run41xOn3yzMcInput
 

Deal with backweard incompatibilities of conditions

More...
 

Variables

tuple pickRelValInputFiles = PickRelValInputFiles()
 

Function Documentation

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.

Referenced by run41xOn3yzMcInput().

43 
44  postfix=""):
45  """
46  ------------------------------------------------------------------
47  Reconfigure the PATJetProducer to be able to run the 36X version
48  of PAT on 35X input samples.
49 
50  process : process
51  ------------------------------------------------------------------
52  """
53  print "*********************************************************************"
54  print "NOTE TO USER: when running on 35X sample with 36X s/w versions you "
55  print " need to adapt for different event contents. The "
56  print " adaptations need to be made: "
57  print " "
58  print " - re-configuration of secondary vertex tag discrimi- "
59  print " nator information. "
60  print " "
61  print "*********************************************************************"
62  ## re-configure b-discriminator sources for pat jets
63  process.patJets.discriminatorSources = cms.VInputTag(
64  cms.InputTag("combinedSecondaryVertexBJetTags"),
65  cms.InputTag("combinedSecondaryVertexMVABJetTags"),
66  cms.InputTag("jetBProbabilityBJetTags"),
67  cms.InputTag("jetProbabilityBJetTags"),
68  cms.InputTag("simpleSecondaryVertexBJetTags"),
69  cms.InputTag("softElectronByPtBJetTags"),
70  cms.InputTag("softElectronByIP3dBJetTags"),
71  cms.InputTag("softMuonBJetTags"),
72  cms.InputTag("softMuonByPtBJetTags"),
73  cms.InputTag("softMuonByIP3dBJetTags"),
74  cms.InputTag("trackCountingHighEffBJetTags"),
75  cms.InputTag("trackCountingHighPurBJetTags"),
76  )
77  if genJets != "" :
78  print "*********************************************************************"
79  print "NOTE TO USER: when running on 31X samples re-recoed in 3.5.x "
80  print " with this CMSSW version of PAT "
81  print " it is required to re-run the GenJet production for "
82  print " anti-kT since that is not part of the re-reco "
83  print "*********************************************************************"
84  process.load("RecoJets.Configuration.GenJetParticles_cff")
85  process.load("RecoJets.JetProducers." + genJets +"_cfi")
86  process.patDefaultSequence.replace( getattr(process,"patCandidates"+postfix), process.genParticlesForJets+getattr(process,genJets)+getattr(process,"patCandidates"+postfix))
87 
88 
def cmsswVersionTools.run41xOn3yzMcInput (   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.

References run36xOn35xInput().

19 
20  ):
21  """
22  """
23  # Use correct L1 trigger menu
25  process.l1GtTriggerMenu = cms.ESSource( "PoolDBESSource"
26  , CondCore.DBCommon.CondDBCommon_cfi.CondDBCommon
27  , toGet = cms.VPSet(
28  cms.PSet(
29  connect = cms.untracked.string( 'frontier://FrontierProd/CMS_COND_31X_L1T' )
30  , record = cms.string( 'L1GtTriggerMenuRcd' )
31  , tag = cms.string( l1MenuTag )
32  )
33  )
34  )
35  process.preferL1GtTriggerMenu = cms.ESPrefer( "PoolDBESSource", "l1GtTriggerMenu" )
36 

Variable Documentation

tuple cmsswVersionTools.pickRelValInputFiles = PickRelValInputFiles()

Definition at line 1001 of file cmsswVersionTools.py.