Skip to content
Snippets Groups Projects
Commit 5f09f1ca authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch 'master-const' into 'master'

Make 'const static' 'static const' in SCT packages

See merge request atlas/athena!21980
parents 44a6a66a aabb6060
No related branches found
No related tags found
No related merge requests found
...@@ -30,9 +30,9 @@ ...@@ -30,9 +30,9 @@
using namespace std; using namespace std;
using namespace SCT_CalibAlgs; using namespace SCT_CalibAlgs;
const static string pathRoot{"/HitMaps/"}; static const string pathRoot{"/HitMaps/"};
const static string detectorNames[]{"negativeEndcap", "barrel", "positiveEndcap"}; static const string detectorNames[]{"negativeEndcap", "barrel", "positiveEndcap"};
const static string detectorPaths[]{"SCTEC/", "SCTB/","SCTEA/"}; static const string detectorPaths[]{"SCTEC/", "SCTB/","SCTEA/"};
SCT_CalibHitmapTool::SCT_CalibHitmapTool(const std::string& type, const std::string& name, const IInterface* parent): SCT_CalibHitmapTool::SCT_CalibHitmapTool(const std::string& type, const std::string& name, const IInterface* parent):
base_class(type, name, parent), base_class(type, name, parent),
......
...@@ -18,9 +18,9 @@ ...@@ -18,9 +18,9 @@
using namespace std; using namespace std;
using namespace SCT_CalibAlgs; using namespace SCT_CalibAlgs;
const static string detectorNames[]{"negativeEndcap", "barrel", "positiveEndcap"}; static const string detectorNames[]{"negativeEndcap", "barrel", "positiveEndcap"};
const static string detectorPaths[]{"SCTEC/", "SCTB/","SCTEA/"}; static const string detectorPaths[]{"SCTEC/", "SCTB/","SCTEA/"};
namespace { namespace {
void void
initQueue(std::queue<int>& q, const int numvals, const int setval) { initQueue(std::queue<int>& q, const int numvals, const int setval) {
......
...@@ -40,7 +40,7 @@ protected: ...@@ -40,7 +40,7 @@ protected:
private: private:
std::string m_name; std::string m_name;
const static double s_epsilon; static const double s_epsilon;
}; };
......
...@@ -50,7 +50,7 @@ protected: ...@@ -50,7 +50,7 @@ protected:
///Check if the event passes L1 item ///Check if the event passes L1 item
bool isCalibrationNoise(const std::string& L1_Item); bool isCalibrationNoise(const std::string& L1_Item);
///Abbreviations for level 1 trigger types ///Abbreviations for level 1 trigger types
const static std::string m_triggerNames[8]; static const std::string m_triggerNames[8];
///Format and output (INFO msg level) the fired triggers ///Format and output (INFO msg level) the fired triggers
StatusCode printTriggers() const; StatusCode printTriggers() const;
//@deprecated improper camel casing on old method //@deprecated improper camel casing on old method
......
...@@ -229,22 +229,22 @@ public: ...@@ -229,22 +229,22 @@ public:
friend std::istream& clusterC( std::istream & , FTKRawHit& ); friend std::istream& clusterC( std::istream & , FTKRawHit& );
// These are now public because they are needed by FTKHit and FTKCoord // These are now public because they are needed by FTKHit and FTKCoord
const static int row_coord_mask = 0x00000FFF; ///< Bitmask marking the location of the row coordinate in m_hw_word for pixel(12 bits) static const int row_coord_mask = 0x00000FFF; ///< Bitmask marking the location of the row coordinate in m_hw_word for pixel(12 bits)
const static int phi_width_mask = 0x00007000; ///< Bitmask marking the location of the row width in m_hw_word for pixel(3 bits) static const int phi_width_mask = 0x00007000; ///< Bitmask marking the location of the row width in m_hw_word for pixel(3 bits)
const static int split_mask = 0x00008000; ///< Bitmask marking the location of the split cluster flag in m_hw_word for pixel(1 bit) static const int split_mask = 0x00008000; ///< Bitmask marking the location of the split cluster flag in m_hw_word for pixel(1 bit)
const static int column_coord_mask = 0x0FFF0000; ///< Bitmask marking the location of the column coordinate in m_hw_word for pixel(12 bits) static const int column_coord_mask = 0x0FFF0000; ///< Bitmask marking the location of the column coordinate in m_hw_word for pixel(12 bits)
const static int eta_width_mask = 0x70000000; ///< Bitmask marking the location of the column width in m_hw_word for pixel(3 bits) static const int eta_width_mask = 0x70000000; ///< Bitmask marking the location of the column width in m_hw_word for pixel(3 bits)
const static int row_coord_bit = 0; ///< Starting bit of row coordinate in m_hw_word for pixel static const int row_coord_bit = 0; ///< Starting bit of row coordinate in m_hw_word for pixel
const static int phi_width_bit = 12; ///< Starting bit of row width in m_hw_word for pixel static const int phi_width_bit = 12; ///< Starting bit of row width in m_hw_word for pixel
const static int split_bit = 15; ///< Bit for the split cluster flag in m_hw_word for pixel static const int split_bit = 15; ///< Bit for the split cluster flag in m_hw_word for pixel
const static int column_coord_bit = 16; ///< Starting bit of column coordinate in m_hw_word for pixel static const int column_coord_bit = 16; ///< Starting bit of column coordinate in m_hw_word for pixel
const static int eta_width_bit = 28; ///< Starting bit of column width in m_hw_word for pixel static const int eta_width_bit = 28; ///< Starting bit of column width in m_hw_word for pixel
const static int strip_coord_mask = 0x07FF; ///< Bitmask marking the location of the strip coordinate in m_hw_word for SCT (3 bits) static const int strip_coord_mask = 0x07FF; ///< Bitmask marking the location of the strip coordinate in m_hw_word for SCT (3 bits)
const static int strip_coord_bit = 0; ///< Starting bit of strip coordinate in m_hw_word for SCT static const int strip_coord_bit = 0; ///< Starting bit of strip coordinate in m_hw_word for SCT
const static int strip_width_mask = 0x7000; ///< Bitmask marking the location of the strip width in m_hw_word for SCT (3 bits) static const int strip_width_mask = 0x7000; ///< Bitmask marking the location of the strip width in m_hw_word for SCT (3 bits)
const static int strip_width_bit = 12; ///< Starting bit of strip width in m_hw_word for SCT static const int strip_width_bit = 12; ///< Starting bit of strip width in m_hw_word for SCT
const float SCT_row_scaling = 2.; const float SCT_row_scaling = 2.;
const float PIX_row_scaling = 8.; const float PIX_row_scaling = 8.;
......
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