CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Attributes | Static Private Member Functions | Private Attributes
Types.EventID Class Reference
Inheritance diagram for Types.EventID:
Mixins._ParameterTypeBase

Public Member Functions

def __init__
 
def cppID
 
def event
 
def insertInto
 
def luminosityBlock
 
def pythonValue
 
def run
 
- Public Member Functions inherited from Mixins._ParameterTypeBase
def __init__
 
def __repr__
 
def configTypeName
 
def dumpPython
 
def isFrozen
 
def isModified
 
def isTracked
 
def pythonTypeName
 
def resetModified
 
def setIsFrozen
 
def setIsTracked
 

Static Public Attributes

list event = parts[2]
 
list lumi = parts[1]
 
int lumi = 0
 
list run = parts[0]
 

Static Private Member Functions

def _isValid
 
def _valueFromString
 

Private Attributes

 __event
 
 __luminosityBlock
 
 __run
 

Detailed Description

Definition at line 165 of file Types.py.

Constructor & Destructor Documentation

def Types.EventID.__init__ (   self,
  run,
  args 
)

Definition at line 166 of file Types.py.

167  def __init__(self, run, *args):
168  super(EventID,self).__init__()
169  if isinstance(run, basestring):
170  self.__run = self._valueFromString(run).__run
171  self.__luminosityBlock = self._valueFromString(run).__luminosityBlock
172  self.__event = self._valueFromString(run).__event
173  else:
174  self.__run = run
175  if len(args) == 1:
176  self.__luminosityBlock = 0
177  self.__event = args[0]
178  elif len(args) == 2:
179  self.__luminosityBlock = args[0]
180  self.__event = args[1]
181  else:
raise RuntimeError('EventID ctor must have 2 or 3 arguments')
def __init__
Definition: Types.py:166
def _valueFromString
Definition: Types.py:192
__luminosityBlock
Definition: Types.py:170

Member Function Documentation

def Types.EventID._isValid (   value)
staticprivate

Definition at line 189 of file Types.py.

Referenced by Mixins._SimpleParameterTypeBase.setValue().

190  def _isValid(value):
return True
def _isValid
Definition: Types.py:189
def Types.EventID._valueFromString (   value)
staticprivate

Definition at line 192 of file Types.py.

193  def _valueFromString(value):
parts = value.split(":")
def _valueFromString
Definition: Types.py:192
def Types.EventID.cppID (   self,
  parameterSet 
)

Definition at line 204 of file Types.py.

References TB06Reco.event, TB06RecoH2.event, EcalPerEvtMatacqAnalyzer.event, WZInterestingEventSelector::event.event, EcalStatusAnalyzer.event, L1TLTC.event, HitEff.event, EcalMatacqAnalyzer.event, cms::GammaJetAnalysis.event, EcalTestPulseAnalyzer.event, EcalABAnalyzer.event, EcalPerEvtLaserAnalyzer.event, EcalLaserAnalyzer.event, EcalLaserAnalyzer2.event, Types.EventID.event, edm::ConfigurableInputSource.luminosityBlock(), edm::LuminosityBlockAuxiliary.luminosityBlock(), edm::EventID.luminosityBlock(), edm::LuminosityBlockID.luminosityBlock(), edm::LuminosityBlockBase.luminosityBlock(), edm::EventBase.luminosityBlock(), edm::EventAuxiliary.luminosityBlock(), edm::LuminosityBlockPrincipal.luminosityBlock(), edm::EventPrincipal.luminosityBlock(), Types.EventID.luminosityBlock(), edm::InputSource.luminosityBlock(), RPCRunIOV::RunIOV_Item.run, RPCDQMObject.run, TB06Reco.run, TB06RecoH2.run, relval_steps.InputInfo.run, WZInterestingEventSelector::event.run, EfficiencyPlotter.run, MatacqProducer::MatacqEventId.run, DTResolutionAnalysisTest.run, L1TLTC.run, MuonRecoTest.run, MuonTrackResidualsTest.run, DTDataIntegrityTest.run, HitEff.run, DTBlockedROChannelsTest.run, ME::Header.run, DTResolutionTest.run, DTDeadChannelTest.run, DTtTrigCalibrationTest.run, DTEfficiencyTest.run, cms::GammaJetAnalysis.run, DTChamberEfficiencyTest.run, DTNoiseTest.run, DTLocalTriggerBaseTest.run, SiPixelErrorEstimation.run, and Types.EventID.run.

