CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
options.HLTProcessOptions Class Reference
Inheritance diagram for options.HLTProcessOptions:

Public Member Functions

def __init__ (self)
 
def __setattr__ (self, name, value)
 

Public Attributes

 customise
 
 data
 
 emulator
 
 eras
 
 errortype
 
 events
 
 fragment
 
 globaltag
 
 hilton
 
 input
 
 l1
 
 l1Xml
 
 menu
 
 name
 
 open
 
 output
 
 parent
 
 paths
 
 prescale
 
 profiling
 
 proxy
 
 proxy_host
 
 proxy_port
 
 setup
 
 timing
 
 tunnel
 
 tunnel_port
 
 type
 

Detailed Description

Definition at line 108 of file options.py.

Constructor & Destructor Documentation

◆ __init__()

def options.HLTProcessOptions.__init__ (   self)

Definition at line 109 of file options.py.

109  def __init__(self):
110  self.menu = None # hlt menu
111  self.name = 'HLTX' # (*) if set, override the process name
112  self.type = 'GRun' # defines global options for 'GRun', 'HIon', 'PIon', 'PRef' or 'online' menus
113  self.data = True # run on data (true) or mc (false)
114  self.globaltag = None # (*) if set, override the GlobalTag
115  self.l1 = None # (*) if set, override the L1 menu
116  self.l1Xml = None # (*) if set, override the L1 menu Xml
117  self.emulator = None # (*) if set, run (part of) the L1 emulator instead of taking the L1 results from the data
118  self.prescale = None # (*) if set, force the use of a specific prescale column. If set to "none", unprescale all paths
119  self.open = False # if set, cms.ignore all filters, making all paths run on and accept all events
120  self.eras = None # if set, select the defined Eras into the HLT configuration
121  self.customise = None # if set, apply the user-defined customization functions using the format HLTrigger/Configuration/customizeHLTTrackingForPhaseI2017.customizeHLTForPFTrackingPhaseI2017
122  self.errortype = False # if set, change all HLTTriggerTypeFilter EDFilters to accept only error events (SelectedTriggerType = 0)
123  self.profiling = False # if set, instrument the menu for profiling measurements
124  self.timing = False # if set, instrument the menu for timing measurements (implies profiling)
125  self.paths = None # if set, include in the dump only the given paths (wildcards are supported)
126  self.input = None # (*) if set, specify the input file(s) or dataset
127  self.parent = None # (*) if set, specify the parent input file(s) or dataset
128  self.events = 100 # (*) run on these many events
129  self.output = 'all' # (*) output 'all', 'minimal' or 'none' output modules
130  self.fragment = False # prepare a configuration fragment (true) or a whole process (false)
131  self.hilton = False # prepare a configuration for running with hilton-like modules
132  self.setup = None # if set, downlad the setup_cff from the specified configuration and load it.
133  self.proxy = False # use a socks proxy to connect
134  self.proxy_host = 'localhost' # host of the proxy server
135  self.proxy_port = '8080' # port of the proxy server
136  self.tunnel = False # use a direct tunnel on localhost to connect
137  self.tunnel_port = '10121' # port to connect to on localhost when tunneling
138 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ __setattr__()

def options.HLTProcessOptions.__setattr__ (   self,
  name,
  value 
)

Definition at line 140 of file options.py.

References options.HLTProcessOptions.open.

Referenced by GenObject.GenObject.setValue().

140  def __setattr__(self, name, value):
141  if name == 'menu' and not isinstance(value, ConnectionHLTMenu):
142  # format 'menu' as needed
143  object.__setattr__(self, name, ConnectionHLTMenu(value))
144  elif name == 'l1' and not isinstance(value, ConnectionL1TMenu):
145  # format '--l1' as needed
146  object.__setattr__(self, name, ConnectionL1TMenu(value))
147  elif name == 'l1Xml' and not isinstance(value, ConnectionL1TMenuXml):
148  # format '--l1Xml' as needed
149  object.__setattr__(self, name, ConnectionL1TMenuXml(value))
150  elif name == 'open' and value:
151  # '--open' implies '--unprescale'
152  object.__setattr__(self, 'open', True)
153  object.__setattr__(self, 'prescale', "none")
154  elif name == 'prescale' and value is not None:
155  # '--open' overrides '--prescale', set the prescale value only if '--open' is not set
156  if not self.open:
157  object.__setattr__(self, 'prescale', value)
158  elif name == 'profiling' and value:
159  # '--profiling'
160  object.__setattr__(self, 'profiling', True)
161  elif name == 'timing' and value:
162  # '--timing' implies '--profiling'
163  object.__setattr__(self, 'timing', True)
164  object.__setattr__(self, 'profiling', True)
165  elif name == 'setup' and value and value.find(":")!=-1:
166  raise Exception('you can not specify a converter/database in the setup option.\nIt takes the converter database specified by the primary config.\nPlease remove the text upto and including the ":" in\n {} '.format(value))
167  else:
168  object.__setattr__(self, name, value)

Member Data Documentation

◆ customise

options.HLTProcessOptions.customise

Definition at line 121 of file options.py.

◆ data

◆ emulator

options.HLTProcessOptions.emulator

