CMS 3D CMS Logo

List of all members | Public Member Functions | Static Private Member Functions | Private Attributes
Types.EventID Class Reference
Inheritance diagram for Types.EventID:
Mixins._ParameterTypeBase

Public Member Functions

def __init__ (self, run, args)
 
def cppID (self, parameterSet)
 
def event (self)
 
def insertInto (self, parameterSet, myname)
 
def luminosityBlock (self)
 
def pythonValue (self, options=PrintOptions())
 
def run (self)
 
- Public Member Functions inherited from Mixins._ParameterTypeBase
def __init__ (self)
 
def __repr__ (self)
 
def configTypeName (self)
 
def dumpPython (self, options=PrintOptions())
 
def isFrozen (self)
 
def isModified (self)
 
def isTracked (self)
 
def pythonTypeName (self)
 
def resetModified (self)
 
def setIsFrozen (self)
 
def setIsTracked (self, trackness)
 

Static Private Member Functions

def _isValid (value)
 
def _valueFromString (value)
 

Private Attributes

 __event
 
 __luminosityBlock
 
 __run
 

Detailed Description

Definition at line 199 of file Types.py.

Constructor & Destructor Documentation

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

Definition at line 200 of file Types.py.

200  def __init__(self, run, *args):
201  super(EventID,self).__init__()
202  if isinstance(run, str):
203  self.__run = self._valueFromString(run).__run
204  self.__luminosityBlock = self._valueFromString(run).__luminosityBlock
205  self.__event = self._valueFromString(run).__event
206  else:
207  self.__run = run
208  if len(args) == 1:
209  self.__luminosityBlock = 0
210  self.__event = args[0]
211  elif len(args) == 2:
212  self.__luminosityBlock = args[0]
213  self.__event = args[1]
214  else:
215  raise RuntimeError('EventID ctor must have 2 or 3 arguments')
__luminosityBlock
Definition: Types.py:204
def __init__(self, run, args)
Definition: Types.py:200
def _valueFromString(value)
Definition: Types.py:226

Member Function Documentation

def Types.EventID._isValid (   value)
staticprivate

Definition at line 223 of file Types.py.

Referenced by Mixins._SimpleParameterTypeBase.setValue().

223  def _isValid(value):
224  return True
def _isValid(value)
Definition: Types.py:223
def Types.EventID._valueFromString (   value)
staticprivate

Definition at line 226 of file Types.py.

References createfilelist.int.

Referenced by Types.LuminosityBlockRange.__init__(), and Types.EventRange.__init__().

226  def _valueFromString(value):
227  parts = value.split(":")
228  run = parts[0]
229  try:
230  lumi = parts[1]
231  event = parts[2]
232  except IndexError:
233  lumi = 0
234  event = parts[1]
235  return EventID(int(run), int(lumi), int(event))
def _valueFromString(value)
Definition: Types.py:226
def Types.EventID.cppID (   self,
  parameterSet 
)

Definition at line 238 of file Types.py.

