CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
dataset.RunRange Class Reference
Inheritance diagram for dataset.RunRange:

Public Member Functions

def __contains__ (self, run)
 
def __init__ (self, firstrun, lastrun, runs)
 

Public Attributes

 firstrun
 
 lastrun
 
 runs
 

Detailed Description

Definition at line 17 of file dataset.py.

Constructor & Destructor Documentation

◆ __init__()

def dataset.RunRange.__init__ (   self,
  firstrun,
  lastrun,
  runs 
)

Definition at line 18 of file dataset.py.

18  def __init__(self, firstrun, lastrun, runs):
19  self.firstrun = firstrun
20  self.lastrun = lastrun
21  self.runs = runs
22 

Member Function Documentation

◆ __contains__()

def dataset.RunRange.__contains__ (   self,
  run 
)

Definition at line 23 of file dataset.py.

23  def __contains__(self, run):
24  if self.runs and run not in self.runs: return False
25  return self.firstrun <= run <= self.lastrun
26 

References dataset.RunRange.firstrun, dataset.RunRange.lastrun, and dataset.RunRange.runs.

Member Data Documentation

◆ firstrun

dataset.RunRange.firstrun

Definition at line 19 of file dataset.py.

Referenced by dataset.RunRange.__contains__().

◆ lastrun

dataset.RunRange.lastrun

Definition at line 20 of file dataset.py.

Referenced by dataset.RunRange.__contains__().

◆ runs

dataset.RunRange.runs

Definition at line 21 of file dataset.py.

Referenced by dataset.RunRange.__contains__(), and dataset.DataFile.getdict().