CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
dataset.RunRange Class Reference
Inheritance diagram for dataset.RunRange:

Public Member Functions

def __contains__
 
def __init__
 

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 
19  def __init__(self, firstrun, lastrun, runs):
20  self.firstrun = firstrun
21  self.lastrun = lastrun
22  self.runs = runs

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 
24  def __contains__(self, run):
25  if self.runs and run not in self.runs: return False
26  return self.firstrun <= run <= self.lastrun
def __contains__
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().