Project
Loading...
Searching...
No Matches
o2::fwdalign::MillePedeRecord Class Reference

Store residuals and local/global deriavtives from a single track processing. More...

#include <MillePedeRecord.h>

Inherits TObject.

Public Member Functions

 MillePedeRecord ()
 default c-tor
 
 MillePedeRecord (const MillePedeRecord &src)
 copy c-tor
 
MillePedeRecordoperator= (const MillePedeRecord &rhs)
 assignment op-r
 
 ~MillePedeRecord () override
 destuctor
 
void Reset ()
 reset all
 
void Print (const Option_t *opt="") const override
 print itself
 
Int_t GetSize () const
 
Int_t * GetIndex () const
 
Int_t GetIndex (int i) const
 
void GetIndexValue (Int_t i, Int_t &ind, Double_t &val) const
 
void AddIndexValue (Int_t ind, Double_t val)
 add new pair of index/value
 
void AddResidual (Double_t val)
 
void AddWeight (Double_t val)
 
void SetWeight (Double_t w=1)
 
Bool_t IsResidual (Int_t i) const
 
Bool_t IsWeight (Int_t i) const
 
Double_t * GetValue () const
 
Double_t GetValue (Int_t i) const
 
Double_t GetWeight () const
 
void MarkGroup (Int_t id)
 mark the presence of the detector group
 
Int_t GetNGroups () const
 
Int_t GetGroupID (Int_t i) const
 
Bool_t IsGroupPresent (Int_t id) const
 check if group is defined
 
UInt_t GetRunID () const
 
void SetRunID (UInt_t run)
 
Double_t GetGlobalDeriv (Int_t pnt, Int_t indx) const
 get derivative over global variable indx at point pnt
 
Double_t GetLocalDeriv (Int_t pnt, Int_t indx) const
 get derivative over local variable indx at point pnt
 
Double_t GetResidual (Int_t pnt) const
 get residual at point pnt
 
Double_t GetGloResWProd (Int_t indx) const
 get sum of derivative over global variable indx * res. at point * weight
 
Double_t GetWeight (Int_t indx) const
 get weight of point pnt
 

Protected Member Functions

Int_t GetDtBufferSize () const
 
Int_t GetGrBufferSize () const
 
void SetDtBufferSize (Int_t sz)
 
void SetGrBufferSize (Int_t sz)
 
void ExpandDtBuffer (Int_t bfsize)
 add extra space for derivatives data
 
void ExpandGrBuffer (Int_t bfsize)
 add extra space for groupID data
 
 ClassDefOverride (MillePedeRecord, 3)
 

Protected Attributes

Int_t fSize
 size of the record
 
Int_t fNGroups
 number of groups (e.g. detectors) contributing
 
UInt_t fRunID
 run ID
 
UShort_t * fGroupID
 [fNGroups] groups id's+1 (in increasing order)
 
Int_t * fIndex
 [fSize] index of variables
 
Double32_t * fValue
 [fSize] array of values: derivs,residuals
 
Double32_t fWeight
 global weight for the record
 

Detailed Description

Store residuals and local/global deriavtives from a single track processing.

Format: for each measured point the data is stored consecutively

INDEX VALUE -1 residual Local_param_id dResidual/dLocal_param ... ... -2 weight of the measurement Global_param_od dResidual/dGlobal_param ... ...

Definition at line 39 of file MillePedeRecord.h.

Constructor & Destructor Documentation

◆ MillePedeRecord() [1/2]

MillePedeRecord::MillePedeRecord ( )

default c-tor

Definition at line 23 of file MillePedeRecord.cxx.

◆ MillePedeRecord() [2/2]

MillePedeRecord::MillePedeRecord ( const MillePedeRecord src)

copy c-tor

Definition at line 36 of file MillePedeRecord.cxx.

◆ ~MillePedeRecord()

MillePedeRecord::~MillePedeRecord ( )
override

destuctor

Definition at line 75 of file MillePedeRecord.cxx.

