CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ __contains__()

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 

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().