Belle II Software development
ParticleProperties Struct Reference

This struct is used by the StandardTrackingPerformanceModule to save information of reconstructed tracks. More...

#include <ParticleProperties.h>

Public Member Functions

 ParticleProperties ()=default
 default constructor
 
 ParticleProperties (double value)
 constructor which sets all members to the given value
 
void setAllTo (double value)
 Set all the values of the data structure to one value for initialization.
 
void operator= (double value)
 Same as setAllTo but usable as C++ assignment operator.
 

Public Attributes

double mass
 measured mass
 
double px
 measured momentum in x direction
 
double py
 measured momentum in y direction
 
double pz
 measured momentum in z direction
 
double pt
 measured transverse momentum
 
double ptot
 measured total momentum
 
double cosTheta
 polar angle of measured momentum vector
 
double phi
 azimuthal angle of measured momentum vector
 
double x
 measured x value of position
 
double y
 measured y value of position
 
double z
 measured z value of position
 
int nPXDhits
 Number of PXD hits in reconstructed track

 
int nSVDhits
 Number of SVD hits in reconstructed track

 
int nCDChits
 Number of CDC hits in reconstructed track

 
int nWeights
 Number of entries in weights array

 
float weights [maxNweights]
 Weights of the hits in sequence

 
int pdg_gen
 PDG code of generated particle.
 
double mass_gen
 generated mass
 
double px_gen
 generated momentum in x direction
 
double py_gen
 generated momentum in y direction
 
double pz_gen
 generated momentum in z direction
 
double pt_gen
 generated transverse momentum
 
double ptot_gen
 generated total momentum
 
double cosTheta_gen
 polar angle of generated momentum vector
 
double phi_gen
 azimuthal angle of generated momentum vector
 
double x_gen
 x value of generated position
 
double y_gen
 y value of generated position
 
double z_gen
 z value of generated position
 

Static Public Attributes

static const int maxNweights = 160
 the maximum number of stored weights
 

Detailed Description

This struct is used by the StandardTrackingPerformanceModule to save information of reconstructed tracks.

Definition at line 19 of file ParticleProperties.h.

Constructor & Destructor Documentation

◆ ParticleProperties()

ParticleProperties ( double  value)
inlineexplicit

constructor which sets all members to the given value

Definition at line 24 of file ParticleProperties.h.

25 {
26 setAllTo(value);
27 }
void setAllTo(double value)
Set all the values of the data structure to one value for initialization.

Member Function Documentation

◆ operator=()

void operator= ( double  value)
inline

Same as setAllTo but usable as C++ assignment operator.

Definition at line 106 of file ParticleProperties.h.

107 {
108 setAllTo(value);
109 }

◆ setAllTo()

void setAllTo ( double  value)
inline

Set all the values of the data structure to one value for initialization.

Definition at line 67 of file ParticleProperties.h.

68 {
69 mass = value;
70 px = value;
71 py = value;
72 pz = value;
73 pt = value;
74 ptot = value;
75 cosTheta = value;
76 phi = value;
77 x = value;
78 y = value;
79 z = value;
80
81 nPXDhits = (int)value;
82 nSVDhits = (int)value;
83 nCDChits = (int)value;
84
85 nWeights = 0;
86 for (int i = 0; i < maxNweights; ++i)
87 weights[i] = 0;
88
89 pdg_gen = 0;
90 mass_gen = value;
91 px_gen = value;
92 py_gen = value;
93 pz_gen = value;
94 pt_gen = value;
95 ptot_gen = value;
96 cosTheta_gen = value;
97 phi_gen = value;
98 x_gen = value;
99 y_gen = value;
100 z_gen = value;
101 }
double pt
measured transverse momentum
int nCDChits
Number of CDC hits in reconstructed track
double pz
measured momentum in z direction
double x_gen
x value of generated position
double phi_gen
azimuthal angle of generated momentum vector
float weights[maxNweights]
Weights of the hits in sequence
int pdg_gen
PDG code of generated particle.
double pt_gen
generated transverse momentum
double mass_gen
generated mass
double y_gen
y value of generated position
int nPXDhits
Number of PXD hits in reconstructed track
int nSVDhits
Number of SVD hits in reconstructed track
double px
measured momentum in x direction
static const int maxNweights
the maximum number of stored weights
double z
measured z value of position
int nWeights
Number of entries in weights array
double y
measured y value of position
double ptot_gen
generated total momentum
double py
measured momentum in y direction
double phi
azimuthal angle of measured momentum vector
double cosTheta
polar angle of measured momentum vector
double pz_gen
generated momentum in z direction
double py_gen
generated momentum in y direction
double cosTheta_gen
polar angle of generated momentum vector
double px_gen
generated momentum in x direction
double z_gen
z value of generated position
double x
measured x value of position
double ptot
measured total momentum