Member Function Documentation

◆ AddIndexValue()

void o2::fwdalign::MillePedeRecord::AddIndexValue ( Int_t  ind,
Double_t  val 
)
inline

add new pair of index/value

Definition at line 134 of file MillePedeRecord.h.

◆ AddResidual()

void o2::fwdalign::MillePedeRecord::AddResidual ( Double_t  val)
inline

Definition at line 73 of file MillePedeRecord.h.

◆ AddWeight()

void o2::fwdalign::MillePedeRecord::AddWeight ( Double_t  val)
inline

Definition at line 74 of file MillePedeRecord.h.

◆ ClassDefOverride()

o2::fwdalign::MillePedeRecord::ClassDefOverride ( MillePedeRecord  ,
 
)
protected

◆ ExpandDtBuffer()

void MillePedeRecord::ExpandDtBuffer ( Int_t  bfsize)
protected

add extra space for derivatives data

Definition at line 293 of file MillePedeRecord.cxx.

◆ ExpandGrBuffer()

void MillePedeRecord::ExpandGrBuffer ( Int_t  bfsize)
protected

add extra space for groupID data

Definition at line 310 of file MillePedeRecord.cxx.

◆ GetDtBufferSize()

Int_t o2::fwdalign::MillePedeRecord::GetDtBufferSize ( ) const
inlineprotected

Definition at line 110 of file MillePedeRecord.h.

◆ GetGlobalDeriv()

Double_t MillePedeRecord::GetGlobalDeriv ( Int_t  pnt,
Int_t  indx 
) const

get derivative over global variable indx at point pnt

Definition at line 175 of file MillePedeRecord.cxx.

◆ GetGloResWProd()

Double_t MillePedeRecord::GetGloResWProd ( Int_t  indx) const

get sum of derivative over global variable indx * res. at point * weight

Definition at line 143 of file MillePedeRecord.cxx.

◆ GetGrBufferSize()

Int_t o2::fwdalign::MillePedeRecord::GetGrBufferSize ( ) const
inlineprotected

Definition at line 111 of file MillePedeRecord.h.

◆ GetGroupID()

Int_t o2::fwdalign::MillePedeRecord::GetGroupID ( Int_t  i) const
inline

Definition at line 86 of file MillePedeRecord.h.

◆ GetIndex() [1/2]

Int_t * o2::fwdalign::MillePedeRecord::GetIndex ( ) const
inline

Definition at line 61 of file MillePedeRecord.h.

◆ GetIndex() [2/2]

Int_t o2::fwdalign::MillePedeRecord::GetIndex ( int  i) const
inline

Definition at line 62 of file MillePedeRecord.h.

◆ GetIndexValue()

void o2::fwdalign::MillePedeRecord::GetIndexValue ( Int_t  i,
Int_t &  ind,
Double_t &  val 
) const
inline

Definition at line 64 of file MillePedeRecord.h.

◆ GetLocalDeriv()

Double_t MillePedeRecord::GetLocalDeriv ( Int_t  pnt,
Int_t  indx 
) const

get derivative over local variable indx at point pnt

Definition at line 209 of file MillePedeRecord.cxx.

◆ GetNGroups()

Int_t o2::fwdalign::MillePedeRecord::GetNGroups ( ) const
inline

Definition at line 85 of file MillePedeRecord.h.

◆ GetResidual()

Double_t MillePedeRecord::GetResidual ( Int_t  pnt) const

get residual at point pnt

Definition at line 243 of file MillePedeRecord.cxx.

◆ GetRunID()

UInt_t o2::fwdalign::MillePedeRecord::GetRunID ( ) const
inline

Definition at line 91 of file MillePedeRecord.h.

◆ GetSize()

Int_t o2::fwdalign::MillePedeRecord::GetSize ( ) const
inline

Definition at line 60 of file MillePedeRecord.h.

◆ GetValue() [1/2]

Double_t * o2::fwdalign::MillePedeRecord::GetValue ( ) const
inline

