Skip to content
Snippets Groups Projects

Qa: cosmetics: mark virtual methods as "override"

Merged Sergey Gorbunov requested to merge se.gorbunov/cbmroot:override into master
14 files
+ 119
145
Compare changes
  • Side-by-side
  • Inline
Files
14
+ 8
10
@@ -7,8 +7,8 @@
@@ -7,8 +7,8 @@
/// \author S.Zharko <s.zharko@gsi.de>
/// \author S.Zharko <s.zharko@gsi.de>
/// \data 12.01.2023
/// \data 12.01.2023
#ifndef CbmQaTask_h
#define CbmQaTask_h 1
#pragma once
#include "CbmQaIO.h"
#include "CbmQaIO.h"
#include "CbmQaTable.h"
#include "CbmQaTable.h"
@@ -64,22 +64,20 @@ class CbmQaTask : public FairTask, public CbmQaIO {
@@ -64,22 +64,20 @@ class CbmQaTask : public FairTask, public CbmQaIO {
bool IsMCUsed() const { return fbUseMC; }
bool IsMCUsed() const { return fbUseMC; }
/// FairTask: Task initialization in the beginning of the run
/// FairTask: Task initialization in the beginning of the run
InitStatus Init();
InitStatus Init() override;
/// FairTask: Task reinitialization
/// FairTask: Task reinitialization
InitStatus ReInit();
InitStatus ReInit() override;
/// FairTask: Defines action of the task in the event/TS
/// FairTask: Defines action of the task in the event/TS
void Exec(Option_t* /*option*/);
void Exec(Option_t* /*option*/) override;
/// FairTask: Defines action of the task in the end of run
/// FairTask: Defines action of the task in the end of run
void Finish();
void Finish() override;
/// @brief Sets name of the setup
/// @brief Sets name of the setup
void SetSetupName(const char* setup) { fsSetupName = setup; }
void SetSetupName(const char* setup) { fsSetupName = setup; }
ClassDef(CbmQaTask, 0);
// *****************************************************
// *****************************************************
// ** Functions accessible inside the derived classes **
// ** Functions accessible inside the derived classes **
// *****************************************************
// *****************************************************
@@ -149,6 +147,8 @@ class CbmQaTask : public FairTask, public CbmQaIO {
@@ -149,6 +147,8 @@ class CbmQaTask : public FairTask, public CbmQaIO {
std::string fsSetupName = ""; ///< Name of the setup (to draw on the canvases)
std::string fsSetupName = ""; ///< Name of the setup (to draw on the canvases)
TParameter<int> fNofEvents{"nEvents", 0}; ///< Number of processed events
TParameter<int> fNofEvents{"nEvents", 0}; ///< Number of processed events
 
 
ClassDefOverride(CbmQaTask, 0);
};
};
@@ -182,5 +182,3 @@ bool CbmQaTask::CheckRange(std::string_view name, T var, T varErr, T lo, T hi) c
@@ -182,5 +182,3 @@ bool CbmQaTask::CheckRange(std::string_view name, T var, T varErr, T lo, T hi) c
}
}
return ret;
return ret;
}
}
#endif // CbmQaTask_h
Loading