Skip to content
Snippets Groups Projects
Commit 5b17ed39 authored by Sergei Zharko's avatar Sergei Zharko Committed by Sergey Gorbunov
Browse files

CA/KF: Warning fixes

parent fe8fb089
No related branches found
No related tags found
1 merge request!1147CA/KF: Compile warning fixes
Pipeline #22128 passed
......@@ -35,8 +35,8 @@ public:
/** Information not to be changed
*/
virtual Double_t GetMass() { return 0.1396; } /// Mass hypothesis
virtual Bool_t IsElectron() { return 0; } /// Is it electron
virtual Double_t GetMass() const { return 0.1396; } /// Mass hypothesis
virtual Bool_t IsElectron() const { return 0; } /// Is it electron
/** I/O parameters for extrapolation routines
*/
......
......@@ -53,16 +53,16 @@ public:
void SetPID(Int_t pidHypo);
Double_t* GetTrack() { return fT; }
Double_t* GetCovMatrix() { return fC; }
Double_t& GetRefChi2() { return fChi2; }
Int_t& GetRefNDF() { return fNDF; }
Double_t GetMass() { return fMass; }
Bool_t IsElectron() { return fIsElectron; }
Int_t GetNOfHits() { return fHits.size(); }
CbmKFHit* GetHit(Int_t i) { return fHits[i]; }
ClassDef(CbmKFTrack, 1)
Double_t* GetTrack() override { return fT; }
Double_t* GetCovMatrix() override { return fC; }
Double_t& GetRefChi2() override { return fChi2; }
Int_t& GetRefNDF() override { return fNDF; }
Double_t GetMass() const override { return fMass; }
Bool_t IsElectron() const override { return fIsElectron; }
Int_t GetNOfHits() override { return fHits.size(); }
CbmKFHit* GetHit(Int_t i) override { return fHits[i]; }
ClassDefOverride(CbmKFTrack, 1)
};
#endif
......@@ -12,12 +12,12 @@
struct CbmL1TrackPar : public CbmKFTrackInterface {
public:
CbmL1TrackPar() : chi2(0), NDF(0), mass(0), is_electron(0) {}
double* GetTrack() { return T; }
double* GetCovMatrix() { return C; }
double& GetRefChi2() { return chi2; }
int& GetRefNDF() { return NDF; }
double GetMass() const { return mass; }
bool IsElectron() const { return is_electron; }
double* GetTrack() override { return T; }
double* GetCovMatrix() override { return C; }
double& GetRefChi2() override { return chi2; }
int& GetRefNDF() override { return NDF; }
double GetMass() const override { return mass; }
bool IsElectron() const override { return is_electron; }
double T[L1TrackPar::kNparTr];
double C[L1TrackPar::kNparCov];
......
......@@ -51,7 +51,7 @@ void CbmTofInteraction::AddPoint(const CbmTofPoint* pPoint)
// ---------------------------------------------------------------------------------------------------------------------
//
void CbmTofInteraction::Clear()
void CbmTofInteraction::Clear(Option_t*)
{
fTrackID = -1;
fDetectorID = -1;
......
......@@ -41,7 +41,7 @@ public:
void AddPoint(const CbmTofPoint* pPoint);
/// \brief Clears the instance
void Clear();
void Clear(Option_t*);
/// \brief Sets parameters from a particular TOF MC-point
/// \param pPoint Pointer to TOF point
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment