CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes | Static Public Attributes
options.ConnectionHLTMenu Class Reference
Inheritance diagram for options.ConnectionHLTMenu:

Public Member Functions

def __init__
 

Public Attributes

 database
 
 name
 
 run
 
 version
 

Static Public Attributes

dictionary compatibility = { 'hltdev': ('v3', 'run3'), 'orcoff': ('v3', 'adg') }
 
string valid_databases = 'online'
 
string valid_versions = 'v1'
 

Detailed Description

Definition at line 48 of file options.py.

Constructor & Destructor Documentation

def options.ConnectionHLTMenu.__init__ (   self,
  value 
)

Definition at line 53 of file options.py.

53 
54  def __init__(self, value):
55  self.version = None
56  self.database = None
57  self.name = None
58  self.run = None
59 
60  if not value:
61  return
62 
63  if not ':' in value:
64  # default to 'v3/run3'
65  self.version = 'v3'
66  self.database = 'run3'
67  self.name = value
68  return
69 
70  # extract the version, database and configuration name
71  tokens = value.split(':')
72  if len(tokens) != 2:
73  raise Exception('Invalid HLT menu specification "%s"' % value)
74  (db, name) = tokens
75  # check if the menu should be automatically determined based on the run number
76  if db == 'run':
77  self.version = 'v3'
78  self.database = 'adg'
79  self.run = name
80  # check for backward compatibility names
81  elif db in self.compatibility:
82  self.version, self.database = self.compatibility[db]
83  self.name = name
84  else:
85  if '/' in db:
86  # extract the version and database
87  tokens = db.split('/')
88  if len(tokens) != 2:
89  raise Exception('Invalid HLT menu specification "%s"' % value)
90  (v, db) = tokens
91  if v not in self.valid_versions:
92  raise Exception('Invalid HLT database version "%s", valid values are "%s"' % (v, '", "'.join(self.valid_versions)))
93  if db not in self.valid_databases:
94  raise Exception('Invalid HLT database "%s", valid values are "%s"' % (db, '", "'.join(self.valid_databases)))
95  self.version = v
96  self.database = db
97  self.name = name
98  else:
99  # use the confdb v3 by default
100  if db not in self.valid_databases:
101  raise Exception('Invalid HLT database "%s", valid values are "%s"' % (db, '", "'.join(self.valid_databases)))
102  self.database = db
103  self.version = 'v3'
104  self.name = name
105 
# options marked with a (*) only apply when creating a whole process configuration
dictionary compatibility
Definition: options.py:51
static std::string join(char **cmd)
Definition: RemoteFile.cc:19

Member Data Documentation

dictionary options.ConnectionHLTMenu.compatibility = { 'hltdev': ('v3', 'run3'), 'orcoff': ('v3', 'adg') }
static

Definition at line 51 of file options.py.

options.ConnectionHLTMenu.database

Definition at line 55 of file options.py.

options.ConnectionHLTMenu.name

Definition at line 56 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(), dataset.Dataset.__getDataType(), dataset.Dataset.__getFileInfoList(), 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(), dirstructure.Directory.calcStats(), geometryComparison.GeometryComparison.createScript(), 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(), primaryVertexResolution.PrimaryVertexResolution.getRepMap(), primaryVertexValidation.PrimaryVertexValidation.getRepMap(), zMuMuValidation.ZMuMuValidation.getRepMap(), 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().

options.ConnectionHLTMenu.run

Definition at line 57 of file options.py.

Referenced by DTWorkflow.DTWorkflow.all(), Types.EventID.cppID(), Types.LuminosityBlockID.cppID(), o2olib.O2OTool.execute(), and dqm_interfaces.DirWalkerFile.walk().

string options.ConnectionHLTMenu.valid_databases = 'online'
static

Definition at line 50 of file options.py.

string options.ConnectionHLTMenu.valid_versions = 'v1'
static

Definition at line 49 of file options.py.

options.ConnectionHLTMenu.version

Definition at line 54 of file options.py.

Referenced by validation.Sample.datasetpattern(), and validation.Sample.filename().