Skip to content

Commit

Permalink
Put ifndef around unused method for clang
Browse files Browse the repository at this point in the history
  • Loading branch information
thspeer authored and ktf committed May 14, 2014
1 parent aa0f7bb commit 218732d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions RecoVertex/MultiVertexFit/src/MultiVertexBSeeder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,21 @@ namespace {
return ret;
}

inline int verbose()
{
return 0;
}

#ifndef __clang__
inline GlobalPoint & operator += ( GlobalPoint & a, const GlobalPoint & b )
{
a = GlobalPoint ( a.x() + b.x(), a.y() + b.y(), a.z() + b.z() );
return a;
}
#endif

inline GlobalPoint & operator /= ( GlobalPoint & a, float b )
{
a = GlobalPoint ( a.x() / b, a.y() / b, a.z() / b );
return a;
}

#ifndef __clang__
inline bool element ( const reco::TransientTrack & rt, const TransientVertex & rv )
{
const vector < reco::TransientTrack > trks = rv.originalTracks();
Expand All @@ -57,6 +55,7 @@ namespace {
};
return false;
}
#endif

GlobalPoint toPoint ( const GlobalVector & v )
{
Expand Down Expand Up @@ -151,13 +150,15 @@ namespace {
return pts;
}

#ifndef __clang__
inline GlobalPoint computePos ( const GlobalTrajectoryParameters & jet,
double s )
{
GlobalPoint ret = jet.position();
ret += s * jet.momentum();
return ret;
}
#endif

TransientVertex pseudoVertexFit ( const Cluster1D < reco::TransientTrack > & src,
bool ascending=false, bool kalmanfit=false )
Expand Down

0 comments on commit 218732d

Please sign in to comment.