Definition at line 117 of file options.py.

◆ eras

◆ errortype

options.HLTProcessOptions.errortype

Definition at line 122 of file options.py.

◆ events

◆ fragment

options.HLTProcessOptions.fragment

Definition at line 130 of file options.py.

◆ globaltag

options.HLTProcessOptions.globaltag

Definition at line 114 of file options.py.

◆ hilton

options.HLTProcessOptions.hilton

Definition at line 131 of file options.py.

◆ input

options.HLTProcessOptions.input

Definition at line 126 of file options.py.

Referenced by collectionMerger.collectionMerger.analyze().

◆ l1

options.HLTProcessOptions.l1

Definition at line 115 of file options.py.

Referenced by ZMuMuRochCorAnalyzer.DiMuon.leg1().

◆ l1Xml

options.HLTProcessOptions.l1Xml

Definition at line 116 of file options.py.

◆ menu

options.HLTProcessOptions.menu

Definition at line 110 of file options.py.

◆ name

options.HLTProcessOptions.name

Definition at line 111 of file options.py.

Referenced by ElectronMVAID.ElectronMVAID.__call__(), FWLite.ElectronMVAID.__call__(), dirstructure.Directory.__create_pie_image(), DisplayManager.DisplayManager.__del__(), dqm_interfaces.DirID.__eq__(), dirstructure.Directory.__get_full_path(), dirstructure.Comparison.__get_img_name(), dirstructure.Comparison.__make_image(), core.autovars.NTupleVariable.__repr__(), core.autovars.NTupleObjectType.__repr__(), core.autovars.NTupleObject.__repr__(), core.autovars.NTupleCollection.__repr__(), dirstructure.Directory.__repr__(), dqm_interfaces.DirID.__repr__(), dirstructure.Comparison.__repr__(), config.Service.__setattr__(), config.CFG.__str__(), counter.Counter.__str__(), average.Average.__str__(), FWLite.WorkingPoints._reformat_cut_definitions(), core.autovars.NTupleObjectType.addSubObjects(), core.autovars.NTupleObjectType.addVariables(), core.autovars.NTupleObjectType.allVars(), dataset.CMSDataset.buildListOfFiles(), dataset.LocalDataset.buildListOfFiles(), dataset.CMSDataset.buildListOfFilesDBS(), dirstructure.Directory.calcStats(), validation.Sample.digest(), python.rootplot.utilities.Hist.divide(), python.rootplot.utilities.Hist.divide_wilson(), DisplayManager.DisplayManager.Draw(), core.autovars.NTupleVariable.fillBranch(), core.autovars.NTupleObject.fillBranches(), core.autovars.NTupleCollection.fillBranchesScalar(), core.autovars.NTupleCollection.fillBranchesVector(), core.autovars.NTupleCollection.get_cpp_declaration(), core.autovars.NTupleCollection.get_cpp_wrapper_class(), core.autovars.NTupleCollection.get_py_wrapper_class(), utils.StatisticalTest.get_status(), production_tasks.Task.getname(), dataset.CMSDataset.getPrimaryDatasetEntries(), dataset.PrivateDataset.getPrimaryDatasetEntries(), VIDSelectorBase.VIDSelectorBase.initialize(), core.autovars.NTupleVariable.makeBranch(), core.autovars.NTupleObject.makeBranches(), core.autovars.NTupleCollection.makeBranchesScalar(), core.autovars.NTupleCollection.makeBranchesVector(), dirstructure.Directory.print_report(), dataset.BaseDataset.printInfo(), dataset.Dataset.printInfo(), production_tasks.MonitorJobs.run(), python.rootplot.utilities.Hist.TGraph(), python.rootplot.utilities.Hist.TH1F(), counter.Counter.write(), and average.Average.write().

◆ open

options.HLTProcessOptions.open

Definition at line 119 of file options.py.

Referenced by options.HLTProcessOptions.__setattr__().

◆ output

options.HLTProcessOptions.output

Definition at line 129 of file options.py.

Referenced by collectionMerger.collectionMerger.analyze().

◆ parent

options.HLTProcessOptions.parent

◆ paths

options.HLTProcessOptions.paths

Definition at line 125 of file options.py.

Referenced by TestProcess.TestProcess.fillProcessDesc().

◆ prescale

options.HLTProcessOptions.prescale

Definition at line 118 of file options.py.

◆ profiling

options.HLTProcessOptions.profiling

Definition at line 123 of file options.py.

◆ proxy

options.HLTProcessOptions.proxy

Definition at line 133 of file options.py.

◆ proxy_host

options.HLTProcessOptions.proxy_host

Definition at line 134 of file options.py.

◆ proxy_port

options.HLTProcessOptions.proxy_port

Definition at line 135 of file options.py.

◆ setup

options.HLTProcessOptions.setup

◆ timing

options.HLTProcessOptions.timing

Definition at line 124 of file options.py.

◆ tunnel

options.HLTProcessOptions.tunnel

Definition at line 136 of file options.py.

◆ tunnel_port

options.HLTProcessOptions.tunnel_port

Definition at line 137 of file options.py.

◆ type

options.HLTProcessOptions.type