ATLAS Offline Software
Functions
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 "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 457 of file TrackFitter.cxx.

458 {
459  for (FPGATrackSimTrack const & t: track_cands)
460  {
461  if (t.getChi2ndof() > 0 && t.getChi2ndof() < minchi2ndof)
462  return true;
463  }
464  return false;
465 }
FPGATrackSimTrack
Definition: FPGATrackSimTrack.h:16
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5