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 461 of file TrackFitter.cxx.

462 {
463  for (FPGATrackSimTrack const & t: track_cands)
464  {
465  if (t.getChi2ndof() > 0 && t.getChi2ndof() < minchi2ndof)
466  return true;
467  }
468  return false;
469 }
FPGATrackSimTrack
Definition: FPGATrackSimTrack.h:18
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5