CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Static Public Attributes
config.Service Class Reference
Inheritance diagram for config.Service:
config.CFG

Public Member Functions

def __init__ (self, class_object, instance_label=None, verbose=False, kwargs)
 
def __setattr__ (self, name, value)
 
def build_name (self)
 
def clone (self, kwargs)
 
- Public Member Functions inherited from config.CFG
def __init__ (self, kwargs)
 
def __str__ (self)
 
def clone (self, kwargs)
 

Public Attributes

 class_object
 
 instance_label
 
 name
 
 verbose
 

Static Public Attributes

 num_instance
 

Detailed Description

Definition at line 138 of file config.py.

Constructor & Destructor Documentation

def config.Service.__init__ (   self,
  class_object,
  instance_label = None,
  verbose = False,
  kwargs 
)

Definition at line 143 of file config.py.

143  verbose=False, **kwargs):
144  self.class_object = class_object
145  self.__class__.num_instance += 1
146  if instance_label is None:
147  instance_label = str(self.__class__.num_instance)
148  self.instance_label = instance_label
149  self.__class__.num_instance += 1
150  self.name = self.build_name()
151  self.verbose = verbose
152  super(Service, self).__init__(**kwargs)
153 
def __init__(self, class_object, instance_label=None, verbose=False, kwargs)
Definition: config.py:143
def build_name(self)
Definition: config.py:154
#define str(s)

Member Function Documentation

def config.Service.__setattr__ (   self,
  name,
  value 
)
You may decide to copy an existing analyzer and change
its instance_label. In that case, one must stay consistent.

Definition at line 160 of file config.py.

