Skip to content
Snippets Groups Projects
Commit bc5c8531 authored by Scott Snyder's avatar Scott Snyder Committed by Graeme Stewart
Browse files

'Making const some methods of IPixelToTPIDTool.' (TrkToolInterfaces-01-04-02)

	* Tagging TrkToolInterfaces-01-04-02.
	* TrkToolInterfaces/IPixelToTPIDTool.h: Making const some methods
	of IPixelToTPIDTool.

2016-12-12  scott snyder  <snyder@bnl.gov>

	* Tagging TrkToolInterfaces-01-04-01.
	* Make methods of ITrackScoringTool const.

2016-12-01 Edward.Moyse@cern.ch
	* Move the truth tools to const interfaces
	* Tagging as TrkToolInterfaces-01-04-00
parent b3aae5d5
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ namespace Trk {
*/
virtual void buildDetailedTrackTruth(DetailedTrackTruthCollection *output,
const TrackCollection& tracks,
const std::vector<const PRD_MultiTruthCollection*>& prdTruth) = 0;
const std::vector<const PRD_MultiTruthCollection*>& prdTruth) const = 0;
};
} // namespace Trk
......
......@@ -37,7 +37,7 @@ namespace Trk {
* The range of return values is [0., 1.], with larger values corresponding
* to better matches.
*/
virtual double trackTruthSimilarity(const DetailedTrackTruth& dtt) = 0;
virtual double trackTruthSimilarity(const DetailedTrackTruth& dtt) const = 0;
};
......
......@@ -32,8 +32,8 @@ namespace Trk {
virtual float dEdx(const Trk::Track& track) = 0;
virtual int numberOfUsedHitsdEdx() = 0;
virtual int numberOfUsedIBLOverflowHits() = 0;
virtual std::vector<float> getLikelihoods(double dedx, double p, int nGoodPixels) = 0;
virtual float getMass(double dedx, double p, int nGoodPixels) = 0;
virtual std::vector<float> getLikelihoods(double dedx, double p, int nGoodPixels) const = 0;
virtual float getMass(double dedx, double p, int nGoodPixels) const = 0;
};
inline const InterfaceID& Trk::IPixelToTPIDTool::interfaceID()
......
......@@ -27,8 +27,8 @@ namespace Trk {
/** create a score based on how good the passed track is
@param track must be a valid reference (i.e. the track must exist)
@return the returned TrackScore should be non-zero for a valid track.*/
virtual TrackScore score( const Track& track , const bool suppressHoleSearch = false )=0;
virtual TrackScore simpleScore( const Track& track, const TrackSummary& summary )=0;
virtual TrackScore score( const Track& track , const bool suppressHoleSearch = false ) const = 0;
virtual TrackScore simpleScore( const Track& track, const TrackSummary& summary ) const = 0;
};
}//end of ns
......
......@@ -29,13 +29,13 @@ namespace Trk {
/** Build a TruthTrajectory this particle belongs to.
* The result may be an empty TruthTrajectory (in case input did not pass the cuts).
*/
virtual void buildTruthTrajectory(TruthTrajectory *result, const HepMC::GenParticle *input) = 0;
virtual void buildTruthTrajectory(TruthTrajectory *result, const HepMC::GenParticle *input) const = 0;
/** Previous particle on the truth trajectory or 0 */
virtual const HepMC::GenParticle *getMother(const HepMC::GenParticle *part) = 0;
virtual const HepMC::GenParticle *getMother(const HepMC::GenParticle *part) const = 0;
/** Next particle on the truth trajectory or 0 */
virtual const HepMC::GenParticle *getDaughter(const HepMC::GenParticle *part) = 0;
virtual const HepMC::GenParticle *getDaughter(const HepMC::GenParticle *part) const = 0;
};
} // namespace Trk
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment