Skip to content
Snippets Groups Projects
Commit cdd70108 authored by Walter Lampl's avatar Walter Lampl
Browse files

forward cleanUp call through MooTrackBuilder

parent c5d6c4e0
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!37460Fix memory leak in MuPatHitTool
......@@ -45,6 +45,8 @@ namespace Muon {
*/
virtual std::vector<std::unique_ptr<MuPatTrack> > find( MuPatCandidateBase& candidate, const std::vector<MuPatSegment*>& segments ) const = 0;
virtual void cleanUp() const {};
};
inline const InterfaceID& IMuonTrackBuilder::interfaceID()
......
......@@ -1518,4 +1518,9 @@ namespace Muon {
return newTracks;
}
void MooTrackBuilder::cleanUp() const {
m_candidateHandler->cleanUp();
}
}
......@@ -246,6 +246,9 @@ namespace Muon {
*/
virtual void refine( MuPatTrack& track ) const override;
void cleanUp() const;
private:
void removeDuplicateWithReference( std::unique_ptr<Trk::SegmentCollection>& segments,
......
......@@ -138,6 +138,11 @@ namespace Muon {
// clean up entry handler tool
m_candidateTool->cleanUp();
// clean up track builder tools
m_mooBTool->cleanUp();
m_trackBTool->cleanUp();
}
//-----------------------------------------------------------------------------------------------------------
......
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