GeneralBrokenLines V03-01-02
gblpy3
Public Member Functions | Private Attributes | List of all members
gblpy3.gblfit.GblMeasurement Class Reference

User supplied measurement at point on (initial) trajectory. More...

Inheritance diagram for gblpy3.gblfit.GblMeasurement:

Public Member Functions

def __init__ (self, aMeasurement, minPrecision=0.)
 Create new measurement. More...
 
def hasMeasurement (self)
 Check point for a measurement. More...
 
def getMeasurement (self)
 Retrieve measurement of a point. More...
 
def getMeasDim (self)
 Retrieve dimension of measurement of a point. More...
 
def getMeasMinPrec (self)
 Retrieve minimal precision to accept measurement. More...
 
def addLocals (self, derivatives)
 Add local derivatives. More...
 
def addGlobals (self, labels, derivatives)
 Add global derivatives. More...
 
def getNumLocals (self)
 Get number of local derivatives. More...
 
def getLocalDerivatives (self)
 Get local derivatives. More...
 
def getGlobalLabels (self)
 Get global labels. More...
 
def getGlobalDerivatives (self)
 Get global derivatives. More...
 
def printMeasurement (self)
 Print Measurement. More...
 

Private Attributes

 __measurement
 measurement at point: projection (dm/du), residuals (to initial trajectory), precision; list(matrix(float)) More...
 
 __measDim
 dimension of measurement (2D, 4D or 5D); int More...
 
 __measMinPrec
 minimal precision to accept measurement < More...
 
 __measTransformation
 transformation (to eigen-vectors of precision matrix); matrix(float) More...
 
 __localDerivatives
 local derivatives; matrix(float) More...
 
 __globalLabels
 global labels; matrix(int) More...
 
 __globalDerivatives
 global derivatives; matrix(float) More...
 

Detailed Description

User supplied measurement at point on (initial) trajectory.

Must have measurement. May have:

  1. Additional local parameters (with derivatives). Fitted together with track parameters.
  2. Additional global parameters (with labels and derivatives). Not fitted, only passed on to (binary) file for fitting with Millepede-II.

Definition at line 44 of file gblfit.py.

Constructor & Destructor Documentation

◆ __init__()

def gblpy3.gblfit.GblMeasurement.__init__ (   self,
  aMeasurement,
  minPrecision = 0. 
)

Create new measurement.

Create measurement with arbitrary precision (inverse covariance) matrix. Will be diagonalized.

Parameters
aMeasurementmeasurement (projection (or None), residuals, precision (diagonal of or full matrix)); list(matrix(float))
minPrecisionMinimal precision to accept measurement

Definition at line 55 of file gblfit.py.

Member Function Documentation

◆ addGlobals()

def gblpy3.gblfit.GblMeasurement.addGlobals (   self,
  labels,
  derivatives 
)

◆ addLocals()

def gblpy3.gblfit.GblMeasurement.addLocals (   self,
  derivatives 
)

Add local derivatives.

Parameters
derivativeslocal derivatives; matrix(float)

Definition at line 117 of file gblfit.py.

References gblpy3.gblfit.GblMeasurement.__localDerivatives, gblpy3.gblfit.GblMeasurement.__measDim, and gblpy3.gblfit.GblMeasurement.__measTransformation.

◆ getGlobalDerivatives()

def gblpy3.gblfit.GblMeasurement.getGlobalDerivatives (   self)

Get global derivatives.

Returns
global derivatives; matrix(float)

Definition at line 164 of file gblfit.py.

References gblpy3.gblfit.GblMeasurement.__globalDerivatives, and gblpy3.gblfit.GblData.__globalDerivatives.

◆ getGlobalLabels()

def gblpy3.gblfit.GblMeasurement.getGlobalLabels (   self)

Get global labels.

Returns
global labels; matrix(int)

Definition at line 157 of file gblfit.py.

References gblpy3.gblfit.GblMeasurement.__globalLabels, and gblpy3.gblfit.GblData.__globalLabels.

◆ getLocalDerivatives()

def gblpy3.gblfit.GblMeasurement.getLocalDerivatives (   self)

Get local derivatives.

Returns
local derivatives; matrix(float)

Definition at line 151 of file gblfit.py.

References gblpy3.gblfit.GblMeasurement.__localDerivatives.

◆ getMeasDim()

def gblpy3.gblfit.GblMeasurement.getMeasDim (   self)

Retrieve dimension of measurement of a point.

Returns
measurement dimension (2, 4 or 5); int

Definition at line 103 of file gblfit.py.

References gblpy3.gblfit.GblMeasurement.__measDim.

◆ getMeasMinPrec()

def gblpy3.gblfit.GblMeasurement.getMeasMinPrec (   self)

Retrieve minimal precision to accept measurement.

Returns
minimal precision to accept measurement; float

Definition at line 110 of file gblfit.py.

References gblpy3.gblfit.GblMeasurement.__measMinPrec.

◆ getMeasurement()

def gblpy3.gblfit.GblMeasurement.getMeasurement (   self)

Retrieve measurement of a point.

Returns
measurement (projection residuals, precision); list(matrix(float))

Definition at line 96 of file gblfit.py.

References gblpy3.gblfit.GblMeasurement.__measurement.

◆ getNumLocals()

def gblpy3.gblfit.GblMeasurement.getNumLocals (   self)

Get number of local derivatives.

Returns
Number of local derivatives at point; int

Definition at line 141 of file gblfit.py.

References gblpy3.gblfit.GblMeasurement.__localDerivatives.

◆ hasMeasurement()

def gblpy3.gblfit.GblMeasurement.hasMeasurement (   self)

Check point for a measurement.

Returns
flag; bool

Definition at line 88 of file gblfit.py.

References gblpy3.gblfit.GblMeasurement.__measurement.

◆ printMeasurement()

def gblpy3.gblfit.GblMeasurement.printMeasurement (   self)

Member Data Documentation

◆ __globalDerivatives

gblpy3.gblfit.GblMeasurement.__globalDerivatives
private

◆ __globalLabels

gblpy3.gblfit.GblMeasurement.__globalLabels
private

◆ __localDerivatives

gblpy3.gblfit.GblMeasurement.__localDerivatives
private

◆ __measDim

gblpy3.gblfit.GblMeasurement.__measDim
private

◆ __measMinPrec

gblpy3.gblfit.GblMeasurement.__measMinPrec
private

minimal precision to accept measurement <

Definition at line 61 of file gblfit.py.

Referenced by gblpy3.gblfit.GblMeasurement.getMeasMinPrec().

◆ __measTransformation

gblpy3.gblfit.GblMeasurement.__measTransformation
private

transformation (to eigen-vectors of precision matrix); matrix(float)

Definition at line 63 of file gblfit.py.

Referenced by gblpy3.gblfit.GblMeasurement.addGlobals(), and gblpy3.gblfit.GblMeasurement.addLocals().

◆ __measurement

gblpy3.gblfit.GblMeasurement.__measurement
private

measurement at point: projection (dm/du), residuals (to initial trajectory), precision; list(matrix(float))

Definition at line 57 of file gblfit.py.

Referenced by gblpy3.gblfit.GblMeasurement.getMeasurement(), and gblpy3.gblfit.GblMeasurement.hasMeasurement().


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