CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1Reco_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # the only thing FastSim runs from L1Reco is l1extraParticles
4 from L1Trigger.Configuration.L1Reco_cff import l1extraParticles
5 
6 # If the Stage 1 trigger is running, there is also some different configuration.
7 # Note that this next file does nothing if the stage1L1Trigger era is not active, so
8 # it is safe to import even if the Stage 1 trigger is not required. It *MUST* be
9 # imported into this namespace, i.e. "from <module> import *".
11 
12 # some collections have different labels
13 def _changeLabelForFastSim( object ) :
14  """
15  Takes an InputTag, changes the first letter of the module label to a capital
16  and adds "sim" in front, e.g. "gctDigid" -> "simGctDigis".
17  This works for both Run 1 and Run 2 collections.
18  """
19  object.moduleLabel="sim"+object.moduleLabel[0].upper()+object.moduleLabel[1:]
20 
21 _changeLabelForFastSim( l1extraParticles.isolatedEmSource )
22 _changeLabelForFastSim( l1extraParticles.nonIsolatedEmSource )
23 
24 _changeLabelForFastSim( l1extraParticles.centralJetSource )
25 _changeLabelForFastSim( l1extraParticles.tauJetSource )
26 _changeLabelForFastSim( l1extraParticles.isoTauJetSource )
27 _changeLabelForFastSim( l1extraParticles.forwardJetSource )
28 
29 _changeLabelForFastSim( l1extraParticles.etTotalSource )
30 _changeLabelForFastSim( l1extraParticles.etHadSource )
31 _changeLabelForFastSim( l1extraParticles.htMissSource )
32 _changeLabelForFastSim( l1extraParticles.etMissSource )
33 
34 _changeLabelForFastSim( l1extraParticles.hfRingEtSumsSource )
35 _changeLabelForFastSim( l1extraParticles.hfRingBitCountsSource )
36 
37 # This one is subtly different, but is the same for Run 1 and Run 2 FastSim
38 l1extraParticles.muonSource = cms.InputTag('simGmtDigis')
39 
40 
41 # must be set to true when used in HLT, as is the case for FastSim
42 l1extraParticles.centralBxOnly = True
43 
44 L1Reco = cms.Sequence(l1extraParticles)
L1REPACK: redo GCT,GT, using Run-1 or Run-2 input, making Run-2 output.
def _changeLabelForFastSim
Definition: L1Reco_cff.py:13