CMS 3D CMS Logo

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

Functions

def L1TAddBitwiseLayer1
 
def L1TCaloStage2ParamsForHW
 
def L1TEventSetupForHF1x1TPs
 
def L1TReEmulFromRAW
 
def L1TReEmulFromRAW2015
 
def L1TReEmulFromRAW2015simCaloTP
 
def L1TReEmulFromRAWsimEcalTP
 
def L1TReEmulFromRAWsimHcalTP
 
def L1TReEmulFromRAWsimTP
 
def L1TReEmulMCFromRAW
 
def L1TReEmulMCFromRAW2015
 

Function Documentation

def customiseReEmul.L1TAddBitwiseLayer1 (   process)

Definition at line 8 of file customiseReEmul.py.

8 
9 def L1TAddBitwiseLayer1(process):
10  from L1Trigger.L1TCaloLayer1.simCaloStage2Layer1Digis_cfi import simCaloStage2Layer1Digis as simCaloStage2BitwiseLayer1Digis
11  from L1Trigger.L1TCalorimeter.simCaloStage2Digis_cfi import simCaloStage2Digis as simCaloStage2BitwiseDigis
12  process.simCaloStage2BitwiseLayer1Digis = simCaloStage2BitwiseLayer1Digis.clone()
13  process.simCaloStage2BitwiseLayer1Digis.ecalToken = cms.InputTag("ecalDigis:EcalTriggerPrimitives")
14  process.simCaloStage2BitwiseDigis = simCaloStage2BitwiseDigis.clone()
15  process.simCaloStage2BitwiseDigis.towerToken = cms.InputTag("simCaloStage2BitwiseLayer1Digis")
16  process.SimL1TCalorimeter = cms.Sequence( process.simCaloStage2Layer1Digis + process.simCaloStage2Digis + process.simCaloStage2BitwiseLayer1Digis + process.simCaloStage2BitwiseDigis)
17  from L1Trigger.L1TNtuples.l1UpgradeTree_cfi import l1UpgradeTree
18  process.l1UpgradeBitwiseTree = l1UpgradeTree.clone()
19  process.l1UpgradeBitwiseTree.egToken = cms.untracked.InputTag("simCaloStage2BitwiseDigis")
20  process.l1UpgradeBitwiseTree.tauTokens = cms.untracked.VInputTag("simCaloStage2BitwiseDigis")
21  process.l1UpgradeBitwiseTree.jetToken = cms.untracked.InputTag("simCaloStage2BitwiseDigis")
22  process.l1UpgradeBitwiseTree.muonToken = cms.untracked.InputTag("simGmtStage2Digis")
23  process.l1UpgradeBitwiseTree.sumToken = cms.untracked.InputTag("simCaloStage2BitwiseDigis")
24  process.l1ntuplebitwise = cms.Path(
25  process.l1UpgradeBitwiseTree
26  )
27  process.schedule.append(process.l1ntuplebitwise)
28  print "modified L1TReEmul: "
29  print process.L1TReEmul
30  return process
31 
# As of 80X, this ES configuration is needed for *data* GTs (mc tags work w/o)
def customiseReEmul.L1TCaloStage2ParamsForHW (   process)

Definition at line 4 of file customiseReEmul.py.

4 
5 def L1TCaloStage2ParamsForHW(process):
6  process.load("L1Trigger.L1TCalorimeter.caloStage2Params_HWConfig_cfi")
7  return process
def L1TCaloStage2ParamsForHW
def customiseReEmul.L1TEventSetupForHF1x1TPs (   process)

Definition at line 32 of file customiseReEmul.py.

32 
33 def L1TEventSetupForHF1x1TPs(process):
34  process.es_pool_hf1x1 = cms.ESSource(
35  "PoolDBESSource",
36  #process.CondDBSetup,
37  timetype = cms.string('runnumber'),
38  toGet = cms.VPSet(
39  cms.PSet(record = cms.string("HcalLutMetadataRcd"),
40  tag = cms.string("HcalLutMetadata_HFTP_1x1")
41  ),
42  cms.PSet(record = cms.string("HcalElectronicsMapRcd"),
43  tag = cms.string("HcalElectronicsMap_HFTP_1x1")
44  )
45  ),
46  connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS'),
47  authenticationMethod = cms.untracked.uint32(0)
48  )
49  process.es_prefer_es_pool_hf1x1 = cms.ESPrefer("PoolDBESSource", "es_pool_hf1x1")
50  return process
def customiseReEmul.L1TReEmulFromRAW (   process)

