29 (
const std::string& ty,
const std::string& na,
const IInterface* pa)
33 declareInterface<IMuonCompetingClustersOnTrackCreator>(
this);
42 return StatusCode::SUCCESS;
45 std::unique_ptr<CompetingMuonClustersOnTrack>
48 if (prds.empty())
return nullptr;
51 auto rios = std::vector <const Muon::MuonClusterOnTrack* >() ;
52 auto assocProbs = std::vector < double >();
53 std::list< const Trk::PrepRawData* >::const_iterator
it = prds.begin();
54 std::list< const Trk::PrepRawData* >::const_iterator it_end = prds.end();
55 const double prob = 1./(errorScaleFactor*errorScaleFactor);
56 for( ;
it!=it_end;++
it ){
61 rios.push_back( cluster );
62 assocProbs.push_back(
prob );
64 return std::make_unique<CompetingMuonClustersOnTrack>( std::move(rios), std::move(assocProbs) );