test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 12 of file customiseDemo.py.

12 
13 def L1TBasicDemo(process):
14  print "L1T INFO: adding basic demo module to the process."
15  process.load('L1Trigger.L1TCommon.l1tBasicDemo_cfi')
16  process.l1tBasicDemoPath = cms.Path(process.l1tBasicDemo)
17  process.schedule.append(process.l1tBasicDemoPath)
18  return process
def L1TBasicDemo
customisations for L1T demos
def customiseDemo.L1THLTDemo (   process)

Definition at line 19 of file customiseDemo.py.

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