Definition at line 114 of file customiseReEmul.py.

Referenced by L1TReEmulFromRAWsimEcalTP(), L1TReEmulFromRAWsimHcalTP(), L1TReEmulFromRAWsimTP(), and L1TReEmulMCFromRAW().

115 def L1TReEmulFromRAW(process):
116  process.load('L1Trigger.Configuration.SimL1Emulator_cff')
117  process.load('L1Trigger.Configuration.CaloTriggerPrimitives_cff')
118  process.simEcalTriggerPrimitiveDigis.Label = 'ecalDigis'
119  process.simHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(
120  cms.InputTag('hcalDigis'),
121  cms.InputTag('hcalDigis')
122  )
123  process.simCscTriggerPrimitiveDigis.CSCComparatorDigiProducer = cms.InputTag( 'muonCSCDigis', 'MuonCSCComparatorDigi')
124  process.simCscTriggerPrimitiveDigis.CSCWireDigiProducer = cms.InputTag( 'muonCSCDigis', 'MuonCSCWireDigi' )
125  process.L1TReEmul = cms.Sequence(process.simEcalTriggerPrimitiveDigis * process.simHcalTriggerPrimitiveDigis * process.SimL1Emulator)
126  if eras.stage2L1Trigger.isChosen():
127  #cutlist=['simDtTriggerPrimitiveDigis','simCscTriggerPrimitiveDigis']
128  #for b in cutlist:
129  # process.SimL1Emulator.remove(getattr(process,b))
130  # TwinMux
131  process.simTwinMuxDigis.RPC_Source = cms.InputTag('muonRPCDigis')
132  process.simTwinMuxDigis.DTDigi_Source = cms.InputTag('bmtfDigis')
133  process.simTwinMuxDigis.DTThetaDigi_Source = cms.InputTag('bmtfDigis')
134  # BMTF
135  process.simBmtfDigis.DTDigi_Source = cms.InputTag('bmtfDigis')
136  process.simBmtfDigis.DTDigi_Theta_Source = cms.InputTag('bmtfDigis')
137  # OMTF
138  process.simOmtfDigis.srcRPC = cms.InputTag('muonRPCDigis')
139  process.simOmtfDigis.srcCSC = cms.InputTag('csctfDigis')
140  process.simOmtfDigis.srcDTPh = cms.InputTag('bmtfDigis')
141  process.simOmtfDigis.srcDTTh = cms.InputTag('bmtfDigis')
142  # EMTF
143  process.simEmtfDigis.CSCInput = cms.InputTag('emtfStage2Digis')
144  process.simEmtfDigis.RPCInput = cms.InputTag('muonRPCDigis')
145  # Calo Layer1
146  process.simCaloStage2Layer1Digis.ecalToken = cms.InputTag('ecalDigis:EcalTriggerPrimitives')
147  process.simCaloStage2Layer1Digis.hcalToken = cms.InputTag('hcalDigis:')
148  process.L1TReEmulPath = cms.Path(process.L1TReEmul)
149  process.schedule.append(process.L1TReEmulPath)
150  print "L1TReEmulPath sequence: "
151  print process.L1TReEmulPath
152  print process.schedule
153  return process
154  else:
155  process.simRctDigis.ecalDigis = cms.VInputTag( cms.InputTag( 'ecalDigis:EcalTriggerPrimitives' ) )
156  process.simRctDigis.hcalDigis = cms.VInputTag('hcalDigis:')
157  process.simRpcTriggerDigis.label = 'muonRPCDigis'
158  process.L1TReEmulPath = cms.Path(process.L1TReEmul)
159  process.schedule.append(process.L1TReEmulPath)
160  print "L1TReEmul sequence: "
161  print process.L1TReEmul
162  print process.schedule
163  return process
def customiseReEmul.L1TReEmulFromRAW2015 (   process)

Definition at line 51 of file customiseReEmul.py.

