CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
Mixins._Labelable Class Reference
Inheritance diagram for Mixins._Labelable:
Modules._Module Modules.ESPrefer Modules.ESProducer Modules.ESSource SequenceTypes._ModuleSequenceType SequenceTypes.DummyModule Types.PSet Types.SecSource Types.VPSet

Public Member Functions

def __str__
 
def dumpSequenceConfig
 
def dumpSequencePython
 
def hasLabel_
 
def label
 
def label_
 
def setLabel
 

Private Member Functions

def _findDependencies
 

Private Attributes

 __label
 

Detailed Description

A 'mixin' used to denote that the class can be paired with a label (e.g. an EDProducer)

Definition at line 398 of file Mixins.py.

Member Function Documentation

def Mixins._Labelable.__str__ (   self)

Definition at line 411 of file Mixins.py.

References Mixins._Labelable.__label.

412  def __str__(self):
413  #this is probably a bad idea
414  # I added this so that when we ask a path to print
415  # we will see the label that has been assigned
return str(self.__label)
def Mixins._Labelable._findDependencies (   self,
  knownDeps,
  presentDeps 
)
private

Definition at line 420 of file Mixins.py.

References WriteOneGeometryFromXML.label_, RPCRecoIdealDBLoader.label_, CSCRecoIdealDBLoader.label_, evf::EvFFEDSelector.label_, evf::EvFRecordUnpacker.label_, DTRecoIdealDBLoader.label_, evf::EvFRecordInserter.label_, HcalTBTriggerFilter.label_, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigFolder.label_(), MCPdgIndexFilter.label_, reco::EvtPlane.label_, edm::eventsetup::ComponentDescription.label_, SiStripLorentzAngleReader.label_, PythiaFilterEMJet.label_, FRDEventOutputModule< Consumer >.label_, PythiaFilterZgamma.label_, PythiaFilterGammaJet.label_, PythiaFilterGammaJetWithOutBg.label_, PythiaFilterGammaJetWithBg.label_, PythiaFilterZJet.label_, PythiaFilterZJetWithOutBg.label_, PythiaFilterGammaJetIsoPi0.label_, PixelClusterSelectorTopBottom.label_, StripClusterSelectorTopBottom.label_, pat::TriggerFilter.label_, HLTDoubletDZ< T1, T2 >.label_, PythiaFilterEMJetHeep.label_, edm::InputTag.label_, HistoProviderDQM.label_, MCSmartSingleParticleFilter.label_, MCDijetResonance.label_, edm::InputAnalyzer.label_, JetFlavourCutFilter.label_, JetFlavourFilter.label_, MCDecayingPionKaonFilter.label_, MCZll.label_, VertexMonitor.label_, PythiaDauVFilter.label_, MCProcessFilter.label_, MCProcessRangeFilter.label_, MCSingleParticleFilter.label_, PythiaFilter.label_, reco::Centrality.label_, PythiaHLTSoupFilter.label_, MuonNumberingInitialization.label_, HZZ4lFilter.label_, edm::ESOutlet< T, TRec >::Getter.label_, EcalTrigPrimProducer.label_, PythiaDauFilter.label_, MCParticlePairFilter.label_, ZgMassFilter.label_, ESDigiToRaw.label_, HerwigMaxPtPartonFilter.label_, RandomEngineState.label_, FourLepFilter.label_, DJpsiFilter.label_, HLTDoublet< T1, T2 >.label_, edm::SecSourceAnalyzer.label_, XMLIdealGeometryESProducer.label_, BsJpsiPhiFilter.label_, BdecayFilter.label_, EcalTrigPrimAnalyzer.label_, TPGCheck.label_, PythiaFilterTTBar.label_, pat::TauJetCorrFactors.label_, HSCPValidator.label_, EcalTrigPrimAnalyzerMIPs.label_, HiEgammaIsolationProducer.label_, edm::DataMixingSiPixelWorker.label_, edm::DataMixingSiStripWorker.label_, edm::DataMixingSiStripRawWorker.label_, edm::DataMixingHcalDigiWorkerProd.label_, TopSingleLepton::MonitorEnsemble.label_, TopHLTSingleLepton::MonitorEnsemble.label_, edm::DataMixingHcalWorker.label_, SiPixelCalibDigiProducer.label_, fwlite::ObjectCountSelector< Collection >.label_, edm::HiMixingWorkerBase.label_, edm::DataMixingEMWorker.label_, TopDiLeptonOffline::MonitorEnsemble.label_, pat::JetCorrFactors.label_, edm::DataMixingMuonWorker.label_, edm::DataMixingHcalDigiWorker.label_, edm::DataMixingEMDigiWorker.label_, pat::JetCorrFactorsProducer.label_, edm::ParameterDescriptionBase.label_, EcalDigiToRaw.label_, EffPurFromHistos.label_, AlgoImpl.label_, SummaryGenerator.label_, edm::ModuleLabelSelector.label_, edm::messagedrop::StringProducerWithPhase.label_, edm::DataMixingModule.label_, edm::MixingWorker< T >.label_, Mixins._Labelable.label_(), fwlite::Scanner< Collection >.label_, and runtimedef.set().

