CMS 3D CMS Logo

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

Functions

def L1TReEmulCommonFromRAW
 
def L1TReEmulFromRAW
 
def L1TReEmulStage1FromRAW
 
def L1TReEmulStage2FromRAW
 

Function Documentation

def customiseReEmul.L1TReEmulCommonFromRAW (   process)

Definition at line 33 of file customiseReEmul.py.

Referenced by L1TReEmulStage1FromRAW(), and L1TReEmulStage2FromRAW().

33 
34 def L1TReEmulCommonFromRAW(process):
35  process.load('L1Trigger.Configuration.SimL1Emulator_cff')
36  process.L1TReEmul = cms.Sequence(process.SimL1Emulator)
37  process.simDtTriggerPrimitiveDigis.digiTag = 'muonDTDigis'
38  process.simCscTriggerPrimitiveDigis.CSCComparatorDigiProducer = cms.InputTag( 'muonCSCDigis', 'MuonCSCComparatorDigi')
39  process.simCscTriggerPrimitiveDigis.CSCWireDigiProducer = cms.InputTag( 'muonCSCDigis', 'MuonCSCWireDigi' )
40  return process
def customiseReEmul.L1TReEmulFromRAW (   process)

Definition at line 4 of file customiseReEmul.py.

References L1TReEmulStage1FromRAW(), and L1TReEmulStage2FromRAW().

4 
5 def L1TReEmulFromRAW(process):
6  # just assume stage 1 for initial testing...
7  if eras.stage2L1Trigger.isChosen():
9  else:
10  L1TReEmulStage1FromRAW(process)
11  return process
12 
13 # NOT TESTED YET:
14 #def L1TReEmulHCALTPFromRAW(process):
15 # process.load('L1Trigger.Configuration.CaloTriggerPrimitives_cff')
16 # process.simEcalTriggerPrimitiveDigis.Label = 'ecalDigis'
17 # process.simHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(
18 # cms.InputTag('hcalDigis'),
19 # cms.InputTag('hcalDigis')
20 # )
21 # # not sure what this does... (inherited)
22 # # over-ride the corresponding Calo inputs
23 # process.HcalTPGCoderULUT.LUTGenerationMode = cms.bool(True)
24 # if hasattr(process,"simCaloStage2Layer1Digis"):
25 # process.simCaloStage2Layer1Digis.hcalToken = cms.InputTag('simHcalTriggerPrimitiveDigis')
26 # if hasattr(process,"simRctDigis"):
27 # process.simRctDigis.hcalDigis = cms.VInputTag('simHcalTriggerPrimitiveDigis')
28 # process.L1TReEmul = cms.Sequence(simHcalTriggerPrimitiveDigis * SimL1Emulator)
29 # return process
30 
31 
32 
# common to legacy / stage-1 / stage-2
def customiseReEmul.L1TReEmulStage1FromRAW (   process)

Definition at line 59 of file customiseReEmul.py.

References L1TReEmulCommonFromRAW().

Referenced by L1TReEmulFromRAW().

59 
60 def L1TReEmulStage1FromRAW(process):
61  L1TReEmulCommonFromRAW(process)
62  process.simRctDigis.ecalDigis = cms.VInputTag( cms.InputTag( 'ecalDigis:EcalTriggerPrimitives' ) )
63  process.simRctDigis.hcalDigis = cms.VInputTag( cms.InputTag( 'hcalTriggerPrimitiveDigis' ) ) # or ?
64  process.simRpcTriggerDigis.label = 'muonRPCDigis'
65  process.L1TReEmulPath = cms.Path(process.L1TReEmul)
66  process.schedule.append(process.L1TReEmulPath)
67  print "L1TReEmul sequence: "
68  print process.L1TReEmul
69  print process.schedule
70  return process
71 
72 
73 
74 
75 
def customiseReEmul.L1TReEmulStage2FromRAW (   process)

Definition at line 41 of file customiseReEmul.py.

References L1TReEmulCommonFromRAW().

Referenced by L1TReEmulFromRAW().

41 
42 def L1TReEmulStage2FromRAW(process):
43  L1TReEmulCommonFromRAW(process)
44  process.simTwinMuxDigis.RPC_Source = cms.InputTag('muonRPCDigis')
45  # When available, this will switch to TwinMux input Digis:
46  process.simTwinMuxDigis.DTDigi_Source = cms.InputTag("dttfDigis")
47  process.simTwinMuxDigis.DTThetaDigi_Source = cms.InputTag("dttfDigis")
48  process.simOmtfDigis.srcRPC = cms.InputTag('muonRPCDigis')
49  process.simBmtfDigis.DTDigi_Source = cms.InputTag("simTwinMuxDigis")
50  process.simBmtfDigis.DTDigi_Theta_Source = cms.InputTag("dttfDigis")
51  process.simCaloStage2Layer1Digis.ecalToken = cms.InputTag("ecalDigis:EcalTriggerPrimitives")
52  process.simCaloStage2Layer1Digis.hcalToken = cms.InputTag("hcalDigis")
53  process.L1TReEmulPath = cms.Path(process.L1TReEmul)
54  process.schedule.append(process.L1TReEmulPath)
55  print "L1TReEmul sequence: "
56  print process.L1TReEmul
57  print process.schedule
58  return process