CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
models.Radius Class Reference
Inheritance diagram for models.Radius:
models.ContinuousRange

Public Member Functions

def __init__ (self, centre, radius)
 
- Public Member Functions inherited from models.ContinuousRange
def __init__ (self)
 
def get_end (self)
 
def get_start (self)
 

Private Attributes

 _centre
 
 _end
 
 _radius
 
 _start
 

Detailed Description

Used to tell proxy methods that a range of values defined by a centre and a radius should be queried for - special case of filter clauses.

Definition at line 100 of file models.py.

Constructor & Destructor Documentation

◆ __init__()

def models.Radius.__init__ (   self,
  centre,
  radius 
)
centre and radius should be objects that can be added and subtracted.
eg, centre could be a datetime.datetime object, and radius could be datetime.timedelta

Radius and Range objects are assigned to properties of querying.connection objects, hence are given the database type.

Definition at line 104 of file models.py.

104  def __init__(self, centre, radius):
105  """
106  centre and radius should be objects that can be added and subtracted.
107  eg, centre could be a datetime.datetime object, and radius could be datetime.timedelta
108 
109  Radius and Range objects are assigned to properties of querying.connection objects, hence are given the database type.
110  """
111  self._centre = centre
112  self._radius = radius
113  self._start = self._centre - self._radius
114  self._end = self._centre + self._radius
115 
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 Data Documentation

◆ _centre

models.Radius._centre
private

Definition at line 111 of file models.py.

◆ _end

models.Radius._end
private

Definition at line 114 of file models.py.

Referenced by models.ContinuousRange.get_end().

◆ _radius

models.Radius._radius
private

Definition at line 112 of file models.py.

◆ _start

models.Radius._start
private

Definition at line 113 of file models.py.