CMS 3D CMS Logo

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

Public Member Functions

def __init__ (self, start, startSub=None, end=None, endSub=None)
 
def cppID (self, parameterSet)
 
def end (self)
 
def endSub (self)
 
def insertInto (self, parameterSet, myname)
 
def pythonValue (self, options=PrintOptions())
 
def start (self)
 
def startSub (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

 __end
 
 __endSub
 
 __start
 
 __startSub
 

Detailed Description

Definition at line 273 of file Types.py.

Constructor & Destructor Documentation

def Types.LuminosityBlockRange.__init__ (   self,
  start,
  startSub = None,
  end = None,
  endSub = None 
)

Definition at line 274 of file Types.py.

References Types.int32._valueFromString(), Types.uint32._valueFromString(), Types.int64._valueFromString(), Types.uint64._valueFromString(), Types.double._valueFromString(), Types.bool._valueFromString(), Mixins.UsingBlock._valueFromString(), Types.string._valueFromString(), Types.EventID._valueFromString(), Types.LuminosityBlockID._valueFromString(), and Types.LuminosityBlockRange._valueFromString().

274  def __init__(self, start, startSub=None, end=None, endSub=None):
275  super(LuminosityBlockRange,self).__init__()
276  if isinstance(start, str):
277  parsed = self._valueFromString(start)
278  self.__start = parsed.__start
279  self.__startSub = parsed.__startSub
280  self.__end = parsed.__end
281  self.__endSub = parsed.__endSub
282  else:
283  self.__start = start
284  self.__startSub = startSub
285  self.__end = end
286  self.__endSub = endSub
287  if self.__end < self.__start:
288  raise RuntimeError('LuminosityBlockRange '+str(self.__start)+':'+str(self.__startSub)+'-'+str(self.__end)+':'+str(self.__endSub)+' out of order')
289  # 0 luminosity block number is a special case that means no limit
290  if self.__end == self.__start and (self.__endSub != 0 and self.__endSub < self.__startSub):
291  raise RuntimeError('LuminosityBlockRange '+str(self.__start)+':'+str(self.__startSub)+'-'+str(self.__end)+':'+str(self.__endSub)+' out of order')
def __init__(self, start, startSub=None, end=None, endSub=None)
Definition: Types.py:274
def _valueFromString(value)
Definition: Types.py:304
#define str(s)

Member Function Documentation

def Types.LuminosityBlockRange._isValid (   value)
staticprivate

Definition at line 301 of file Types.py.

Referenced by Mixins._SimpleParameterTypeBase.setValue().

301  def _isValid(value):
302  return True
def Types.LuminosityBlockRange._valueFromString (   value)
staticprivate
only used for cfg-parsing

Definition at line 304 of file Types.py.

References createfilelist.int, and split.

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

304  def _valueFromString(value):
305  """only used for cfg-parsing"""
306  value = value.replace(' ','')
307  parts = value.split("-")
308  startParts = parts[0].split(":")
309  try:
310  endParts = parts[1].split(":")
311  except IndexError:
312  endParts = parts[0].split(":") # If just "1:2" turn into "1:2-1:2"
313 
314  if startParts[1].lower() == "0":
315  startParts[1] = "1"
316  elif startParts[1].lower() == "max":
317  startParts[1] = "0"
318  elif startParts[1].lower() == "min":
319  startParts[1] = "1"
320  if endParts[1].lower() == "max":
321  endParts[1] = "0"
322  elif endParts[1].lower() == "min":
323  endParts[1] = "1"
324  return LuminosityBlockRange(int(startParts[0]), int(startParts[1]),
325  int(endParts[0]), int(endParts[1]))
def _valueFromString(value)
Definition: Types.py:304
double split
Definition: MVATrainer.cc:139
def Types.LuminosityBlockRange.cppID (   self,
  parameterSet 
)

Definition at line 329 of file Types.py.

References SeedConfigSelector.end(), RecoTrackViewRefSelector.end(), CSCOverlapConfigSelector.end(), RecoTrackRefSelector.end(), CSCBeamHaloConfigSelector.end(), RecoTrackSelector.end(), FileBlobCollection.end(), CSCTrackConfigSelector.end(), pf2pat::PFJetSelectorDefinition.end(), pf2pat::PFCandidateSelectorDefinition.end(), SiStripCalTrackConfigSelector.end(), reco::HGCalMultiCluster.end(), StringMap.end(), OrderedSet.OrderedSet.end, edm::ProcessHistoryRegistry.end(), PacketData.end(), MuonConfigSelector.end(), SingleEleCalibSelector.end(), TkLasBeam.end(), FileData.end(), DynArray< T >.end(), SingleElementCollectionSelectorPlusEvent< InputCollection, Selector, OutputCollection, StoreContainer, RefAdder >.end(), TrackConfigSelector.end(), cmsPerfSuite.PerfSuiteTimer.end, Mille.end(), edm::EDCollection< T >.end(), ObjectPairCollectionSelector< InputCollection, Selector, StoreContainer, RefAdder >.end(), edm::ThinnedAssociationsHelper.end(), AssociatedVariableCollectionSelector< InputCollection, VarCollection, Selector, OutputCollection, StoreContainer, RefAdder >.end(), pat::EventHypothesis.end(), FWParameterizable.end(), SingleElementCollectionSelector< InputCollection, Selector, OutputCollection, StoreContainer, RefAdder >.end(), l1t::Interval< TimeType, PayloadType >.end(), SingleElementCollectionRefSelector< InputType, Selector, OutputCollection, StoreContainer, RefAdder >.end(), reco::PFRecHit::Neighbours.end(), HcalChannelIterator.end(), SortCollectionSelector< InputCollection, Comparator, OutputCollection, StoreContainer, RefAdder >.end(), poly< T >.end(), Selection< C, Selector, StoreContainer >.end(), DDI::Store< N, I, K >.end(), DTRecoUncertainties.end(), ESCondObjectContainer< T >.end(), SiPixelDetectorStatus.end(), Book.end(), edm::ProcessHistory.end(), edm::DataFrame.end(), DDBase< N, C >::iterator< D >.end(), CombinedSVComputer::IterationRange.end, edm::UnscheduledCallProducer.end(), edm::ConfigurationDescriptions.end(), SiStripHashedDetId.end(), FWEventItemsManager.end(), edm::DetSet< T >.end(), edm::RefToBaseVector< T >.end(), MP7PacketReader.end(), edm::EarlyDeleteHelper.end(), edm::reftobase::VectorHolder< T, REFV >.end(), poly< T >::const_iterator.end, SiStripBaseCondObjDQM.end(), edm::pset::Registry.end(), edm::IDVectorMap< ID, C, P >.end(), QIE11DataFrame.end(), DDBase< N, C >.end(), BXVector< T >.end(), DTRecoConditions.end(), hcaldqm::ContainerXXX< STDTYPE >.end(), edmNew::DetSet< T >.end(), MP7FileReader.end(), CmsShowNavigator::FileQueue_t.end(), L1MuDTEtaPatternLut.end(), cond::SmallWORMDict.end(), LutXml.end(), CosmicTrackingParticleSelector.end(), L1MuDTQualPatternLut.end(), edm::IDVectorMap< ID, C, P >::range.end, cond::persistency::RunInfoProxy.end(), HcalUHTRData.end(), EcalCondTowerObjectContainer< T >.end(), edm::reftobase::RefVectorHolder< REFV >.end(), EcalContainer< DetId, T >.end(), QIE10DataFrame.end(), EcalCondObjectContainer< T >.end(), cond::persistency::GTProxy.end(), edm::reftobase::IndirectVectorHolder< T >.end(), edm::FileIndex.end(), HLTPerformanceInfo::Path.end(), edm::AssociationVector< KeyRefProd, CVal, KeyRef, SizeType, KeyReferenceHelper >.end(), edm::OwnArray< T, MAX_SIZE, P >.end(), sistrip::SpyEventMatcher::CountersWrapper.end(), edm::TrieNode< T >.end(), edm::OwnVector< T, P >.end(), cond::persistency::IOVProxy.end(), edm::View< T >.end(), SiStripFedCabling::ConnsRange.end(), DTCCBConfig.end(), edm::RefVector< C, T, F >.end(), PhysicsTools::BitSet::Iterator.end, ecaldqm::MESetMulti.end(), DDXMLElement.end(), validateAlignments.ValidationJob.end, reco::FlavorHistoryEvent.end(), DTTPGParameters.end(), edm::RangeMap< ID, C, P >.end(), edm::PtrVector< T >.end(), edm::MapOfVectors< K, T >.end(), edm::SortedCollection< T, SORT >.end(), edm::AssociativeIterator< KeyRefType, AssociativeCollection, ItemGetter >.end(), DTT0.end(), DTRangeT0.end(), PHGCSimAccumulator.end(), reco::Candidate.end(), DTLVStatus.end(), DTReadOutMapping.end(), edm::reftobase::BaseVectorHolder< T >.end(), MuonDigiCollection< IndexType, DigiType >.end(), edm::reftobase::RefVectorHolderBase.end(), PMTDSimAccumulator.end(), edm::AssociationMap< Tag >.end(), edm::Principal.end(), edm::DataFrameContainer.end(), reco::IsoDeposit.end(), cond::RunInfo_t.end, edm::DetSetVector< T >.end(), edm::ValueMap< T >::const_iterator.end(), DTHVStatus.end(), DTTtrig.end(), edm::DetSetRefVector< T, C >.end(), math::Graph< N, E >.end(), DTPerformance.end(), edm::ProductResolverIndexHelper::Range.end(), edm::ValueMap< T >.end(), reco::TaggingVariableList.end(), DTDeadFlag.end(), DTStatusFlag.end(), DTMtime.end(), edm::IndexIntoFile.end(), validateAlignments.ValidationJobMultiIOV.end, edmNew::DetSetVector< T >::FastFiller.end(), Types.LuminosityBlockRange.end(), edm::ParameterSetDescription.end(), ecaldqm::MESet.end(), o2olib.O2ORunMgr.end, esMonitoring.FDOutputListener.end, Json::Value.end(), LHCInfoImpl::LumiSectionFilter.end, edmNew::DetSetVector< T >::TSFastFiller.end(), cond::persistency::Query< Types >.end(), edmNew::DetSetVector< T >.end(), reco::PatternSet< N >.end(), svgfig.LineAxis.end, Types.LuminosityBlockRange.endSub(), MyWatcher.start(), RawEventFileWriterForBU.start(), reco::formula::ArrayAdaptor.start(), cmsPerfSuite.PerfSuiteTimer.start, l1t::Interval< TimeType, PayloadType >.start(), evf::RecoEventWriterForFU.start(), Vispa.Main.RotatingIcon.RotatingIcon.start(), evf::RecoEventOutputModuleForFU< Consumer >.start(), cond::persistency::Transaction.start(), StripCompactDigiSimLinks::TrackRecord.start, Vispa.Share.ThreadChain.ThreadChain.start(), Mapper::definition< ScannerT >.start(), evf::EvFBuildingThrottle.start(), SiStripMonitorCluster::ClusterProperties.start, validateAlignments.ValidationJob.start, evf::FastMonitoringThread.start(), cond::RunInfo_t.start, DQMNet.start(), cond::CSScopedSession.start(), SpecParParser::definition< ScannerT >.start(), cond::persistency::TransactionScope.start(), PhysicsTools::VarProcessor::ValueIterator.start, validateAlignments.ValidationJobMultiIOV.start, Types.LuminosityBlockRange.start(), o2olib.O2ORunMgr.start, esMonitoring.FDOutputListener.start, svgfig.LineAxis.start, and Types.LuminosityBlockRange.startSub().

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

329  def cppID(self, parameterSet):
330  return parameterSet.newLuminosityBlockRange(self.start(), self.startSub(),self.end(), self.endSub())
def cppID(self, parameterSet)
Definition: Types.py:329
def Types.LuminosityBlockRange.end (   self)

Definition at line 296 of file Types.py.

References Types.LuminosityBlockRange.__end.

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

296  def end(self):
297  return self.__end
def Types.LuminosityBlockRange.endSub (   self)

Definition at line 298 of file Types.py.

References Types.LuminosityBlockRange.__endSub.

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

298  def endSub(self):
299  return self.__endSub
def Types.LuminosityBlockRange.insertInto (   self,
  parameterSet,
  myname 
)
def Types.LuminosityBlockRange.pythonValue (   self,
  options = PrintOptions() 
)

Definition at line 326 of file Types.py.

References Types.LuminosityBlockRange.__end, Types.LuminosityBlockRange.__endSub, Types.LuminosityBlockRange.__start, Types.LuminosityBlockRange.__startSub, and str.

Referenced by Mixins._ParameterTypeBase.dumpPython().

326  def pythonValue(self, options=PrintOptions()):
327  return str(self.__start) + ', ' + str(self.__startSub) + ', ' \
328  + str(self.__end) + ', ' + str(self.__endSub)
def pythonValue(self, options=PrintOptions())
Definition: Types.py:326
#define str(s)
def Types.LuminosityBlockRange.start (   self)
def Types.LuminosityBlockRange.startSub (   self)

Definition at line 294 of file Types.py.

References Types.LuminosityBlockRange.__startSub.

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

294  def startSub(self):
295  return self.__startSub

Member Data Documentation

Types.LuminosityBlockRange.__end
private
Types.LuminosityBlockRange.__endSub
private
Types.LuminosityBlockRange.__start
private
Types.LuminosityBlockRange.__startSub
private