421  def _findDependencies(self,knownDeps,presentDeps):
422  #print 'in labelled'
423  myDeps=knownDeps.get(self.label_(),None)
424  if myDeps!=None:
425  if presentDeps != myDeps:
426  raise RuntimeError("the module "+self.label_()+" has two dependencies \n"
427  +str(presentDeps)+"\n"
428  +str(myDeps)+"\n"
429  +"Please modify sequences to rectify this inconsistency")
430  else:
431  myDeps=set(presentDeps)
432  knownDeps[self.label_()]=myDeps
433  presentDeps.add(self.label_())
434 
def _findDependencies
Definition: Mixins.py:420
void set(const std::string &name, int value)
set the flag, with a run-time name
def Mixins._Labelable.dumpSequenceConfig (   self)

Definition at line 416 of file Mixins.py.

References Mixins._Labelable.__label.

417  def dumpSequenceConfig(self):
return str(self.__label)
def dumpSequenceConfig
Definition: Mixins.py:416
def Mixins._Labelable.dumpSequencePython (   self)

Definition at line 418 of file Mixins.py.

References Mixins._Labelable.__label.

419  def dumpSequencePython(self):
return 'process.'+str(self.__label)
def dumpSequencePython
Definition: Mixins.py:418
def Mixins._Labelable.hasLabel_ (   self)

Definition at line 406 of file Mixins.py.

References Mixins._Labelable.__label.

Referenced by SequenceTypes._ModuleSequenceType.dumpSequenceConfig(), and SequenceTypes._ModuleSequenceType.dumpSequencePython().

407  def hasLabel_(self):
return hasattr(self, "_Labelable__label") and self.__label is not None
def Mixins._Labelable.label (   self)

Definition at line 408 of file Mixins.py.

References Mixins._Labelable.__label.

409  def label(self):
410  #print "WARNING: _Labelable::label() needs to be changed to label_()"
return self.__label
def Mixins._Labelable.label_ (   self)

Definition at line 402 of file Mixins.py.

References Mixins._Labelable.__label.

Referenced by Mixins._Labelable._findDependencies(), and Mixins._TypedParameterizable.dumpPython().

403  def label_(self):
404  if not hasattr(self, "_Labelable__label"):
405  raise RuntimeError("module has no label. Perhaps it wasn't inserted into the process?")
return self.__label
def Mixins._Labelable.setLabel (   self,
  label 
)

Definition at line 400 of file Mixins.py.

Referenced by SequenceTypes.DummyModule.__init__().

401  def setLabel(self,label):
self.__label = label

Member Data Documentation

Mixins._Labelable.__label
private

Definition at line 401 of file Mixins.py.

Referenced by Mixins._Labelable.__str__(), Mixins._ValidatingListBase._labelIfAny(), Mixins._Labelable.dumpSequenceConfig(), Mixins._Labelable.dumpSequencePython(), SequenceVisitors.PathValidator.enter(), SequenceVisitors.EndPathValidator.enter(), Mixins._Labelable.hasLabel_(), Mixins._Labelable.label(), Mixins._Labelable.label_(), SequenceVisitors.PathValidator.setLabel(), and SequenceVisitors.EndPathValidator.setLabel().