CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
customiseReEmul.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from Configuration.StandardSequences.Eras import eras
3 
4 def L1TReEmulFromRAW(process):
5  # just assume stage 1 for initial testing...
6  if eras.stage2L1Trigger.isChosen():
8  else:
10  return process
11 
12 # NOT TESTED YET:
13 #def L1TReEmulHCALTPFromRAW(process):
14 # process.load('L1Trigger.Configuration.CaloTriggerPrimitives_cff')
15 # process.simEcalTriggerPrimitiveDigis.Label = 'ecalDigis'
16 # process.simHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(
17 # cms.InputTag('hcalDigis'),
18 # cms.InputTag('hcalDigis')
19 # )
20 # # not sure what this does... (inherited)
21 # # over-ride the corresponding Calo inputs
22 # process.HcalTPGCoderULUT.LUTGenerationMode = cms.bool(True)
23 # if hasattr(process,"simCaloStage2Layer1Digis"):
24 # process.simCaloStage2Layer1Digis.hcalToken = cms.InputTag('simHcalTriggerPrimitiveDigis')
25 # if hasattr(process,"simRctDigis"):
26 # process.simRctDigis.hcalDigis = cms.VInputTag('simHcalTriggerPrimitiveDigis')
27 # process.L1TReEmul = cms.Sequence(simHcalTriggerPrimitiveDigis * SimL1Emulator)
28 # return process
29 
30 
31 
32 # common to legacy / stage-1 / stage-2
34  process.load('L1Trigger.Configuration.SimL1Emulator_cff')
35  process.L1TReEmul = cms.Sequence(process.SimL1Emulator)
36  process.simDtTriggerPrimitiveDigis.digiTag = 'muonDTDigis'
37  process.simCscTriggerPrimitiveDigis.CSCComparatorDigiProducer = cms.InputTag( 'muonCSCDigis', 'MuonCSCComparatorDigi')
38  process.simCscTriggerPrimitiveDigis.CSCWireDigiProducer = cms.InputTag( 'muonCSCDigis', 'MuonCSCWireDigi' )
39  return process
40 
42  L1TReEmulCommonFromRAW(process)
43  process.simTwinMuxDigis.RPC_Source = cms.InputTag('muonRPCDigis')
44  # When available, this will switch to TwinMux input Digis:
45  process.simTwinMuxDigis.DTDigi_Source = cms.InputTag("dttfDigis")
46  process.simTwinMuxDigis.DTThetaDigi_Source = cms.InputTag("dttfDigis")
47  process.simOmtfDigis.srcRPC = cms.InputTag('muonRPCDigis')
48  process.simBmtfDigis.DTDigi_Source = cms.InputTag("simTwinMuxDigis")
49  process.simBmtfDigis.DTDigi_Theta_Source = cms.InputTag("dttfDigis")
50  process.simCaloStage2Layer1Digis.ecalToken = cms.InputTag("ecalDigis:EcalTriggerPrimitives")
51  process.simCaloStage2Layer1Digis.hcalToken = cms.InputTag("hcalDigis")
52  process.L1TReEmulPath = cms.Path(process.L1TReEmul)
53  process.schedule.append(process.L1TReEmulPath)
54  print "L1TReEmul sequence: "
55  print process.L1TReEmul
56  print process.schedule
57  return process
58 
60  L1TReEmulCommonFromRAW(process)
61  process.simRctDigis.ecalDigis = cms.VInputTag( cms.InputTag( 'ecalDigis:EcalTriggerPrimitives' ) )
62  process.simRctDigis.hcalDigis = cms.VInputTag( cms.InputTag( 'hcalTriggerPrimitiveDigis' ) ) # or ?
63  process.simRpcTriggerDigis.label = 'muonRPCDigis'
64  process.L1TReEmulPath = cms.Path(process.L1TReEmul)
65  process.schedule.append(process.L1TReEmulPath)
66  print "L1TReEmul sequence: "
67  print process.L1TReEmul
68  print process.schedule
69  return process
70 
71 
72 
73 
74