CMS 3D CMS Logo

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

Public Member Functions

def __init__ (self, value)
 

Public Attributes

 database
 
 name
 
 run
 
 version
 

Detailed Description

Definition at line 52 of file options.py.

Constructor & Destructor Documentation

def options.ConnectionHLTMenu.__init__ (   self,
  value 
)

Definition at line 57 of file options.py.

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

Member Data Documentation

options.ConnectionHLTMenu.database

Definition at line 59 of file options.py.

options.ConnectionHLTMenu.name

Definition at line 60 of file options.py.

Referenced by ElectronMVAID.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__(), core.autovars.NTupleObjectType.addSubObjects(), core.autovars.NTupleObjectType.addVariables(), core.autovars.NTupleObjectType.allVars(), 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(), Vispa.Views.PropertyView.Property.valueChanged(), counter.Counter.write(), and average.Average.write().

options.ConnectionHLTMenu.run
options.ConnectionHLTMenu.version