Skip to content

Commit 6c125c7

Browse files
committed
Fix classes that inherit from LinearizedTrackState
1 parent 78bfd41 commit 6c125c7

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

RecoVertex/GaussianSumVertexFit/interface/PerigeeMultiLTS.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class PerigeeMultiLTS : public LinearizedTrackState<5> {
9696

9797
bool hasError() const override;
9898

99-
bool operator==(LinearizedTrackState<5>& other) const override;
99+
bool operator==(const LinearizedTrackState<5>& other) const override;
100100

101101
/** Creates the correct refitted state according to the results of the
102102
* track refit.

RecoVertex/GaussianSumVertexFit/src/PerigeeMultiLTS.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ AlgebraicSymMatrix33 PerigeeMultiLTS::predictedStateMomentumError() const {
110110
return collapsedStateLT->predictedStateMomentumError();
111111
}
112112

113-
bool PerigeeMultiLTS::operator==(LinearizedTrackState<5>& other) const {
113+
bool PerigeeMultiLTS::operator==(const LinearizedTrackState<5>& other) const {
114114
const PerigeeMultiLTS* otherP = dynamic_cast<const PerigeeMultiLTS*>(&other);
115115
if (otherP == nullptr) {
116116
throw VertexException("PerigeeMultiLTS: don't know how to compare myself to non-perigee track state");

RecoVertex/KinematicFitPrimitives/interface/ParticleKinematicLinearizedTrackState.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class ParticleKinematicLinearizedTrackState : public LinearizedTrackState<6> {
8787

8888
RefCountedKinematicParticle particle() const;
8989

90-
bool operator==(LinearizedTrackState<6>& other) const override;
90+
bool operator==(const LinearizedTrackState<6>& other) const override;
9191

9292
bool hasError() const override;
9393

RecoVertex/KinematicFitPrimitives/src/ParticleKinematicLinearizedTrackState.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ TrackCharge ParticleKinematicLinearizedTrackState::charge() const { return part-
5555

5656
RefCountedKinematicParticle ParticleKinematicLinearizedTrackState::particle() const { return part; }
5757

58-
bool ParticleKinematicLinearizedTrackState::operator==(LinearizedTrackState<6>& other) const {
58+
bool ParticleKinematicLinearizedTrackState::operator==(const LinearizedTrackState<6>& other) const {
5959
const ParticleKinematicLinearizedTrackState* otherP =
6060
dynamic_cast<const ParticleKinematicLinearizedTrackState*>(&other);
6161
if (otherP == nullptr) {

RecoVertex/VertexTools/interface/PerigeeLinearizedTrackState.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ class PerigeeLinearizedTrackState final : public LinearizedTrackState<5> {
112112

113113
bool hasError() const override;
114114

115-
bool operator==(LinearizedTrackState<5>& other) const override;
115+
bool operator==(const LinearizedTrackState<5>& other) const override;
116116

117-
bool operator==(ReferenceCountingPointer<LinearizedTrackState<5> >& other) const;
117+
bool operator==(const ReferenceCountingPointer<LinearizedTrackState<5> >& other) const;
118118

119119
/** Creates the correct refitted state according to the results of the
120120
* track refit.

RecoVertex/VertexTools/src/PerigeeLinearizedTrackState.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ void PerigeeLinearizedTrackState::computeJacobians() const {
2626
jacobiansAvailable = true;
2727
}
2828

29-
bool PerigeeLinearizedTrackState::operator==(LinearizedTrackState<5>& other) const {
29+
bool PerigeeLinearizedTrackState::operator==(const LinearizedTrackState<5>& other) const {
3030
const PerigeeLinearizedTrackState* otherP = dynamic_cast<const PerigeeLinearizedTrackState*>(&other);
3131
if (otherP == nullptr) {
3232
throw VertexException("PerigeeLinearizedTrackState: don't know how to compare myself to non-perigee track state");
3333
}
3434
return (otherP->track() == theTrack);
3535
}
3636

37-
bool PerigeeLinearizedTrackState::operator==(ReferenceCountingPointer<LinearizedTrackState<5> >& other) const {
37+
bool PerigeeLinearizedTrackState::operator==(const ReferenceCountingPointer<LinearizedTrackState<5> >& other) const {
3838
const PerigeeLinearizedTrackState* otherP = dynamic_cast<const PerigeeLinearizedTrackState*>(other.get());
3939
if (otherP == nullptr) {
4040
throw VertexException("PerigeeLinearizedTrackState: don't know how to compare myself to non-perigee track state");

0 commit comments

Comments
 (0)