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, DigiComparisonTask.name, TestTask.name, TPComparisonTask.name, HcalOnlineHarvesting.name, HFRaddamTask.name, LaserTask.name, NoCQTask.name, DigiPhase1Task.name, QIE10Task.name, QIE11Task.name, HcalOfflineHarvesting.name, RecHitTask.name, PedestalTask.name, UMNioTask.name, ZDCTask.name, AlignableObjectId::entry.name, RawTask.name, TPTask.name, DigiTask.name, LEDTask.name, TmModule.name, cond::persistency::TAG::NAME.name, cond::persistency::GTEditorData.name, cond::persistency::GLOBAL_TAG::NAME.name, cond::persistency::RUN_INFO::RUN_NUMBER.name, cond::persistency::TAG::TIME_TYPE.name, cond::persistency::GLOBAL_TAG::VALIDITY.name, cond::persistency::RUN_INFO::START_TIME.name, cond::persistency::TAG::OBJECT_TYPE.name, core.autovars.NTupleVariable.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, cms::dd::NameValuePair< T >.name, cond::persistency::TAG::DESCRIPTION.name, cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, cond::persistency::TAG::LAST_VALIDATED_TIME.name, cond::persistency::TAG::INSERTION_TIME.name, FWTGeoRecoGeometry::Info.name, nanoaod::MergeableCounterTable::SingleColumn< T >.name, cond::persistency::TAG::MODIFICATION_TIME.name, ParameterSet.name, preexistingValidation.PreexistingValidation.name, OutputMEPSet.name, PixelDCSObject< T >::Item.name, cms::dd::ValuePair< T, U >.name, personalPlayback.Applet.name, Types._Untracked.name, DQMRivetClient::LumiOption.name, MagCylinder.name, ParSet.name, analyzer.Analyzer.name, cond::persistency::GTProxyData.name, DQMRivetClient::ScaleFactorOption.name, Barrel.name, EgHLTOfflineSummaryClient::SumHistBinData.name, edm::PathTimingSummary.name, cms::DDAlgoArguments.name, SingleObjectCondition.name, perftools::EdmEventSize::BranchRecord.name, core.autovars.NTupleObjectType.name, cond::TimeTypeSpecs.name, MyWatcher.name, edm::PathSummary.name, EcalLogicID.name, DQMGenericClient::EfficOption.name, lumi::TriggerInfo.name, alignment.Alignment.name, nanoaod::MergeableCounterTable::VectorColumn< T >.name, PixelEndcapLinkMaker::Item.name, XMLProcessor::_loaderBaseConfig.name, MEtoEDM< T >::MEtoEDMObject.name, FWTableViewManager::TableEntry.name, PixelBarrelLinkMaker::Item.name, ExpressionHisto< T >.name, Supermodule.name, DQMGenericClient::ProfileOption.name, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, TreeCrawler.Package.name, genericValidation.GenericValidation.name, options.ConnectionHLTMenu.name, cond::persistency::GLOBAL_TAG_MAP::RECORD.name, DQMGenericClient::NormOption.name, cond::persistency::GLOBAL_TAG_MAP::LABEL.name, cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, dqmoffline::l1t::HistDefinition.name, DQMGenericClient::CDOption.name, magneticfield::BaseVolumeHandle.name, FastHFShowerLibrary.name, cms::DDParsingContext::CompositeMaterial.name, emtf::Node.name, h4DSegm.name, DQMGenericClient::NoFlowOption.name, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.name, cond::persistency::PAYLOAD::HASH.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, cond::persistency::PAYLOAD::DATA.name, CounterChecker.name, PhysicsTools::Calibration::Variable.name, cond::TagInfo_t.name, cond::persistency::PAYLOAD::STREAMER_INFO.name, cond::persistency::PAYLOAD::VERSION.name, TrackerSectorStruct.name, cond::persistency::PAYLOAD::INSERTION_TIME.name, MuonGeometrySanityCheckPoint.name, FCDTask.name, Mapper::definition< ScannerT >.name, EDMtoMEConverter.name, classes.MonitorData.name, HistogramManager.name, classes.OutputData.name, Crystal.name, cond::persistency::IOV::TAG_NAME.name, cond::persistency::IOV::SINCE.name, cond::persistency::IOV::PAYLOAD_HASH.name, cond::persistency::IOV::INSERTION_TIME.name, h2DSegm.name, options.HLTProcessOptions.name, core.TriggerBitAnalyzer.TriggerBitAnalyzer.name, DQMNet::WaitObject.name, AlpgenParameterName.name, config.Analyzer.name, geometry.Structure.name, core.autovars.NTupleSubObject.name, Capsule.name, core.autovars.NTupleObject.name, Ceramic.name, SiStripMonitorDigi.name, BulkSilicon.name, config.Service.name, nanoaod::FlatTable::Column.name, APD.name, core.autovars.NTupleCollection.name, BPHRecoBuilder::BPHRecoSource.name, BPHRecoBuilder::BPHCompSource.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, InnerLayerVolume.name, personalPlayback.FrameworkJob.name, Grid.name, Grille.name, BackPipe.name, plotscripts.SawTeethFunction.name, PatchPanel.name, BackCoolTank.name, DryAirTube.name, MBCoolTube.name, crabFunctions.CrabTask.name, MBManif.name, cscdqm::ParHistoDef.name, hTMaxCell.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:17
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