MyMarlinTPC  170316
Public Member Functions | Private Attributes | List of all members
marlintpc::tp_PixelSegment Class Reference

TimePix pixel segment. More...

#include <TimePixLocalRoadSearchProcessor.h>

Public Member Functions

 tp_PixelSegment (const int, const int, const double, macroPixelListType &)
 Construct TimePix pixel segment. More...
 
 ~tp_PixelSegment ()
 Destructor. More...
 
void print () const
 Print. More...
 
int getNumPar () const
 Get number of parameters. More...
 
int getLevel () const
 Get level. More...
 
double getChi2 () const
 Get Chi2/Ndf. More...
 
int getNdf () const
 Get Chi2/Ndf. More...
 
double getLength () const
 Get length. More...
 
void getRefPoint (double *) const
 Get reference point. More...
 
void getPar (double *) const
 Get (all five helix) parameters from segment fit. More...
 
const TVectorD & getPar () const
 Get parameter vector. More...
 
const TMatrixDSym & getCov () const
 Get covariance matrix. More...
 
bool match (tp_PixelSegment *, const double, const double) const
 
macroPixelListType getMacroPixels () const
 Get macro pixels. More...
 
void getLCIOStateAtRefPoint (const double *, TVectorD &, TMatrixDSym &) const
 Get segment state at reference point. More...
 

Private Attributes

const int _segId
 segment ID More...
 
const int _level
 segment level More...
 
const double _bzc
 magnetic field strength (Bz*c) More...
 
const int _npar
 number of parameters (5: helix, 4: line) More...
 
macroPixelListType _macroPixels
 macro pixels More...
 
double _refX
 X of reference point. More...
 
double _refY
 Y of reference point. More...
 
double _refZ
 Z of reference point. More...
 
double _length
 segment (arc) length More...
 
int _ndf
 number of degrees of freedom of segment fit More...
 
double _chi2
 chi2 from segment fit More...
 
TVectorD _parameters
 parameter vector More...
 
TMatrixDSym _covariance
 covariance matrix More...
 

Detailed Description

TimePix pixel segment.

Definition at line 260 of file TimePixLocalRoadSearchProcessor.h.

Constructor & Destructor Documentation

◆ tp_PixelSegment()

marlintpc::tp_PixelSegment::tp_PixelSegment ( const int  segId,
const int  level,
const double  Bzc,
macroPixelListType macroPixels 
)

◆ ~tp_PixelSegment()

marlintpc::tp_PixelSegment::~tp_PixelSegment ( )

Destructor.

Definition at line 910 of file TimePixLocalRoadSearchProcessor.cc.

References _macroPixels.

Member Function Documentation

◆ getChi2()

double marlintpc::tp_PixelSegment::getChi2 ( ) const

Get Chi2/Ndf.

Definition at line 932 of file TimePixLocalRoadSearchProcessor.cc.

References _chi2.

◆ getCov()

const TMatrixDSym & marlintpc::tp_PixelSegment::getCov ( ) const

Get covariance matrix.

Definition at line 977 of file TimePixLocalRoadSearchProcessor.cc.

References _covariance.

Referenced by getLCIOStateAtRefPoint(), and match().

◆ getLCIOStateAtRefPoint()

void marlintpc::tp_PixelSegment::getLCIOStateAtRefPoint ( const double *  refPos,
TVectorD &  newPar,
TMatrixDSym &  newCov 
) const

Get segment state at reference point.

Propagate track state at point and transform from helix to LCIO representation.

Parameters
[in]refPosreference point (X coordinate)
[out]newParparameter vector
[out]newCovcovariance matrix

Definition at line 995 of file TimePixLocalRoadSearchProcessor.cc.

References _bzc, _npar, getCov(), getPar(), getRefPoint(), marlintpc::simpleHelix::getStateAt(), and marlintpc::simpleHelix::helixToLCIOJacobian().

◆ getLength()

double marlintpc::tp_PixelSegment::getLength ( ) const

Get length.

Definition at line 927 of file TimePixLocalRoadSearchProcessor.cc.

References _length.

Referenced by match().

◆ getLevel()

int marlintpc::tp_PixelSegment::getLevel ( ) const

Get level.

Definition at line 947 of file TimePixLocalRoadSearchProcessor.cc.

References _level.

◆ getMacroPixels()

macroPixelListType marlintpc::tp_PixelSegment::getMacroPixels ( ) const

Get macro pixels.

Definition at line 982 of file TimePixLocalRoadSearchProcessor.cc.

References _macroPixels.

◆ getNdf()

int marlintpc::tp_PixelSegment::getNdf ( ) const

Get Chi2/Ndf.

Definition at line 937 of file TimePixLocalRoadSearchProcessor.cc.

References _ndf.

◆ getNumPar()

int marlintpc::tp_PixelSegment::getNumPar ( ) const

Get number of parameters.

Definition at line 942 of file TimePixLocalRoadSearchProcessor.cc.

References _npar.

◆ getPar() [1/2]

void marlintpc::tp_PixelSegment::getPar ( double *  par) const

Get (all five helix) parameters from segment fit.