Definition at line 79 of file MillePedeRecord.h.

◆ GetValue() [2/2]

Double_t o2::fwdalign::MillePedeRecord::GetValue ( Int_t  i) const
inline

Definition at line 80 of file MillePedeRecord.h.

◆ GetWeight() [1/2]

Double_t o2::fwdalign::MillePedeRecord::GetWeight ( ) const
inline

Definition at line 81 of file MillePedeRecord.h.

◆ GetWeight() [2/2]

Double_t MillePedeRecord::GetWeight ( Int_t  indx) const

get weight of point pnt

Definition at line 268 of file MillePedeRecord.cxx.

◆ IsGroupPresent()

Bool_t o2::fwdalign::MillePedeRecord::IsGroupPresent ( Int_t  id) const
inline

check if group is defined

Definition at line 144 of file MillePedeRecord.h.

◆ IsResidual()

Bool_t o2::fwdalign::MillePedeRecord::IsResidual ( Int_t  i) const
inline

Definition at line 76 of file MillePedeRecord.h.

◆ IsWeight()

Bool_t o2::fwdalign::MillePedeRecord::IsWeight ( Int_t  i) const
inline

Definition at line 77 of file MillePedeRecord.h.

◆ MarkGroup()

void MillePedeRecord::MarkGroup ( Int_t  id)

mark the presence of the detector group

Definition at line 325 of file MillePedeRecord.cxx.

◆ operator=()

MillePedeRecord & MillePedeRecord::operator= ( const MillePedeRecord rhs)

assignment op-r

Definition at line 55 of file MillePedeRecord.cxx.

◆ Print()

void MillePedeRecord::Print ( const Option_t *  opt = "") const
override

print itself

Definition at line 95 of file MillePedeRecord.cxx.

◆ Reset()

void MillePedeRecord::Reset ( )

reset all

Definition at line 83 of file MillePedeRecord.cxx.

◆ SetDtBufferSize()

void o2::fwdalign::MillePedeRecord::SetDtBufferSize ( Int_t  sz)
inlineprotected

Definition at line 112 of file MillePedeRecord.h.

◆ SetGrBufferSize()

void o2::fwdalign::MillePedeRecord::SetGrBufferSize ( Int_t  sz)
inlineprotected

Definition at line 113 of file MillePedeRecord.h.

◆ SetRunID()

void o2::fwdalign::MillePedeRecord::SetRunID ( UInt_t  run)
inline

Definition at line 92 of file MillePedeRecord.h.

◆ SetWeight()

void o2::fwdalign::MillePedeRecord::SetWeight ( Double_t  w = 1)
inline

Definition at line 75 of file MillePedeRecord.h.

Member Data Documentation

◆ fGroupID

UShort_t* o2::fwdalign::MillePedeRecord::fGroupID
protected

[fNGroups] groups id's+1 (in increasing order)

Definition at line 125 of file MillePedeRecord.h.

◆ fIndex

Int_t* o2::fwdalign::MillePedeRecord::fIndex
protected

[fSize] index of variables

Definition at line 126 of file MillePedeRecord.h.

◆ fNGroups

Int_t o2::fwdalign::MillePedeRecord::fNGroups
protected

number of groups (e.g. detectors) contributing

Definition at line 123 of file MillePedeRecord.h.

◆ fRunID

UInt_t o2::fwdalign::MillePedeRecord::fRunID
protected

run ID

Definition at line 124 of file MillePedeRecord.h.

◆ fSize

Int_t o2::fwdalign::MillePedeRecord::fSize
protected

size of the record

Definition at line 122 of file MillePedeRecord.h.

◆ fValue

Double32_t* o2::fwdalign::MillePedeRecord::fValue
protected

[fSize] array of values: derivs,residuals

Definition at line 127 of file MillePedeRecord.h.

◆ fWeight

Double32_t o2::fwdalign::MillePedeRecord::fWeight
protected

global weight for the record

Definition at line 128 of file MillePedeRecord.h.


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