ATLAS Offline Software
Loading...
Searching...
No Matches
TrackFitter.cxx File Reference
#include <algorithm>
#include <iostream>
#include <fstream>
#include <cmath>
#include "FPGATrackSimObjects/FPGATrackSimMultiTruth.h"
#include "GaudiKernel/MsgStream.h"
#include "AthenaKernel/getMessageSvc.h"
#include "FPGATrackSimAlgorithms/TrackFitter.h"
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 549 of file TrackFitter.cxx.

550{
551 for (FPGATrackSimTrack const & t: track_cands)
552 {
553 if (t.getChi2ndof() > 0 && t.getChi2ndof() < minchi2ndof)
554 return true;
555 }
556 return false;
557}