References FWFFMetadataUpdateRequest.event(), TB06RecoH2.event, TB06Reco.event, MultiEventFilter::Event.event, ApeOverview.event, core.AutoHandle.AutoHandle.event, AlignmentMonitorSurvey.event(), L1Analysis::L1AnalysisEventDataFormat.event, AlignmentMonitorTemplate.event(), EventWithHistory.event(), MuonPair.event, AlignmentMonitorMuonResiduals.event(), AlignmentMonitorGeneric.event(), AlignmentMonitorTracksFromTrajectories.event(), edm::EventID.event(), AlignmentMonitorMuonSystemMap1D.event(), AlignmentMonitorMuonVsCurvature.event(), AlignmentMonitorSegmentDifferences.event(), LHAupLesHouches.event, EcalPerEvtMatacqAnalyzer.event, WZInterestingEventSelector::event.event, SiStripEventSummary.event(), EcalStatusAnalyzer.event, edm::EventForOutput.event(), lhef::LHEProxy.event, FWFileEntry.event(), edm::EventAuxiliary.event(), AlignmentMonitorBase.event(), MCatNLOSource.event, EcalMatacqAnalyzer.event, Vispa.Main.SplitterTab.SplitterTab.event(), L1TCaloLayer1RawToDigi.event, fwlite::ChainEvent.event(), LHEEventProduct::const_iterator.event, HitEff.event, looper.Looper.event, SiStripRecHitsValid::RecHitProperties.event, EcalTestPulseAnalyzer.event, EcalABAnalyzer.event, EcalDeadCellDeltaRFilter.event, EcalPerEvtLaserAnalyzer.event, Vispa.Main.MainWindow.MainWindow.event(), edm::service::SimpleMemoryCheck::SignificantEvent.event, EcalLaserAnalyzer.event, EcalLaserAnalyzer2.event, Types.EventID.event(), GsfElectronAlgo::EventData.event, FastTimerService::ResourcesPerJob.event, edm::IndexIntoFile::EventEntry.event(), TrackingNtuple::SimHitData.event, JsonOutputProducer::JsonEvent.event, SummaryOutputProducer::Event.event, edm::IndexIntoFile::IndexRunLumiEventKey.event(), edm::LuminosityBlockBase.luminosityBlock(), edm::EventID.luminosityBlock(), edm::LuminosityBlockAuxiliary.luminosityBlock(), edm::LuminosityBlockID.luminosityBlock(), edm::stream::LuminosityBlockContextT< L, R, G >.luminosityBlock(), edm::LuminosityBlockForOutput.luminosityBlock(), edm::EventForOutput.luminosityBlock(), edm::EventBase.luminosityBlock(), edm::EventAuxiliary.luminosityBlock(), edm::LuminosityBlockPrincipal.luminosityBlock(), edm::EventPrincipal.luminosityBlock(), Types.EventID.luminosityBlock(), edm::InputSource.luminosityBlock(), PopulateDB.PopulateDB.run(), uploader.FileObj.run, uploadPayloads.FileObj.run, splitter.FileObj.run, RPCRunIOV::RunIOV_Item.run, beamspot::BeamSpotContainer.run, TB06RecoH2.run, TB06Reco.run, DQMSummaryReader.run(), RPCDQMObject.run, runall.testit.run(), RPCDBCom.run(), MultiEventFilter::Event.run, ecaldqm::DBReaderWorker.run(), L1TriggerScalerRead.run(), RunSummaryRead.run(), ecaldqm::DBWriterWorker.run(), DTCalibrationWorker.DTCalibrationWorker.run(), TestBase.run(), ReadBase.run(), cond::Utilities.run(), RawToDigiConverter.run(), L1Analysis::L1AnalysisEventDataFormat.run, PFEGammaToCandidateRemapper.run(), edm::stream::RunContextT< R, G >.run(), TrackInfoProducerAlgorithm.run(), ecaldqm::CrystalConsistencyReader.run(), SurveyAlignmentAlgorithm.run(), RPCFw.run(), edm::EventID.run(), edm::RunID.run(), edm::RunBase.run(), edm::RunAuxiliary.run(), edm::LuminosityBlockID.run(), fireworks::geometry::DisplayPlugin.run(), edm::LuminosityBlockBase.run(), lumi::Lumi2DB::LumiSource.run, edm::LuminosityBlockAuxiliary.run(), ecaldqm::TTConsistencyReader.run(), MuonMillepedeAlgorithm.run(), generateEDF.LumiInfo.run, Type1PFMET.run(), ctpps::RawDataUnpacker.run(), ecaldqm::IntegrityWriter.run(), EfficiencyPlotter.run, edm::stream::LuminosityBlockContextT< L, R, G >.run(), WZInterestingEventSelector::event.run, edm::RunForOutput.run(), WorkFlowRunner.WorkFlowRunner.run(), edm::LuminosityBlockForOutput.run(), ecaldqm::MemChConsistencyReader.run(), MuonDTLocalMillepedeAlgorithm.run(), crabWrapper.CrabWrapper.run(), ecaldqm::LaserWriter.run(), HIPAlignmentAlgorithm.run(), EveDisplayPlugin.run(), Point.run, MuonRecoTest.run, options.ConnectionHLTMenu.run, psClasses.BuildThread.run(), PixelUnpackingRegions.run(), DTWorkflow.DTWorkflow.run(), ecaldqm::MemTTConsistencyReader.run(), edm::RunPrincipal.run(), TotemVFATRawToDigi.run(), DTResolutionAnalysisTest.run, BeamSpotRcdReader::theBSfromDB.run, ecaldqm::PedestalWriter.run(), edm::EventAuxiliary.run(), ecaldqm::LaserBlueReader.run(), CSCOverlapsAlignmentAlgorithm.run(), MatacqProducer::MatacqEventId.run, edm::LuminosityBlockPrincipal.run(), edm::EventForOutput.run(), Vispa.Share.ThreadChain.ThreadChain.run(), DTBlockedROChannelsTest.run, DTDataIntegrityTest.run, ecaldqm::TimingLaserBlueCrystalReader.run(), ecaldqm::PresampleWriter.run(), DTChamberEfficiencyTest.run, DTResolutionTest.run, ApeSettingAlgorithm.run(), ME::Header.run, ConstantStepOdeSolver.run(), ecaldqm::PNBlueReader.run(), DTEfficiencyTest.run, ecaldqm::TestPulseWriter.run(), MillePedeAlignmentAlgorithm.run(), MuonAlignmentFromReference.run(), ecaldqm::LaserGreenReader.run(), personalPlayback.Playback.run, ecaldqm::TimingWriter.run(), edm::service::MessageLoggerScribe.run(), ecaldqm::TimingLaserGreenCrystalReader.run(), edm::Event.run(), DQMNet::CoreObject.run, ecaldqm::LedWriter.run(), MatrixUtil.InputInfo.run, DTLocalTriggerBaseTest.run, ecaldqm::PNGreenReader.run(), edm::EventPrincipal.run(), HitEff.run, ecaldqm::OccupancyWriter.run(), ecaldqm::LaserIRedReader.run(), ecaldqm::TimingLaserIRedCrystalReader.run(), edm::EventProcessor.run(), ecaldqm::SummaryWriter.run(), EcalDeadCellDeltaRFilter.run, QIE8Simulator.run(), ecaldqm::PNIRedReader.run(), ecaldqm::LaserRedReader.run(), AlignmentAlgorithmBase.run(), ecaldqm::TimingLaserRedCrystalReader.run(), ecaldqm::PNRedReader.run(), cond::RunInfo_t.run, ecaldqm::PedestalsReader.run(), ecaldqm::PNPedReader.run(), DQMNet.run(), ecaldqm::PedestalsOnlineReader.run(), ecaldqm::TestPulseReader.run(), ecaldqm::PulseShapeReader.run(), ecaldqm::PNMGPAReader.run(), ecaldqm::TimingCrystalReader.run(), Types.EventID.run(), Vispa.Main.Application.Application.run(), ecaldqm::Led1Reader.run(), SiPixelErrorEstimation.run, edm::InputSource.run(), ecaldqm::TimingLed1CrystalReader.run(), ecaldqm::Led2Reader.run(), ecaldqm::TimingLed2CrystalReader.run(), ecaldqm::OccupancyReader.run(), DQMRootSource::RunPHIDKey.run(), personalPlayback.FrameworkJob.run, DQMRootSource::RunLumiPHIDKey.run(), edm::IndexIntoFile::RunOrLumiEntry.run(), MonitorElement.run(), edm::IndexIntoFile::RunOrLumiIndexes.run(), SiPixelTrackingRecHitsValid.run, o2olib.O2OTool.run(), dqm_interfaces.DirWalkerFile.run, edm::IndexIntoFile::IndexIntoFileItrImpl.run(), edm::IndexIntoFile::IndexIntoFileItrNoSort.run(), edm::IndexIntoFile::IndexIntoFileItrSorted.run(), JsonOutputProducer::JsonEvent.run, edm::IndexIntoFile::IndexIntoFileItr.run(), SummaryOutputProducer.run, edm::IndexIntoFile::IndexRunKey.run(), SummaryOutputProducer::Event.run, edm::IndexIntoFile::IndexRunLumiKey.run(), and edm::IndexIntoFile::IndexRunLumiEventKey.run().

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

