Skip to content

Commit

Permalink
Rename setVertex to setRecoVertex to match getRecoVertex. Added advan…
Browse files Browse the repository at this point in the history
…tage: it no longer shadows setVertex from base class.
  • Loading branch information
gartung committed Mar 28, 2018
1 parent ad57dde commit 9f060f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions DataFormats/V0Candidate/interface/V0Candidate.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ namespace reco{
const Vertex::CovarianceMatrix vtxCovariance() {
return recoVertex.covariance();
}
using LeafCandidate::setVertex;
void setVertex( const Vertex & vtxIn );
void setRecoVertex( const Vertex & vtxIn );
// virtual int pdgId() const { return PDGid; }
// void setPdgId( const int & Id ) { PDGid = Id; }
private:
Expand Down
2 changes: 1 addition & 1 deletion DataFormats/V0Candidate/src/V0Candidate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using namespace reco;

void V0Candidate::setVertex( const Vertex & vtxIn ) {
void V0Candidate::setRecoVertex( const Vertex & vtxIn ) {
recoVertex = vtxIn;
LeafCandidate::setVertex( vtxIn.position() );
}

0 comments on commit 9f060f4

Please sign in to comment.