Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.8 FATAL_ERROR)
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)

project(KFParticleLibrary)

Expand Down
10 changes: 5 additions & 5 deletions KFParticle/KFParticle.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class KFParticle :public KFParticleBase
float GetPz () const ; ///< Retruns Z component of the momentum, fP[5].
float GetE () const ; ///< Returns energy of the particle, fP[6].
float GetS () const ; ///< Returns dS=l/p, l - decay length, fP[7], defined if production vertex is set.
char GetQ () const ; ///< Returns charge of the particle.
signed char GetQ () const ; ///< Returns charge of the particle.
float GetChi2 () const ; ///< Returns Chi2 of the fit.
Int_t GetNDF () const ; ///< Returns number of decrease of freedom.

Expand All @@ -133,7 +133,7 @@ class KFParticle :public KFParticleBase
const float& Pz () const { return fP[5]; } ///< Retruns Z component of the momentum, fP[5].
const float& E () const { return fP[6]; } ///< Returns energy of the particle, fP[6].
const float& S () const { return fP[7]; } ///< Returns dS=l/p, l - decay length, fP[7], defined if production vertex is set.
const char& Q () const { return fQ; } ///< Returns charge of the particle.
const signed char& Q () const { return fQ; } ///< Returns charge of the particle.
const float& Chi2 () const { return fChi2; } ///< Returns Chi2 of the fit.
const Int_t& NDF () const { return fNDF; } ///< Returns number of decrease of freedom.

Expand Down Expand Up @@ -204,7 +204,7 @@ class KFParticle :public KFParticleBase
float & Pz () ; ///< Modifier of Z component of the momentum, fP[5].
float & E () ; ///< Modifier of energy of the particle, fP[6].
float & S () ; ///< Modifier of dS=l/p, l - decay length, fP[7], defined if production vertex is set.
char & Q () ; ///< Modifier of charge of the particle.
signed char & Q () ; ///< Modifier of charge of the particle.
float & Chi2 () ; ///< Modifier of Chi2 of the fit.
Int_t & NDF () ; ///< Modifier of number of decrease of freedom.

Expand Down Expand Up @@ -430,7 +430,7 @@ inline float KFParticle::GetS () const
return KFParticleBase::GetS();
}

inline char KFParticle::GetQ () const
inline signed char KFParticle::GetQ () const
{
return KFParticleBase::GetQ();
}
Expand Down Expand Up @@ -777,7 +777,7 @@ inline float & KFParticle::S()
return KFParticleBase::S();
}

inline char & KFParticle::Q()
inline signed char & KFParticle::Q()
{
return KFParticleBase::Q();
}
Expand Down
8 changes: 4 additions & 4 deletions KFParticle/KFParticleBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class KFParticleBase :public TObject {
float GetPz () const { return fP[5]; } ///< Retruns Z component of the momentum, fP[5].
float GetE () const { return fP[6]; } ///< Returns energy of the particle, fP[6].
float GetS () const { return fP[7]; } ///< Returns dS=l/p, l - decay length, fP[7], defined if production vertex is set.
char GetQ () const { return fQ; } ///< Returns charge of the particle.
signed char GetQ () const { return fQ; } ///< Returns charge of the particle.
float GetChi2 () const { return fChi2; } ///< Returns Chi2 of the fit.
Int_t GetNDF () const { return fNDF; } ///< Returns number of decrease of freedom.

Expand All @@ -114,7 +114,7 @@ class KFParticleBase :public TObject {
const float& Pz () const { return fP[5]; } ///< Retruns Z component of the momentum, fP[5].
const float& E () const { return fP[6]; } ///< Returns energy of the particle, fP[6].
const float& S () const { return fP[7]; } ///< Returns dS=l/p, l - decay length, fP[7], defined if production vertex is set.
const char& Q () const { return fQ; } ///< Returns charge of the particle.
const signed char& Q () const { return fQ; } ///< Returns charge of the particle.
const float& Chi2 () const { return fChi2; } ///< Returns Chi2 of the fit.
const Int_t& NDF () const { return fNDF; } ///< Returns number of decrease of freedom.

Expand Down Expand Up @@ -147,7 +147,7 @@ class KFParticleBase :public TObject {
float & Pz () { return fP[5]; } ///< Modifier of Z component of the momentum, fP[5].
float & E () { return fP[6]; } ///< Modifier of energy of the particle, fP[6].
float & S () { return fP[7]; } ///< Modifier of dS=l/p, l - decay length, fP[7], defined if production vertex is set.
char & Q () { return fQ; } ///< Modifier of charge of the particle.
signed char & Q () { return fQ; } ///< Modifier of charge of the particle.
float & Chi2 () { return fChi2; } ///< Modifier of Chi2 of the fit.
Int_t & NDF () { return fNDF; } ///< Modifier of number of decrease of freedom.

Expand Down Expand Up @@ -275,7 +275,7 @@ class KFParticleBase :public TObject {
Short_t fIdParentMcVx; ///< for track and McTrack for vertex.
#endif
Bool_t fAtProductionVertex; ///< Flag shows if particle is at the production point.
char fQ; ///< The charge of the particle in the units of the elementary charge.
signed char fQ; ///< The charge of the particle in the units of the elementary charge.

/** \brief Determines the method for the particle construction. \n
** 0 - Energy considered as an independent veriable, fitted independently from momentum, without any constraints on mass \n
Expand Down