Skip to content

Commit

Permalink
[RECONSTRUCTION] Define missing assignment operator
Browse files Browse the repository at this point in the history
  • Loading branch information
aandvalenzuela committed Dec 1, 2023
1 parent 895df58 commit f599317
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions DataFormats/BTauReco/interface/TaggingVariable.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <typename InputIterator>
Expand Down
3 changes: 3 additions & 0 deletions DataFormats/EgammaCandidates/interface/Photon.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 2 additions & 0 deletions DataFormats/METReco/interface/CorrMETData.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions DataFormats/METReco/interface/HcalHaloData.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ struct HaloTowerStrip {
energyRatio = strip.energyRatio;
emEt = strip.emEt;
}
HaloTowerStrip& operator=(const HaloTowerStrip&) = default;
};

namespace reco {
Expand Down
2 changes: 2 additions & 0 deletions DataFormats/ParticleFlowReco/interface/PFTrack.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 3 additions & 0 deletions DataFormats/SiStripCommon/interface/SiStripFecKey.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ class SiStripFecKey : public SiStripKey {
/** Default constructor */
SiStripFecKey();

/** Assignment operator */
SiStripFecKey& operator=(const SiStripFecKey&) = default;

// ---------- Control structure ----------

/** Returns VME crate. */
Expand Down
3 changes: 3 additions & 0 deletions DataFormats/SiStripCommon/interface/SiStripFedKey.h
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit f599317

Please sign in to comment.