Referenced by L1TReEmulFromRAW2015simCaloTP(), and L1TReEmulMCFromRAW2015().

51 
52 def L1TReEmulFromRAW2015(process):
53  process.load('L1Trigger.Configuration.SimL1Emulator_cff')
54  process.load('L1Trigger.Configuration.CaloTriggerPrimitives_cff')
55  process.simEcalTriggerPrimitiveDigis.Label = 'ecalDigis'
56  process.simHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(
57  cms.InputTag('hcalDigis'),
58  cms.InputTag('hcalDigis')
59  )
60  process.L1TReEmul = cms.Sequence(process.simEcalTriggerPrimitiveDigis * process.simHcalTriggerPrimitiveDigis * process.SimL1Emulator)
61  process.simDtTriggerPrimitiveDigis.digiTag = 'muonDTDigis'
62  process.simCscTriggerPrimitiveDigis.CSCComparatorDigiProducer = cms.InputTag( 'muonCSCDigis', 'MuonCSCComparatorDigi')
63  process.simCscTriggerPrimitiveDigis.CSCWireDigiProducer = cms.InputTag( 'muonCSCDigis', 'MuonCSCWireDigi' )
64 
65  if eras.stage2L1Trigger.isChosen():
66  process.simTwinMuxDigis.RPC_Source = cms.InputTag('muonRPCDigis')
67  # When available, this will switch to TwinMux input Digis:
68  process.simTwinMuxDigis.DTDigi_Source = cms.InputTag("dttfDigis")
69  process.simTwinMuxDigis.DTThetaDigi_Source = cms.InputTag("dttfDigis")
70  process.simOmtfDigis.srcRPC = cms.InputTag('muonRPCDigis')
71  process.simBmtfDigis.DTDigi_Source = cms.InputTag("simTwinMuxDigis")
72  process.simBmtfDigis.DTDigi_Theta_Source = cms.InputTag("dttfDigis")
73  process.simEmtfDigis.CSCInput = cms.InputTag("csctfDigis")
74  process.simEmtfDigis.RPCInput = cms.InputTag('muonRPCDigis')
75  process.simOmtfDigis.srcCSC = cms.InputTag("csctfDigis")
76  process.simCaloStage2Layer1Digis.ecalToken = cms.InputTag("ecalDigis:EcalTriggerPrimitives")
77  process.L1TReEmulPath = cms.Path(process.L1TReEmul)
78  process.schedule.append(process.L1TReEmulPath)
79  print "L1TReEmul sequence: "
80  print process.L1TReEmul
81  print process.schedule
82  # quiet warning abouts missing Stage-2 payloads, since they won't reliably exist in 2015 data.
83  if hasattr(process, "caloStage2Digis"):
84  process.caloStage2Digis.MinFeds = cms.uint32(0)
85  if hasattr(process, "gmtStage2Digis"):
86  process.gmtStage2Digis.MinFeds = cms.uint32(0)
87  if hasattr(process, "gtStage2Digis"):
88  process.gtStage2Digis.MinFeds = cms.uint32(0)
89  return process
90  else:
91  process.simRctDigis.ecalDigis = cms.VInputTag('simEcalTriggerPrimitiveDigis')
92  process.simRctDigis.hcalDigis = cms.VInputTag('simHcalTriggerPrimitiveDigis')
93  process.simRpcTriggerDigis.label = 'muonRPCDigis'
94  process.simRpcTechTrigDigis.RPCDigiLabel = 'muonRPCDigis'
95  process.L1TReEmulPath = cms.Path(process.L1TReEmul)
96  process.schedule.append(process.L1TReEmulPath)
97  print "L1TReEmul sequence: "
98  print process.L1TReEmul
99  print process.schedule
100  return process
def customiseReEmul.L1TReEmulFromRAW2015simCaloTP (   process)

Definition at line 108 of file customiseReEmul.py.

References L1TReEmulFromRAW2015().

109 def L1TReEmulFromRAW2015simCaloTP(process):
110  L1TReEmulFromRAW2015(process)
111  if eras.stage2L1Trigger.isChosen():
112  process.simCaloStage2Layer1Digis.ecalToken = cms.InputTag("simEcalTriggerPrimitiveDigis")
113  return process
def L1TReEmulFromRAW2015simCaloTP
def customiseReEmul.L1TReEmulFromRAWsimEcalTP (   process)

