diff --git a/DataFormats/BTauReco/interface/TaggingVariable.h b/DataFormats/BTauReco/interface/TaggingVariable.h index ff85997f7e1a5..a632e29451844 100644 --- a/DataFormats/BTauReco/interface/TaggingVariable.h +++ b/DataFormats/BTauReco/interface/TaggingVariable.h @@ -195,6 +195,7 @@ namespace reco { public: TaggingVariableList() : m_list() {} TaggingVariableList(const TaggingVariableList& list) : m_list(list.m_list) {} + TaggingVariableList& operator=(const TaggingVariableList&) = default; // [begin, end) must identify a valid range of iterators to TaggingVariableList template diff --git a/DataFormats/EgammaCandidates/interface/Photon.h b/DataFormats/EgammaCandidates/interface/Photon.h index 25522830a816b..d6e6e1da91fc2 100644 --- a/DataFormats/EgammaCandidates/interface/Photon.h +++ b/DataFormats/EgammaCandidates/interface/Photon.h @@ -40,6 +40,9 @@ namespace reco { /// constructor from values Photon(const LorentzVector& p4, const Point& caloPos, const PhotonCoreRef& core, const Point& vtx = Point(0, 0, 0)); + /// assignment operator + Photon& operator=(const Photon&) = default; + /// destructor ~Photon() override; diff --git a/DataFormats/METReco/interface/CorrMETData.h b/DataFormats/METReco/interface/CorrMETData.h index 54c895d63dc86..d46c99cb02815 100644 --- a/DataFormats/METReco/interface/CorrMETData.h +++ b/DataFormats/METReco/interface/CorrMETData.h @@ -21,6 +21,8 @@ struct CorrMETData { CorrMETData(const CorrMETData& corr) : mex(corr.mex), mey(corr.mey), sumet(corr.sumet) {} + CorrMETData& operator=(const CorrMETData&) = default; + CorrMETData& operator+=(const CorrMETData& rhs) { mex += rhs.mex; mey += rhs.mey; diff --git a/DataFormats/METReco/interface/HcalHaloData.h b/DataFormats/METReco/interface/HcalHaloData.h index c13694d54241b..1ad3f6e86026c 100644 --- a/DataFormats/METReco/interface/HcalHaloData.h +++ b/DataFormats/METReco/interface/HcalHaloData.h @@ -30,6 +30,7 @@ struct HaloTowerStrip { energyRatio = strip.energyRatio; emEt = strip.emEt; } + HaloTowerStrip& operator=(const HaloTowerStrip&) = default; }; namespace reco { diff --git a/DataFormats/ParticleFlowReco/interface/PFTrack.h b/DataFormats/ParticleFlowReco/interface/PFTrack.h index 16d5f93cb6799..4a7d3edd04ffb 100644 --- a/DataFormats/ParticleFlowReco/interface/PFTrack.h +++ b/DataFormats/ParticleFlowReco/interface/PFTrack.h @@ -68,6 +68,8 @@ namespace reco { PFTrack(const PFTrack& other); + PFTrack& operator=(const PFTrack& other) = default; + /// add a trajectory measurement /// \todo throw an exception if the number of points is too large void addPoint(const reco::PFTrajectoryPoint& trajPt); diff --git a/DataFormats/SiStripCommon/interface/SiStripFecKey.h b/DataFormats/SiStripCommon/interface/SiStripFecKey.h index 527588e943333..516835ded7419 100644 --- a/DataFormats/SiStripCommon/interface/SiStripFecKey.h +++ b/DataFormats/SiStripCommon/interface/SiStripFecKey.h @@ -73,6 +73,9 @@ class SiStripFecKey : public SiStripKey { /** Default constructor */ SiStripFecKey(); + /** Assignment operator */ + SiStripFecKey& operator=(const SiStripFecKey&) = default; + // ---------- Control structure ---------- /** Returns VME crate. */ diff --git a/DataFormats/SiStripCommon/interface/SiStripFedKey.h b/DataFormats/SiStripCommon/interface/SiStripFedKey.h index e5466e8ceac71..71cf30ea189a6 100644 --- a/DataFormats/SiStripCommon/interface/SiStripFedKey.h +++ b/DataFormats/SiStripCommon/interface/SiStripFedKey.h @@ -78,6 +78,9 @@ class SiStripFedKey : public SiStripKey { /** Default constructor */ SiStripFedKey(); + /** Assignment operator */ + SiStripFedKey& operator=(const SiStripFedKey&) = default; + // ---------- Public interface to member data ---------- /** Returns FED id. */