CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1TReEmulateFromRAW_cff.py
Go to the documentation of this file.
1 # defines:
2 #
3 # L1TReEmulateFromRAW = cms.Sequence(...)
4 #
5 # properly configured for the current Era (e.g. Run1, 2015, or 2016). Also
6 # configures event setup producers appropriate to the current Era, to handle
7 # conditions which are not yet available in the GT.
8 
9 import FWCore.ParameterSet.Config as cms
10 from Configuration.StandardSequences.Eras import eras
13 
14 # Legacy trigger primitive emulations still running in 2016 trigger:
15 #
16 # NOTE: 2016 HCAL HF TPs require a new emulation, which is not yet available...
17 #
18 
19 # now change all the inputs to the first step of the emulation to use
20 # unpacked digis instead of simDigis:
21 simEcalTriggerPrimitiveDigis.Label = 'ecalDigis'
22 simHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(
23  cms.InputTag('hcalDigis'),
24  cms.InputTag('hcalDigis')
25  )
26 # not sure what this does...
27 HcalTPGCoderULUT.LUTGenerationMode = cms.bool(True)
28 
29 
30 # ...
31 simDtTriggerPrimitiveDigis.digiTag = 'muonDTDigis'
32 simCscTriggerPrimitiveDigis.CSCComparatorDigiProducer = cms.InputTag( 'muonCSCDigis', 'MuonCSCComparatorDigi' )
33 simCscTriggerPrimitiveDigis.CSCWireDigiProducer = cms.InputTag( 'muonCSCDigis', 'MuonCSCWireDigi' )
34 
35 
36 
37 
38 L1TRerunHCALTP_FromRAW = cms.Sequence(
39 
40 
41 )
42 
43 
44 # calo TP generation not normally run during Sim, step, so preprend it to the sequence:
45 L1TReEmulateFromRAW = cms.Sequence(
46  # hcalDigis *
47  simHcalTriggerPrimitiveDigis
48  * SimL1Emulator
49  )
50 
51 if not (eras.stage2L1Trigger.isChosen()):
52  # HCAL input would be from hcalDigis if hack not needed
53  from L1Trigger.Configuration.SimL1Emulator_cff import simRctDigis
54  simRctDigis.ecalDigis = cms.VInputTag( cms.InputTag( 'ecalDigis:EcalTriggerPrimitives' ) )
55  simRctDigis.hcalDigis = cms.VInputTag( cms.InputTag( 'simHcalTriggerPrimitiveDigis' ) )
56  simRpcTriggerDigis.label = 'muonRPCDigis'
57  # simRpcTechTrigDigis.RPCDigiLabel = 'muonRPCDigis' # IGNORING TECH TRIGGERS FOR NOW
58 
59 if eras.stage2L1Trigger.isChosen():
60  simTwinMuxDigis.RPC_Source = cms.InputTag('muonRPCDigis')
61  simOmtfDigis.srcRPC = cms.InputTag('muonRPCDigis')
62  simCaloStage2Layer1Digis.ecalToken = cms.InputTag('ecalDigis:EcalTriggerPrimitives')
63  simCaloStage2Layer1Digis.hcalToken = cms.InputTag('simHcalTriggerPrimitiveDigis')
64  # this is a hack for -3 BX discrepancy between MC and re-Emulation, not yet understood:
65  # simMuonQualityAdjusterDigis.bmtfBxOffset = cms.int32(3)
66  # Picking up simulation a bit further downstream for now:
67  simTwinMuxDigis.DTDigi_Source = cms.InputTag("dttfDigis")
68  simTwinMuxDigis.DTThetaDigi_Source = cms.InputTag("dttfDigis")
69  simBmtfDigis.DTDigi_Source = cms.InputTag("simTwinMuxDigis")
70  simBmtfDigis.DTDigi_Theta_Source = cms.InputTag("dttfDigis")