CMS 3D CMS Logo

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

Functions

def L1TBasicDemo
 customisations for L1T demos More...
 
def L1THLTDemo
 

Function Documentation

def customiseDemo.L1TBasicDemo (   process)

customisations for L1T demos

Add demonstration modules to cmsDriver customs.

Definition at line 13 of file customiseDemo.py.

References print().

13 
14 def L1TBasicDemo(process):
15  print("L1T INFO: adding basic demo module to the process.")
16  process.load('L1Trigger.L1TCommon.l1tBasicDemo_cfi')
17  process.l1tBasicDemoPath = cms.Path(process.l1tBasicDemo)
18  process.schedule.append(process.l1tBasicDemoPath)
19  return process
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def L1TBasicDemo
customisations for L1T demos
def customiseDemo.L1THLTDemo (   process)

Definition at line 20 of file customiseDemo.py.

References print().

20 
21 def L1THLTDemo(process):
22  #process.load('L1Trigger.Configuration.SimL1Emulator_cff')
23  process.load('L1Trigger.L1TGlobal.hackConditions_cff')
24  print("L1T INFO: adding HLT demo module to the process.")
25  #
26  # BEGIN HLT UNPACKER SEQUENCE FOR STAGE 2
27  #
28 
29  process.hltGtStage2Digis = cms.EDProducer(
30  "L1TRawToDigi",
31  Setup = cms.string("stage2::GTSetup"),
32  FedIds = cms.vint32( 1404 ),
33  )
34 
35  process.hltCaloStage2Digis = cms.EDProducer(
36  "L1TRawToDigi",
37  Setup = cms.string("stage2::CaloSetup"),
38  FedIds = cms.vint32( 1360, 1366 ),
39  )
40 
41  process.hltGmtStage2Digis = cms.EDProducer(
42  "L1TRawToDigi",
43  Setup = cms.string("stage2::GMTSetup"),
44  FedIds = cms.vint32(1402),
45  )
46 
47  process.hltGtStage2ObjectMap = cms.EDProducer(
48  "L1TGlobalProducer",
49  MuonInputTag = cms.InputTag("hltGmtStage2Digis","Muon"),
50  ExtInputTag = cms.InputTag("hltGtStage2Digis"), # (external conditions are not emulated, use unpacked)
51  EtSumInputTag = cms.InputTag("hltCaloStage2Digis", "EtSum"),
52  EGammaInputTag = cms.InputTag("hltCaloStage2Digis", "EGamma"),
53  TauInputTag = cms.InputTag("hltCaloStage2Digis", "Tau"),
54  JetInputTag = cms.InputTag("hltCaloStage2Digis", "Jet"),
55  AlgorithmTriggersUnprescaled = cms.bool(True),
56  AlgorithmTriggersUnmasked = cms.bool(True),
57  )
58 
59  # keeping same sequence name as for legacy system:
60  process.HLTL1UnpackerSequence = cms.Sequence(
61  process.hltGtStage2Digis +
62  process.hltCaloStage2Digis +
63  process.hltGmtStage2Digis +
64  process.hltGtStage2ObjectMap
65  )
66 
67  #
68  # END HLT UNPACKER SEQUENCE FOR STAGE 2
69  #
70 
71  #
72  # BEGIN L1T SEEDS EXAMPLE FOR STAGE 2
73  #
74  process.hltL1TSeed = cms.EDFilter(
75  "HLTL1TSeed",
76  L1SeedsLogicalExpression = cms.string( "L1_DoubleMu0er1p6_dEta_Max1p8 OR L1_DoubleMu0er1p6_dEta_Max1p8_OS " ),
77  saveTags = cms.bool( True ),
78  L1ObjectMapInputTag = cms.InputTag("hltGtStage2ObjectMap"),
79  L1GlobalInputTag = cms.InputTag("hltGtStage2Digis"),
80  L1MuonInputTag = cms.InputTag("hltGmtStage2Digis","Muon"),
81  L1EGammaInputTag = cms.InputTag("hltCaloStage2Digis","EGamma"),
82  L1JetInputTag = cms.InputTag("hltCaloStage2Digis","Jet"),
83  L1TauInputTag = cms.InputTag("hltCaloStage2Digis","Tau"),
84  L1EtSumInputTag = cms.InputTag("hltCaloStage2Digis","EtSum"),
85  )
86 
87  # HLT Seed sequence
88  process.HLTL1TSeedSequence = cms.Sequence(
89  process.hltL1TSeed
90  )
91 
92  #
93  # END L1T SEEDS EXAMPLE FOR STAGE 2
94  #
95 
96  print("L1T INFO: will dump a summary of Stage2 content as unpacked by HLT to screen.")
97  process.load('L1Trigger.L1TCommon.l1tSummaryStage2HltDigis_cfi')
98 
99  # gt analyzer
100  process.l1tGlobalSummary = cms.EDAnalyzer(
101  'L1TGlobalSummary',
102  AlgInputTag = cms.InputTag("hltGtStage2ObjectMap"),
103  ExtInputTag = cms.InputTag("hltGtStage2ObjectMap"),
104  # DumpTrigResults = cms.bool(True), # per event dump of trig results
105  DumpTrigSummary = cms.bool(True), # job summary... not yet implemented...
106  )
107 
108  process.HLTL1TDebugSequence = cms.Sequence(process.l1tSummaryStage2HltDigis + process.l1tGlobalSummary)
109 
110 
111 
112  print("L1T Input: HLTL1UnpackerSequence: ")
113  print(process.HLTL1UnpackerSequence)
114  print("L1T Input: HLTL1TSeedSequence: ")
115  print(process.HLTL1TSeedSequence)
116  print("L1T Input: HLTL1TDebugSequence: ")
117  print(process.HLTL1TDebugSequence)
118  process.l1tHLTDemoPath = cms.Path(process.HLTL1UnpackerSequence + process.HLTL1TSeedSequence + process.HLTL1TDebugSequence)
119  process.schedule.append(process.l1tHLTDemoPath)
120  return process
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47