Parameters
[out]parhelix parameter (curvature is zero for Bz*c = 0.)

Definition at line 965 of file TimePixLocalRoadSearchProcessor.cc.

References _npar, and _parameters.

Referenced by match().

◆ getPar() [2/2]

const TVectorD & marlintpc::tp_PixelSegment::getPar ( ) const

Get parameter vector.

Definition at line 972 of file TimePixLocalRoadSearchProcessor.cc.

References _parameters.

Referenced by getLCIOStateAtRefPoint(), and match().

◆ getRefPoint()

void marlintpc::tp_PixelSegment::getRefPoint ( double *  position) const

Get reference point.

Parameters
[out]positionposition of reference point

Definition at line 955 of file TimePixLocalRoadSearchProcessor.cc.

References _refX, _refY, and _refZ.

Referenced by getLCIOStateAtRefPoint(), and match().

◆ match()

bool marlintpc::tp_PixelSegment::match ( tp_PixelSegment seg,
const double  chi2Cut,
const double  distCut 
) const

Compare the (4 (line) or 5 (helix)) track parameters (at the mid point). The segments must not overlap (in rows) and the (row) gap must be smaller than the average length.

Parameters
[in]segsegment to compare with
[in]chi2Cutchi2/ndf cut for segment matching
[in]distCutdistance cut
Returns
matching flag

Definition at line 1020 of file TimePixLocalRoadSearchProcessor.cc.

References _bzc, _npar, getCov(), getLength(), getPar(), getRefPoint(), and marlintpc::simpleHelix::getStateAt().

◆ print()

void marlintpc::tp_PixelSegment::print ( ) const

Print.

Definition at line 916 of file TimePixLocalRoadSearchProcessor.cc.

References _chi2, _length, _level, _macroPixels, _ndf, _npar, _parameters, _refX, _refY, and _segId.

Member Data Documentation

◆ _bzc

const double marlintpc::tp_PixelSegment::_bzc
private

magnetic field strength (Bz*c)

Definition at line 281 of file TimePixLocalRoadSearchProcessor.h.

Referenced by getLCIOStateAtRefPoint(), and match().

◆ _chi2

double marlintpc::tp_PixelSegment::_chi2
private

chi2 from segment fit

Definition at line 289 of file TimePixLocalRoadSearchProcessor.h.

Referenced by getChi2(), print(), and tp_PixelSegment().

◆ _covariance

TMatrixDSym marlintpc::tp_PixelSegment::_covariance
private

covariance matrix

Definition at line 291 of file TimePixLocalRoadSearchProcessor.h.

Referenced by getCov(), and tp_PixelSegment().

◆ _length

double marlintpc::tp_PixelSegment::_length
private

segment (arc) length

Definition at line 287 of file TimePixLocalRoadSearchProcessor.h.

Referenced by getLength(), print(), and tp_PixelSegment().

◆ _level

const int marlintpc::tp_PixelSegment::_level
private

segment level

Definition at line 280 of file TimePixLocalRoadSearchProcessor.h.

Referenced by getLevel(), and print().

◆ _macroPixels

macroPixelListType marlintpc::tp_PixelSegment::_macroPixels
private

macro pixels

Definition at line 283 of file TimePixLocalRoadSearchProcessor.h.

Referenced by getMacroPixels(), print(), and ~tp_PixelSegment().

◆ _ndf

int marlintpc::tp_PixelSegment::_ndf
private

number of degrees of freedom of segment fit

Definition at line 288 of file TimePixLocalRoadSearchProcessor.h.

Referenced by getNdf(), print(), and tp_PixelSegment().

◆ _npar

const int marlintpc::tp_PixelSegment::_npar
private

number of parameters (5: helix, 4: line)

Definition at line 282 of file TimePixLocalRoadSearchProcessor.h.

Referenced by getLCIOStateAtRefPoint(), getNumPar(), getPar(), match(), print(), and tp_PixelSegment().

◆ _parameters

TVectorD marlintpc::tp_PixelSegment::_parameters
private

parameter vector

Definition at line 290 of file TimePixLocalRoadSearchProcessor.h.

Referenced by getPar(), print(), and tp_PixelSegment().

◆ _refX

double marlintpc::tp_PixelSegment::_refX
private

X of reference point.

Definition at line 284 of file TimePixLocalRoadSearchProcessor.h.

Referenced by getRefPoint(), print(), and tp_PixelSegment().

◆ _refY

double marlintpc::tp_PixelSegment::_refY
private

Y of reference point.

Definition at line 285 of file TimePixLocalRoadSearchProcessor.h.

Referenced by getRefPoint(), print(), and tp_PixelSegment().

◆ _refZ

double marlintpc::tp_PixelSegment::_refZ
private

Z of reference point.

Definition at line 286 of file TimePixLocalRoadSearchProcessor.h.

Referenced by getRefPoint(), and tp_PixelSegment().

◆ _segId

const int marlintpc::tp_PixelSegment::_segId
private

segment ID

Definition at line 279 of file TimePixLocalRoadSearchProcessor.h.

Referenced by print().


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