Skip to content
Snippets Groups Projects
Verified Commit 30fdf7a5 authored by Adam Edward Barton's avatar Adam Edward Barton
Browse files

Make HitInfo nothrow_moveable

parent b94c725d
No related branches found
No related tags found
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!35631Various class trait tweaks
......@@ -101,17 +101,13 @@ namespace TRT{
public:
// Constructors
HitInfo() : m_Ints(Hit::TNOIV),m_Floats(Hit::TNOFV) {}
HitInfo(const HitInfo& orig): m_Ints(orig.m_Ints),m_Floats(orig.m_Floats) {}
HitInfo(const HitInfo& orig)= default;
HitInfo(HitInfo&& orig) noexcept = default;
//assignment
HitInfo & operator=(const HitInfo & other){
if (this!=&other){
m_Ints = other.m_Ints;
m_Floats = other.m_Floats;
}
return *this;
}
HitInfo & operator=(const HitInfo & other)=default;
HitInfo & operator=(HitInfo && other) noexcept =default;
// Destructor
~HitInfo(){}
~HitInfo()=default;
// Access
const int& operator[](const Hit::IntVariables& theIndex) const {return m_Ints[theIndex];}
const float& operator[](const Hit::FloatVariables& theIndex) const {return m_Floats[theIndex];}
......
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