|
ATLAS Offline Software
|
Go to the documentation of this file.
26 if (
const auto *
const quality=
track.fitQuality(); quality and quality->numberDoF()>0 ){
27 result = quality->chiSquared()/quality->numberDoF();
32 std::unique_ptr<Trk::Track>
37 auto vecTsos = std::make_unique<Trk::TrackStates>();
41 for ( ; iTsos != iTsosEnd ; ++iTsos) {
43 vecTsos->push_back(newTsos);
45 if ((*iTsos)->fitQualityOnSurface()) {
46 reXi2 += (*iTsos)->fitQualityOnSurface().chiSquared();
47 nDF += (*iTsos)->fitQualityOnSurface().numberDoF();
51 auto fq = std::make_unique<Trk::FitQuality>(reXi2,nDF-5);
53 info.addPatternRecoAndProperties(
track.info());
56 info.addPatternReco(newInfo);
57 return std::make_unique<Trk::Track>(
info, std::move(vecTsos), std::move(fq));
61 static std::atomic<std::uint32_t> uid { 0 };
Contains information about the 'fitter' of this track.
Const iterator class for DataVector/DataList.
TrackFilterCategory categoriseTrack(const Trk::Track &track, const Trk::TrackScore &score, const bool dropDuplicates, const AssociationTool &associate, AssociationMap &map, DuplicationCheckSet &set)
@ SimpleAmbiguityProcessorTool
Added because of compilation problems.
float calculateFitQuality(const Trk::Track &track)
std::unique_ptr< Trk::Track > createNewFitQualityTrack(const Trk::Track &track)
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
represents the track state (measurement, material, fit parameters and quality) at a surface.
std::set< std::vector< const Trk::PrepRawData * > > DuplicationCheckSet
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
An STL vector of pointers that by default owns its pointed-to elements.
ToolHandle< Trk::IPRDtoTrackMapTool > AssociationTool
void setPatternRecognitionInfo(const TrackPatternRecoInfo &patternReco)
Method setting the pattern recognition algorithm.
@ Measurement
This is a measurement, and will at least contain a Trk::MeasurementBase.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.