Referenced by Types.EventID.insertInto(), Types.LuminosityBlockID.insertInto(), Types.LuminosityBlockRange.insertInto(), and Types.EventRange.insertInto().

205  def cppID(self, parameterSet):
return parameterSet.newEventID(self.run(), self.luminosityBlock(), self.event())
list run
Definition: Types.py:194
def luminosityBlock
Definition: Types.py:184
def cppID
Definition: Types.py:204
list event
Definition: Types.py:197
def Types.EventID.event (   self)

Definition at line 186 of file Types.py.

References Types.EventID.__event, and Types.EventID.event.

187  def event(self):
return self.__event
list event
Definition: Types.py:197
def Types.EventID.insertInto (   self,
  parameterSet,
  myname 
)

Definition at line 206 of file Types.py.

References Types.EventID.cppID(), edm::AllowedLabelsDescriptionBase.isTracked(), edm::ParameterWildcardBase.isTracked(), edm::VParameterSetEntry.isTracked(), edm::ParameterSetEntry.isTracked(), edm::ParameterDescriptionBase.isTracked(), Mixins._ParameterTypeBase.isTracked(), and edm::Entry.isTracked().

207  def insertInto(self, parameterSet, myname):
208  parameterSet.addEventID(self.isTracked(), myname, self.cppID(parameterSet))
209 
def insertInto
Definition: Types.py:206
def cppID
Definition: Types.py:204
def Types.EventID.luminosityBlock (   self)

Definition at line 184 of file Types.py.

References Types.EventID.__luminosityBlock.

Referenced by Types.EventID.cppID(), and Types.LuminosityBlockID.cppID().

185  def luminosityBlock(self):
return self.__luminosityBlock
def luminosityBlock
Definition: Types.py:184
__luminosityBlock
Definition: Types.py:170
def Types.EventID.pythonValue (   self,
  options = PrintOptions() 
)

Definition at line 202 of file Types.py.

References Types.EventID.__event, Types.EventID.__luminosityBlock, and Types.EventID.__run.

Referenced by Mixins._ParameterTypeBase.dumpPython().

203  def pythonValue(self, options=PrintOptions()):
return str(self.__run)+ ', '+str(self.__luminosityBlock)+ ', '+str(self.__event)
def pythonValue
Definition: Types.py:202
__luminosityBlock
Definition: Types.py:170
def Types.EventID.run (   self)

Definition at line 182 of file Types.py.

References Types.EventID.__run, and Types.EventID.run.

Referenced by Types.LuminosityBlockID.cppID().

183  def run(self):
return self.__run
list run
Definition: Types.py:194

Member Data Documentation

Types.EventID.__event
private

Definition at line 171 of file Types.py.

Referenced by Types.EventID.event(), and Types.EventID.pythonValue().

Types.EventID.__luminosityBlock
private

Definition at line 170 of file Types.py.

Referenced by Types.EventID.luminosityBlock(), and Types.EventID.pythonValue().

Types.EventID.__run
private

Definition at line 169 of file Types.py.

Referenced by Types.EventID.pythonValue(), Types.LuminosityBlockID.pythonValue(), Types.EventID.run(), and Types.LuminosityBlockID.run().

list EventID.event = parts[2]
static

Definition at line 197 of file Types.py.

Referenced by Types.EventID.cppID(), and Types.EventID.event().

list Types.EventID.lumi = parts[1]
static

Definition at line 196 of file Types.py.

Referenced by generateEDF.LumiInfo.__str__().

int Types.EventID.lumi = 0
static

Definition at line 199 of file Types.py.

Referenced by generateEDF.LumiInfo.__str__().

list Types.EventID.run = parts[0]
static

Definition at line 194 of file Types.py.

Referenced by generateEDF.LumiInfo.__str__(), Types.EventID.cppID(), Types.LuminosityBlockID.cppID(), generateEDF.LumiInfo.fixXingInfo(), Types.EventID.run(), and dqm_interfaces.DirWalkerFile.walk().