238  def cppID(self, parameterSet):
239  return parameterSet.newEventID(self.run(), self.luminosityBlock(), self.event())
def event(self)
Definition: Types.py:220
def luminosityBlock(self)
Definition: Types.py:218
def run(self)
Definition: Types.py:216
def cppID(self, parameterSet)
Definition: Types.py:238
def Types.EventID.event (   self)

Definition at line 220 of file Types.py.

References Types.EventID.__event.

Referenced by Types.EventID.cppID().

220  def event(self):
221  return self.__event
def event(self)
Definition: Types.py:220
def Types.EventID.insertInto (   self,
  parameterSet,
  myname 
)

Definition at line 240 of file Types.py.

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

240  def insertInto(self, parameterSet, myname):
241  parameterSet.addEventID(self.isTracked(), myname, self.cppID(parameterSet))
242 
243 
def insertInto(self, parameterSet, myname)
Definition: Types.py:240
def cppID(self, parameterSet)
Definition: Types.py:238
def Types.EventID.luminosityBlock (   self)

Definition at line 218 of file Types.py.

References Types.EventID.__luminosityBlock.

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

218  def luminosityBlock(self):
219  return self.__luminosityBlock
def luminosityBlock(self)
Definition: Types.py:218
__luminosityBlock
Definition: Types.py:204
def Types.EventID.pythonValue (   self,
  options = PrintOptions() 
)

Definition at line 236 of file Types.py.

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

Referenced by Mixins._ParameterTypeBase.dumpPython().

236  def pythonValue(self, options=PrintOptions()):
237  return str(self.__run)+ ', '+str(self.__luminosityBlock)+ ', '+str(self.__event)
def pythonValue(self, options=PrintOptions())
Definition: Types.py:236
__luminosityBlock
Definition: Types.py:204
#define str(s)
def Types.EventID.run (   self)

Definition at line 216 of file Types.py.

References Types.EventID.__run.

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

216  def run(self):
217  return self.__run
def run(self)
Definition: Types.py:216

Member Data Documentation

Types.EventID.__event
private

Definition at line 205 of file Types.py.

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

Types.EventID.__luminosityBlock
private

Definition at line 204 of file Types.py.

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

Types.EventID.__run
private