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

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 
def __init__(self, firstrun, lastrun, runs)
Definition: dataset.py:18

Member Function Documentation

def dataset.RunRange.__contains__ (   self,
  run 
)

Definition at line 23 of file dataset.py.

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

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 
def __contains__(self, run)
Definition: dataset.py:23

Member Data Documentation

dataset.RunRange.firstrun

Definition at line 19 of file dataset.py.

Referenced by dataset.RunRange.__contains__().

dataset.RunRange.lastrun

Definition at line 20 of file dataset.py.

Referenced by dataset.RunRange.__contains__().

dataset.RunRange.runs

Definition at line 21 of file dataset.py.

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