References config.Analyzer.build_name(), config.Service.build_name(), ElectronMVAID.ElectronMVAID.name, AlignableObjectId::entry.name, TmModule.name, cond::persistency::TAG::NAME.name, cond::persistency::GLOBAL_TAG::NAME.name, cond::persistency::RUN_INFO::RUN_NUMBER.name, cond::persistency::TAG::TIME_TYPE.name, core.autovars.NTupleVariable.name, cond::persistency::RUN_INFO::START_TIME.name, cond::persistency::GLOBAL_TAG::VALIDITY.name, cond::persistency::TAG::OBJECT_TYPE.name, cond::persistency::GLOBAL_TAG::DESCRIPTION.name, cond::persistency::RUN_INFO::END_TIME.name, cond::persistency::TAG::SYNCHRONIZATION.name, cond::persistency::GLOBAL_TAG::RELEASE.name, cond::persistency::TAG::END_OF_VALIDITY.name, MEPSet.name, cond::persistency::GLOBAL_TAG::SNAPSHOT_TIME.name, cond::persistency::TAG::DESCRIPTION.name, cond::persistency::GTEditorData.name, cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, nanoaod::MergeableCounterTable::SingleColumn< T >.name, cond::persistency::TAG::LAST_VALIDATED_TIME.name, cond::persistency::TAG::INSERTION_TIME.name, cond::persistency::TAG::MODIFICATION_TIME.name, FWTGeoRecoGeometry::Info.name, preexistingValidation.PreexistingValidation.name, OutputMEPSet.name, personalPlayback.Applet.name, Types._Untracked.name, ParameterSet.name, PixelDCSObject< T >::Item.name, DQMRivetClient::LumiOption.name, MagCylinder.name, analyzer.Analyzer.name, ParSet.name, edm::PathTimingSummary.name, DQMRivetClient::ScaleFactorOption.name, EgHLTOfflineSummaryClient::SumHistBinData.name, SingleObjectCondition.name, cond::persistency::GTProxyData.name, MyWatcher.name, core.autovars.NTupleObjectType.name, edm::PathSummary.name, nanoaod::MergeableCounterTable::VectorColumn< T >.name, lumi::TriggerInfo.name, cond::TimeTypeSpecs.name, alignment.Alignment.name, PixelEndcapLinkMaker::Item.name, perftools::EdmEventSize::BranchRecord.name, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, DQMGenericClient::EfficOption.name, FWTableViewManager::TableEntry.name, PixelBarrelLinkMaker::Item.name, cond::persistency::GLOBAL_TAG_MAP::RECORD.name, EcalLogicID.name, cond::persistency::GLOBAL_TAG_MAP::LABEL.name, cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, MEtoEDM< T >::MEtoEDMObject.name, cms::DDAlgoArguments.name, ExpressionHisto< T >.name, XMLProcessor::_loaderBaseConfig.name, cond::persistency::PAYLOAD::HASH.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, cond::persistency::PAYLOAD::DATA.name, TreeCrawler.Package.name, cond::persistency::PAYLOAD::STREAMER_INFO.name, genericValidation.GenericValidation.name, cond::persistency::PAYLOAD::VERSION.name, options.ConnectionHLTMenu.name, MagGeoBuilderFromDDD::volumeHandle.name, cond::persistency::PAYLOAD::INSERTION_TIME.name, DQMGenericClient::ProfileOption.name, dqmoffline::l1t::HistDefinition.name, DQMGenericClient::NormOption.name, emtf::Node.name, h4DSegm.name, FastHFShowerLibrary.name, PhysicsTools::Calibration::Variable.name, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.name, DQMGenericClient::CDOption.name, CounterChecker.name, TrackerSectorStruct.name, cond::TagInfo_t.name, DQMGenericClient::NoFlowOption.name, cond::persistency::IOV::TAG_NAME.name, cond::persistency::IOV::SINCE.name, EDMtoMEConverter.name, Mapper::definition< ScannerT >.name, cond::persistency::IOV::PAYLOAD_HASH.name, classes.MonitorData.name, cond::persistency::IOV::INSERTION_TIME.name, HistogramManager.name, MuonGeometrySanityCheckPoint.name, classes.OutputData.name, options.HLTProcessOptions.name, h2DSegm.name, core.TriggerBitAnalyzer.TriggerBitAnalyzer.name, nanoaod::FlatTable::Column.name, config.Analyzer.name, geometry.Structure.name, core.autovars.NTupleSubObject.name, DQMNet::WaitObject.name, AlpgenParameterName.name, SiStripMonitorDigi.name, core.autovars.NTupleObject.name, config.Service.name, cond::persistency::TAG_LOG::TAG_NAME.name, cond::persistency::TAG_LOG::EVENT_TIME.name, cond::persistency::TAG_LOG::USER_NAME.name, cond::persistency::TAG_LOG::HOST_NAME.name, cond::persistency::TAG_LOG::COMMAND.name, cond::persistency::TAG_LOG::ACTION.name, cond::persistency::TAG_LOG::USER_TEXT.name, core.autovars.NTupleCollection.name, BPHRecoBuilder::BPHRecoSource.name, BPHRecoBuilder::BPHCompSource.name, personalPlayback.FrameworkJob.name, plotscripts.SawTeethFunction.name, crabFunctions.CrabTask.name, hTMaxCell.name, cscdqm::ParHistoDef.name, BeautifulSoup.Tag.name, SummaryOutputProducer::GenericSummary.name, and BeautifulSoup.SoupStrainer.name.

Referenced by GenObject.GenObject.setValue().

160  def __setattr__(self, name, value):
161  '''You may decide to copy an existing analyzer and change
162  its instance_label. In that case, one must stay consistent.'''
163  self.__dict__[name] = value
164  if name == 'instance_label':
165  self.name = self.build_name()
166 
def __setattr__(self, name, value)
Definition: config.py:160
def build_name(self)
Definition: config.py:154
def config.Service.build_name (   self)

Definition at line 154 of file config.py.

References analyzer.Analyzer.instance_label, config.Analyzer.instance_label, config.Service.instance_label, and join().

Referenced by config.Service.__setattr__().

154  def build_name(self):
155  class_name = '.'.join([self.class_object.__module__,
156  self.class_object.__name__])
157  name = '_'.join([class_name, self.instance_label])
158  return name
159 
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def build_name(self)
Definition: config.py:154
def config.Service.clone (   self,
  kwargs 
)

Definition at line 167 of file config.py.

167  def clone(self, **kwargs):
168  other = super(Service, self).clone(**kwargs)
169  if 'class_object' in kwargs and 'name' not in kwargs:
170  other.name = other.build_name()
171  return other
172 
173 
def clone(self, kwargs)
Definition: config.py:167

Member Data Documentation

config.Service.class_object

Definition at line 144 of file config.py.

config.Service.instance_label
config.Service.name
config.Service.num_instance
static

Definition at line 140 of file config.py.

config.Service.verbose