Definition at line 171 of file customiseReEmul.py.

References L1TReEmulFromRAW().

172 def L1TReEmulFromRAWsimEcalTP(process):
173  L1TReEmulFromRAW(process)
174  if eras.stage2L1Trigger.isChosen():
175  process.simCaloStage2Layer1Digis.ecalToken = cms.InputTag("simEcalTriggerPrimitiveDigis")
176  return process
def customiseReEmul.L1TReEmulFromRAWsimHcalTP (   process)

Definition at line 177 of file customiseReEmul.py.

References L1TReEmulFromRAW().

178 def L1TReEmulFromRAWsimHcalTP(process):
179  L1TReEmulFromRAW(process)
180  if eras.stage2L1Trigger.isChosen():
181  process.simCaloStage2Layer1Digis.hcalToken = cms.InputTag('simHcalTriggerPrimitiveDigis')
182  return process
def customiseReEmul.L1TReEmulFromRAWsimTP (   process)

Definition at line 183 of file customiseReEmul.py.

References L1TReEmulFromRAW().

184 def L1TReEmulFromRAWsimTP(process):
185  L1TReEmulFromRAW(process)
186  if eras.stage2L1Trigger.isChosen():
187  # TwinMux
188  process.simTwinMuxDigis.RPC_Source = cms.InputTag('muonRPCDigis')
189  process.simTwinMuxDigis.DTDigi_Source = cms.InputTag('simDtTriggerPrimitiveDigis')
190  process.simTwinMuxDigis.DTThetaDigi_Source = cms.InputTag('simDtTriggerPrimitiveDigis')
191  # BMTF
192  process.simBmtfDigis.DTDigi_Source = cms.InputTag('simTwinMuxDigis')
193  process.simBmtfDigis.DTDigi_Theta_Source = cms.InputTag('simDtTriggerPrimitiveDigis')
194  # OMTF
195  process.simOmtfDigis.srcRPC = cms.InputTag('muonRPCDigis')
196  process.simOmtfDigis.srcCSC = cms.InputTag('simCscTriggerPrimitiveDigis')
197  process.simOmtfDigis.srcDTPh = cms.InputTag('simDtTriggerPrimitiveDigis')
198  process.simOmtfDigis.srcDTTh = cms.InputTag('simDtTriggerPrimitiveDigis')
199  # EMTF
200  process.simEmtfDigis.CSCInput = cms.InputTag('simCscTriggerPrimitiveDigis')
201  process.simEmtfDigis.RPCInput = cms.InputTag('muonRPCDigis')
202  # Layer1
203  process.simCaloStage2Layer1Digis.ecalToken = cms.InputTag("simEcalTriggerPrimitiveDigis")
204  process.simCaloStage2Layer1Digis.hcalToken = cms.InputTag('simHcalTriggerPrimitiveDigis')
205  return process
206 
def customiseReEmul.L1TReEmulMCFromRAW (   process)

Definition at line 164 of file customiseReEmul.py.

References L1TReEmulFromRAW().

165 def L1TReEmulMCFromRAW(process):
166  L1TReEmulFromRAW(process)
167  if eras.stage2L1Trigger.isChosen():
168  process.simEmtfDigis.CSCInput = cms.InputTag('simCscTriggerPrimitiveDigis','MPCSORTED')
169  process.simOmtfDigis.srcCSC = cms.InputTag('simCscTriggerPrimitiveDigis','MPCSORTED')
170  return process
def customiseReEmul.L1TReEmulMCFromRAW2015 (   process)

Definition at line 101 of file customiseReEmul.py.

References L1TReEmulFromRAW2015().

102 def L1TReEmulMCFromRAW2015(process):
103  L1TReEmulFromRAW2015(process)
104  if eras.stage2L1Trigger.isChosen():
105  process.simEmtfDigis.CSCInput = cms.InputTag('simCscTriggerPrimitiveDigis','MPCSORTED')
106  process.simOmtfDigis.srcCSC = cms.InputTag('simCscTriggerPrimitiveDigis','MPCSORTED')
107  return process