ATLAS Offline Software
Loading...
Searching...
No Matches
TrackFitter.cxx File Reference
#include "FPGATrackSimAlgorithms/TrackFitter.h"
#include "FPGATrackSimObjects/FPGATrackSimMultiTruth.h"
#include "GaudiKernel/MsgStream.h"
#include "AthenaKernel/getMessageSvc.h"
#include <numeric>
#include <memory>
#include <stdexcept>
Include dependency graph for TrackFitter.cxx:

Go to the source code of this file.

Functions

std::vector< FPGATrackSimTrack >::const_iterator getBestChi2 (std::vector< FPGATrackSimTrack > const &tracks)
bool hasGoodFit (std::vector< FPGATrackSimTrack > const &track_cands, float minchi2)

Function Documentation

◆ getBestChi2()

std::vector< FPGATrackSimTrack >::const_iterator getBestChi2 ( std::vector< FPGATrackSimTrack > const & tracks)

◆ hasGoodFit()

bool hasGoodFit ( std::vector< FPGATrackSimTrack > const & track_cands,
float minchi2 )

Definition at line 482 of file TrackFitter.cxx.

483{
484 for (FPGATrackSimTrack const & t: track_cands)
485 {
486 if (t.getChi2ndof() > 0 && t.getChi2ndof() < minchi2ndof)
487 return true;
488 }
489 return false;
490}