CMS 3D CMS Logo

Classes | Functions | Variables
config Namespace Reference

Classes

class  Analyzer
 
class  CFG
 
class  Component
 
class  Config
 
class  DataComponent
 
class  MCComponent
 
class  Sequence
 
class  Service
 

Functions

def customise_debug (process)
 
def customise_mc (process)
 
def printComps (comps, details=False)
 

Variables

 __author__
 
 __date__
 
 checkPath
 
 Configuration
 
 exceptPaths
 
 helpMsg
 
 htmlPath
 
 ordering
 
 picklePath
 
 ruleName
 
 rulesDescription
 
 rulesNames
 
 txtPath
 

Function Documentation

◆ customise_debug()

def config.customise_debug (   process)

Definition at line 3 of file config.py.

3 def customise_debug(process):
4  # EMTF Phase2 Emulator
5  process.load('L1Trigger.L1TMuonEndCapPhase2.simCscTriggerPrimitiveDigisForEMTF_cfi')
6  process.load('L1Trigger.L1TMuonEndCapPhase2.rpcRecHitsForEMTF_cfi')
7  process.load('L1Trigger.L1TMuonEndCapPhase2.simEmtfDigisPhase2_cfi')
8 
9  process.gemRecHits.gemDigiLabel = 'simMuonGEMDigis'
10  process.simEmtfDigisPhase2.Verbosity = cms.untracked.int32(5)
11 
12  process.L1TMuonEndCapPhase2Task = cms.Task(
13  process.simCscTriggerPrimitiveDigisForEMTF,
14  process.rpcRecHitsForEMTF,
15  process.simEmtfDigisPhase2
16  )
17 
18  process.L1TMuonEndCapPhase2Sequence = cms.Sequence(
19  process.L1TMuonEndCapPhase2Task
20  )
21 
22  # Path
23  process.L1TMuonEndCapPhase2_step = cms.Path(process.L1TMuonEndCapPhase2Sequence)
24 
25  process.schedule.extend([process.L1TMuonEndCapPhase2_step])
26 
27  # Remove cms.EndPath instances from schedule
28  paths_in_schedule = [path for path in process.schedule if not isinstance(path, cms.EndPath)]
29  process.schedule = cms.Schedule(*paths_in_schedule)
30  return process
31 
def customise_debug(process)
Definition: config.py:3

◆ customise_mc()

def config.customise_mc (   process)

Definition at line 32 of file config.py.

32 def customise_mc(process):
33  # EMTF Phase2 Emulator
34  process.load('L1Trigger.L1TMuonEndCapPhase2.simCscTriggerPrimitiveDigisForEMTF_cfi')
35  process.load('L1Trigger.L1TMuonEndCapPhase2.rpcRecHitsForEMTF_cfi')
36  process.load('L1Trigger.L1TMuonEndCapPhase2.simEmtfDigisPhase2_cfi')
37 
38  process.gemRecHits.gemDigiLabel = 'simMuonGEMDigis'
39  process.simEmtfDigisPhase2.Verbosity = cms.untracked.int32(1)
40 
41  process.L1TMuonEndCapPhase2Task = cms.Task(
42  process.simCscTriggerPrimitiveDigisForEMTF,
43  process.rpcRecHitsForEMTF,
44  process.simEmtfDigisPhase2
45  )
46 
47  process.L1TMuonEndCapPhase2Sequence = cms.Sequence(
48  process.L1TMuonEndCapPhase2Task
49  )
50 
51  # Path
52  process.L1TMuonEndCapPhase2_step = cms.Path(process.L1TMuonEndCapPhase2Sequence)
53 
54  process.schedule.extend([process.L1TMuonEndCapPhase2_step])
55 
56  # Remove cms.EndPath instances from schedule
57  paths_in_schedule = [path for path in process.schedule if not isinstance(path, cms.EndPath)]
58  process.schedule = cms.Schedule(*paths_in_schedule)
59  return process
60 
def customise_mc(process)
Definition: config.py:32

◆ printComps()

def config.printComps (   comps,
  details = False 
)
Summary printout for  a list of components comps.
The components are assumed to have a name, and a list of files,
like the ones from this module.

Definition at line 10 of file config.py.

References print().

10 def printComps(comps, details=False):
11  '''
12  Summary printout for a list of components comps.
13  The components are assumed to have a name, and a list of files,
14  like the ones from this module.
15  '''
16  nJobs = 0
17  nCompsWithFiles = 0
18  for c in comps:
19  if not hasattr(c, 'splitFactor'):
20  c.splitFactor = 1
21  print(c.name, c.splitFactor, len(c.files))
22  if len(c.files)==0:
23  continue
24  else:
25  if details:
26  print(c.files[0])
27  nJobs += c.splitFactor
28  nCompsWithFiles += 1
29 
30  print('-'*70)
31  print('# components with files = ', nCompsWithFiles)
32  print('# jobs = ', nJobs)
33 
34 
def printComps(comps, details=False)
Definition: config.py:10
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

Variable Documentation

◆ __author__

config.__author__
private

Definition at line 1 of file config.py.

◆ __date__

config.__date__
private

Definition at line 2 of file config.py.

◆ checkPath

config.checkPath

◆ Configuration

config.Configuration

Definition at line 24 of file config.py.

◆ exceptPaths

config.exceptPaths

Definition at line 18 of file config.py.

◆ helpMsg

config.helpMsg

Definition at line 199 of file config.py.

◆ htmlPath

config.htmlPath

Definition at line 14 of file config.py.

◆ ordering

config.ordering

◆ picklePath

config.picklePath

Definition at line 12 of file config.py.

◆ ruleName

config.ruleName

Definition at line 30 of file config.py.

◆ rulesDescription

config.rulesDescription

Definition at line 193 of file config.py.

◆ rulesNames

config.rulesNames

Definition at line 23 of file config.py.

◆ txtPath

config.txtPath

Definition at line 13 of file config.py.