Belle II Software development
BeamSpot Class Reference

This class contains the beam spot position and size modeled as a gaussian distribution in space. More...

#include <BeamSpot.h>

Inheritance diagram for BeamSpot:

Public Member Functions

 BeamSpot ()
 default constructor IP position at the nominal origin error on the position 0 in all directions Luminous region size set to 0 in all directions
 
 ~BeamSpot ()
 Destructor.
 
bool operator== (const BeamSpot &b) const
 equality operator
 
void setSizeCovMatrix (const TMatrixDSym &size)
 Set the covariance matrix of the size of the IP position.
 
void setIP (const TVector3 &ipPosition, const TMatrixDSym &covariance)
 Set the IP position and its error matrix.
 
const TVector3 & getIPPosition () const
 Get the IP position.
 
const TMatrixDSym & getIPPositionCovMatrix () const
 Get the covariance matrix of the measured IP position.
 
const TMatrixDSym & getSizeCovMatrix () const
 Get the covariance matrix of the size of the IP position modeled as a gaussian.
 
TMatrixDSym getCovVertex () const
 Get the total covariance matrix of theIP position (for compatibility with BeamParameters)
 

Static Public Member Functions

static unsigned short getGlobalUniqueID ()
 Return unique ID of BeamSpot in global Millepede calibration (1)
 

Private Member Functions

 ClassDef (BeamSpot, 2)
 beam spot position and size
 

Private Attributes

TVector3 m_IPPosition
 Beam spot position defined as the average position of the primary vertex.
 
TMatrixDSym m_IPPositionCovMatrix
 CovMatrix of the measured beam spot position.
 
TMatrixDSym m_sizeCovMatrix
 Size of the luminous region modeled with a three dimensional gaussian.
 

Detailed Description

This class contains the beam spot position and size modeled as a gaussian distribution in space.

Definition at line 22 of file BeamSpot.h.

Constructor & Destructor Documentation

◆ BeamSpot()

BeamSpot ( )
inline

default constructor IP position at the nominal origin error on the position 0 in all directions Luminous region size set to 0 in all directions

Definition at line 30 of file BeamSpot.h.

30 : m_IPPosition(),
33 { }
TVector3 m_IPPosition
Beam spot position defined as the average position of the primary vertex.
Definition: BeamSpot.h:97
TMatrixDSym m_IPPositionCovMatrix
CovMatrix of the measured beam spot position.
Definition: BeamSpot.h:100
TMatrixDSym m_sizeCovMatrix
Size of the luminous region modeled with a three dimensional gaussian.
Definition: BeamSpot.h:104

◆ ~BeamSpot()

~BeamSpot ( )
inline

Destructor.

Definition at line 36 of file BeamSpot.h.

36{}

Member Function Documentation

◆ getCovVertex()

TMatrixDSym getCovVertex ( ) const
inline

Get the total covariance matrix of theIP position (for compatibility with BeamParameters)

Definition at line 85 of file BeamSpot.h.

86 {
88 }
const TMatrixDSym & getSizeCovMatrix() const
Get the covariance matrix of the size of the IP position modeled as a gaussian.
Definition: BeamSpot.h:78
const TMatrixDSym & getIPPositionCovMatrix() const
Get the covariance matrix of the measured IP position.
Definition: BeamSpot.h:72

◆ getGlobalUniqueID()

static unsigned short getGlobalUniqueID ( )
inlinestatic

Return unique ID of BeamSpot in global Millepede calibration (1)

Definition at line 91 of file BeamSpot.h.

91{ return 1; }

◆ getIPPosition()

const TVector3 & getIPPosition ( ) const
inline

Get the IP position.

Definition at line 66 of file BeamSpot.h.

67 {
68 return m_IPPosition;
69 }

◆ getIPPositionCovMatrix()

const TMatrixDSym & getIPPositionCovMatrix ( ) const
inline

Get the covariance matrix of the measured IP position.

Definition at line 72 of file BeamSpot.h.

73 {
75 }

◆ getSizeCovMatrix()

const TMatrixDSym & getSizeCovMatrix ( ) const
inline

Get the covariance matrix of the size of the IP position modeled as a gaussian.

Definition at line 78 of file BeamSpot.h.

79 {
80 return m_sizeCovMatrix;
81 }

◆ operator==()

bool operator== ( const BeamSpot b) const
inline

equality operator

Definition at line 40 of file BeamSpot.h.

41 {
42 return
43 b.m_IPPosition == m_IPPosition &&
44 b.m_IPPositionCovMatrix == m_IPPositionCovMatrix &&
45 b.m_sizeCovMatrix == m_sizeCovMatrix;
46 }

◆ setIP()

void setIP ( const TVector3 &  ipPosition,
const TMatrixDSym &  covariance 
)
inline

Set the IP position and its error matrix.

Parameters
ipPositionposition in basf2 units: cm
covariancecovariance matrix of the vertex position.

Definition at line 59 of file BeamSpot.h.

60 {
61 m_IPPosition = ipPosition;
62 m_IPPositionCovMatrix = covariance;
63 }

◆ setSizeCovMatrix()

void setSizeCovMatrix ( const TMatrixDSym &  size)
inline

Set the covariance matrix of the size of the IP position.

The upper triangle will be saved.

Definition at line 50 of file BeamSpot.h.

51 {
52 m_sizeCovMatrix = size;
53 }

Member Data Documentation

◆ m_IPPosition

TVector3 m_IPPosition
private

Beam spot position defined as the average position of the primary vertex.

Definition at line 97 of file BeamSpot.h.

◆ m_IPPositionCovMatrix

TMatrixDSym m_IPPositionCovMatrix
private

CovMatrix of the measured beam spot position.

Definition at line 100 of file BeamSpot.h.

◆ m_sizeCovMatrix

TMatrixDSym m_sizeCovMatrix
private

Size of the luminous region modeled with a three dimensional gaussian.

Covariance matrix

Definition at line 104 of file BeamSpot.h.


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