CMS 3D CMS Logo

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

Functions

def Base
 
def FASTSIM
 
def HLTDropPrevious
 
def L1T
 
def L1THLT
 
def ProcessName
 

Function Documentation

def CustomConfigs.Base (   process)

Definition at line 18 of file CustomConfigs.py.

References ProcessName(), and reco.return().

Referenced by ora::ObjectStreamerBase.buildBaseDataMembers(), gen::DataCardFileWriter.DataCardFileWriter(), ora::ClassUtils.findBaseType(), HLTDropPrevious(), L1T(), L1THLT(), and ora.processBaseClasses().

18 
19 def Base(process):
20 # default modifications
21 
22  process.options.wantSummary = cms.untracked.bool(True)
23 
24  process.MessageLogger.categories.append('TriggerSummaryProducerAOD')
25  process.MessageLogger.categories.append('L1GtTrigReport')
26  process.MessageLogger.categories.append('HLTrigReport')
27 
28 # override the GlobalTag, connection string and pfnPrefix
29  if 'GlobalTag' in process.__dict__:
30  process.GlobalTag.connect = 'frontier://FrontierProd/CMS_COND_31X_GLOBALTAG'
31  process.GlobalTag.pfnPrefix = cms.untracked.string('frontier://FrontierProd/')
32 
33  process=ProcessName(process)
34 
35  return(process)
36 
return(e1-e2)*(e1-e2)+dp *dp
def CustomConfigs.FASTSIM (   process)

Definition at line 66 of file CustomConfigs.py.

References L1THLT(), and reco.return().

66 
67 def FASTSIM(process):
68 # modifications when running L1T+HLT
69 
70  process=L1THLT(process)
71  process.hltL1GtTrigReport.L1GtRecordInputTag = cms.InputTag("gtDigis")
72 
73  return(process)
74 
return(e1-e2)*(e1-e2)+dp *dp
def CustomConfigs.HLTDropPrevious (   process)

Definition at line 75 of file CustomConfigs.py.

References Base(), and reco.return().

75 
76 def HLTDropPrevious(process):
77 # drop on input the previous HLT results
78  process.source.inputCommands = cms.untracked.vstring (
79  'keep *',
80  'drop *_hltL1GtObjectMap_*_*',
81  'drop *_TriggerResults_*_*',
82  'drop *_hltTriggerSummaryAOD_*_*',
83  )
84 
85  process=Base(process)
86 
87  return(process)
return(e1-e2)*(e1-e2)+dp *dp
def CustomConfigs.L1T (   process)

Definition at line 37 of file CustomConfigs.py.

References Base(), and reco.return().

37 
38 def L1T(process):
39 # modifications when running L1T only
40 
41  process.load('L1Trigger.GlobalTriggerAnalyzer.l1GtTrigReport_cfi')
42  process.l1GtTrigReport.L1GtRecordInputTag = cms.InputTag( "simGtDigis" )
43 
44  process.L1AnalyzerEndpath = cms.EndPath( process.l1GtTrigReport )
45  process.schedule.append(process.L1AnalyzerEndpath)
46 
47  process=Base(process)
48 
49  return(process)
50 
return(e1-e2)*(e1-e2)+dp *dp
def CustomConfigs.L1THLT (   process)

Definition at line 51 of file CustomConfigs.py.

References Base(), and reco.return().

Referenced by FASTSIM().

51 
52 def L1THLT(process):
53 # modifications when running L1T+HLT
54 
55  if not ('HLTAnalyzerEndpath' in process.__dict__) :
56  from HLTrigger.Configuration.HLT_FULL_cff import hltL1GtTrigReport,hltTrigReport
57  process.hltL1GtTrigReport = hltL1GtTrigReport
58  process.hltTrigReport = hltTrigReport
59  process.HLTAnalyzerEndpath = cms.EndPath(process.hltL1GtTrigReport + process.hltTrigReport)
60  process.schedule.append(process.HLTAnalyzerEndpath)
61 
62  process=Base(process)
63 
64  return(process)
65 
return(e1-e2)*(e1-e2)+dp *dp
def CustomConfigs.ProcessName (   process)

Definition at line 3 of file CustomConfigs.py.

References reco.return().

Referenced by Base(), and ConfigBuilder.ConfigBuilder.prepare_HLT().

3 
4 def ProcessName(process):
5 # processname modifications
6 
7  if 'hltTrigReport' in process.__dict__:
8  process.hltTrigReport.HLTriggerResults = cms.InputTag( 'TriggerResults','',process.name_() )
9 
10  if 'hltDQMHLTScalers' in process.__dict__:
11  process.hltDQMHLTScalers.triggerResults = cms.InputTag( 'TriggerResults','',process.name_() )
12 
13  if 'hltDQML1SeedLogicScalers' in process.__dict__:
14  process.hltDQML1SeedLogicScalers.processname = process.name_()
15 
16  return(process)
17 
return(e1-e2)*(e1-e2)+dp *dp