Member Data Documentation

◆ cosTheta

double cosTheta

polar angle of measured momentum vector

Definition at line 37 of file ParticleProperties.h.

◆ cosTheta_gen

double cosTheta_gen

polar angle of generated momentum vector

Definition at line 57 of file ParticleProperties.h.

◆ mass

double mass

measured mass

Definition at line 31 of file ParticleProperties.h.

◆ mass_gen

double mass_gen

generated mass

Definition at line 51 of file ParticleProperties.h.

◆ maxNweights

const int maxNweights = 160
static

the maximum number of stored weights

Definition at line 29 of file ParticleProperties.h.

◆ nCDChits

int nCDChits

Number of CDC hits in reconstructed track

Definition at line 45 of file ParticleProperties.h.

◆ nPXDhits

int nPXDhits

Number of PXD hits in reconstructed track

Definition at line 43 of file ParticleProperties.h.

◆ nSVDhits

int nSVDhits

Number of SVD hits in reconstructed track

Definition at line 44 of file ParticleProperties.h.

◆ nWeights

int nWeights

Number of entries in weights array

Definition at line 47 of file ParticleProperties.h.

◆ pdg_gen

int pdg_gen

PDG code of generated particle.

Definition at line 50 of file ParticleProperties.h.

◆ phi

double phi

azimuthal angle of measured momentum vector

Definition at line 38 of file ParticleProperties.h.

◆ phi_gen

double phi_gen

azimuthal angle of generated momentum vector

Definition at line 58 of file ParticleProperties.h.

◆ pt

double pt

measured transverse momentum

Definition at line 35 of file ParticleProperties.h.

◆ pt_gen

double pt_gen

generated transverse momentum

Definition at line 55 of file ParticleProperties.h.

◆ ptot

double ptot

measured total momentum

Definition at line 36 of file ParticleProperties.h.

◆ ptot_gen

double ptot_gen

generated total momentum

Definition at line 56 of file ParticleProperties.h.

◆ px

double px

measured momentum in x direction

Definition at line 32 of file ParticleProperties.h.

◆ px_gen

double px_gen

generated momentum in x direction

Definition at line 52 of file ParticleProperties.h.

◆ py

double py

measured momentum in y direction

Definition at line 33 of file ParticleProperties.h.

◆ py_gen

double py_gen

generated momentum in y direction

Definition at line 53 of file ParticleProperties.h.

◆ pz

double pz

measured momentum in z direction

Definition at line 34 of file ParticleProperties.h.

◆ pz_gen

double pz_gen

generated momentum in z direction

Definition at line 54 of file ParticleProperties.h.

◆ weights

float weights[maxNweights]

Weights of the hits in sequence

Definition at line 48 of file ParticleProperties.h.

◆ x

double x

measured x value of position

Definition at line 39 of file ParticleProperties.h.

◆ x_gen

double x_gen

x value of generated position

Definition at line 59 of file ParticleProperties.h.

◆ y

double y

measured y value of position

Definition at line 40 of file ParticleProperties.h.

◆ y_gen

double y_gen

y value of generated position

Definition at line 60 of file ParticleProperties.h.

◆ z

double z

measured z value of position

Definition at line 41 of file ParticleProperties.h.

◆ z_gen

double z_gen

z value of generated position

Definition at line 61 of file ParticleProperties.h.


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