CMS 3D CMS Logo

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__ (self, value)
 

Public Attributes

 database
 
 name
 
 run
 
 version
 

Static Public Attributes

 compatibility
 
 valid_databases
 
 valid_versions
 

Detailed Description

Definition at line 48 of file options.py.

Constructor & Destructor Documentation

◆ __init__()

def options.ConnectionHLTMenu.__init__ (   self,
  value 
)

Definition at line 53 of file options.py.

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

Member Data Documentation

◆ compatibility

options.ConnectionHLTMenu.compatibility
static

Definition at line 51 of file options.py.

◆ database

options.ConnectionHLTMenu.database

Definition at line 55 of file options.py.

◆ name

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(), 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().

◆ run

options.ConnectionHLTMenu.run

◆ valid_databases

options.ConnectionHLTMenu.valid_databases
static

Definition at line 50 of file options.py.

◆ valid_versions

options.ConnectionHLTMenu.valid_versions
static

Definition at line 49 of file options.py.

◆ version

options.ConnectionHLTMenu.version

Definition at line 54 of file options.py.

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

join
static std::string join(char **cmd)
Definition: RemoteFile.cc:17
Exception