Public Member Functions | Private Attributes | List of all members
PandAna.core.core.Var Class Reference

Public Member Functions

def __init__ (self, var)
 
def __call__ (self, tables)
 
def __eq__ (self, val)
 
def __ne__ (self, val)
 
def __lt__ (self, val)
 
def __le__ (self, val)
 
def __gt__ (self, val)
 
def __ge__ (self, val)
 
def __add__ (self, other)
 
def __sub__ (self, other)
 
def __mult__ (self, other)
 
def __truediv__ (self, other)
 

Private Attributes

 _var
 

Detailed Description

Definition at line 219 of file core.py.

Constructor & Destructor Documentation

def PandAna.core.core.Var.__init__ (   self,
  var 
)

Definition at line 220 of file core.py.

220  def __init__(self, var):
221  self._var = var
222 
def __init__(self, var)
Definition: core.py:220

Member Function Documentation

def PandAna.core.core.Var.__add__ (   self,
  other 
)

Definition at line 244 of file core.py.

References fhicl.other.

244  def __add__(self, other):
245  return Var(lambda tables: self(tables) + other(tables))
246 
def __add__(self, other)
Definition: core.py:244
def PandAna.core.core.Var.__call__ (   self,
  tables 
)

Definition at line 223 of file core.py.

References PandAna.core.core.Var._var.

223  def __call__(self, tables):
224  return self._var(tables)
225 
def __call__(self, tables)
Definition: core.py:223
def PandAna.core.core.Var.__eq__ (   self,
  val 
)

Definition at line 226 of file core.py.

226  def __eq__(self, val):
227  return Cut(lambda tables: self(tables) == val)
228 
def __eq__(self, val)
Definition: core.py:226
def PandAna.core.core.Var.__ge__ (   self,
  val 
)

Definition at line 241 of file core.py.

241  def __ge__(self, val):
242  return Cut(lambda tables: self(tables) >= val)
243 
def __ge__(self, val)
Definition: core.py:241
def PandAna.core.core.Var.__gt__ (   self,
  val 
)

Definition at line 238 of file core.py.

238  def __gt__(self, val):
239  return Cut(lambda tables: self(tables) > val)
240 
def __gt__(self, val)
Definition: core.py:238
def PandAna.core.core.Var.__le__ (   self,
  val 
)

Definition at line 235 of file core.py.

235  def __le__(self, val):
236  return Cut(lambda tables: self(tables) <= val)
237 
def __le__(self, val)
Definition: core.py:235
def PandAna.core.core.Var.__lt__ (   self,
  val 
)

Definition at line 232 of file core.py.

232  def __lt__(self, val):
233  return Cut(lambda tables: self(tables) < val)
234 
def __lt__(self, val)
Definition: core.py:232
def PandAna.core.core.Var.__mult__ (   self,
  other 
)

Definition at line 250 of file core.py.

References fhicl.other.

250  def __mult__(self, other):
251  return Var(lambda tables: self(tables)*other(tables))
252 
def __mult__(self, other)
Definition: core.py:250
def PandAna.core.core.Var.__ne__ (   self,
  val 
)

Definition at line 229 of file core.py.

229  def __ne__(self, val):
230  return Cut(lambda tables: self(tables) != val)
231 
def __ne__(self, val)
Definition: core.py:229
def PandAna.core.core.Var.__sub__ (   self,
  other 
)

Definition at line 247 of file core.py.

References fhicl.other.

247  def __sub__(self, other):
248  return Var(lambda tables: self(tables) - other(tables))
249 
def __sub__(self, other)
Definition: core.py:247
def PandAna.core.core.Var.__truediv__ (   self,
  other 
)

Definition at line 253 of file core.py.

References fhicl.other.

253  def __truediv__(self, other):
254  return Var(lambda tables: self(tables)/other(tables))
255 
def __truediv__(self, other)
Definition: core.py:253

Member Data Documentation

PandAna.core.core.Var._var
private

Definition at line 221 of file core.py.

Referenced by PandAna.core.core.Var.__call__().


The documentation for this class was generated from the following file: