ATLAS Offline Software
Functions
FPGATrackSimTrack.cxx File Reference
#include "FPGATrackSimObjects/FPGATrackSimTrack.h"
#include "FPGATrackSimObjects/FPGATrackSimConstants.h"
#include "FPGATrackSimObjects/FPGATrackSimFunctions.h"
#include <iostream>
#include <iomanip>
#include <cmath>
Include dependency graph for FPGATrackSimTrack.cxx:

Go to the source code of this file.

Functions

ostream & operator<< (ostream &out, const FPGATrackSimTrack &track)
 

Function Documentation

◆ operator<<()

ostream& operator<< ( std::ostream &  out,
const FPGATrackSimTrack track 
)

Definition at line 178 of file FPGATrackSimTrack.cxx.

179 {
180 
181  out << "TRACK: ID=" << std::left << setw(8) << track.m_trackID;
182  out << " SECTOR1=" << std::left << setw(8) << track.m_firstSectorID;
183  out << " BANK=" << std::left << setw(8) << track.m_bankID;
184  out << " BARCODE=" << std::left << setw(6) << track.m_barcode;
185  out << " BARCODE_F=" << std::left << setw(9) << track.m_barcode_frac;
186  out << " EVENT=" << std::left << setw(6) << track.m_eventindex;
187  out << " HITMAP=" << std::left << setw(8) << track.getHitMap();
188  out << " TYPE=" << std::left << setw(3) << track.m_typemask;
189  out << " NMISS=" << std::left << setw(3) << track.getNMissing();
190  out << "\n";
191  streamsize oldprec = out.precision();
192  out.precision(4);
193  out << " PHI=" << std::left << setw(10) << track.m_phi;
194  out.setf(ios_base::scientific);
195  out.precision(2);
196  out << " Q/PT=" << std::left << setw(10) << track.m_qoverpt;
197  out.unsetf(ios_base::scientific);
198  out.precision(4);
199  out << " d0=" << std::left << setw(10) << track.m_d0;
200  out << " ETA=" << std::left << setw(10) << track.m_eta;
201  out << " z0=" << std::left << setw(10) << track.m_z0;
202  out << " Chi2=" << std::left << setw(12) << track.m_chi2;
203  out << " OChi2=" << std::left << setw(12) << track.m_origchi2;
204 
205  out << endl;
206  out.precision(oldprec);
207 
208  out << endl;
209 
210  // print the hits
211  int iter = 0;
212  for (const auto& hit : track.m_hits) {
213  out << "Hit " << iter << ": " << hit << "\n";
214  iter++;
215  }
216 
217  return out;
218 }
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
xAOD::track
@ track
Definition: TrackingPrimitives.h:512