ATLAS Offline Software
FPGATrackSimOfflineTrack.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 #include <iostream>
7 
8 
10  m_qoverpt(0.), m_eta(0.), m_phi(0.), m_d0(0.), m_z0(0.),
11  m_barcode(-1), m_barcode_frac(0.)
12 {}
13 
14 std::ostream& operator<<(std::ostream& s, const FPGATrackSimOfflineTrack& offline_t) {
15 
16  s << "pt: " << offline_t.getPt() << ", "
17  << "eta: " << offline_t.getEta() << ", "
18  << "phi: " << offline_t.getPhi() << ", "
19  << "d0: " << offline_t.getD0() << ", "
20  << "z0: " << offline_t.getZ0() << ", "
21  << "qoverpt: " << offline_t.getQOverPt() << ", "
22  << "barcode: " << offline_t.getBarcode() << ", "
23  << "barcode fraction: " << offline_t.getBarcodeFrac() << std::endl;
24 
25  std::vector<FPGATrackSimOfflineHit> hits = offline_t.getOfflineHits();
26  for (int j = 0; j < offline_t.nHits(); j++) {
27  s << " " << j << " " << hits[j] << "\n";
28  }
29  s << std::endl;
30 
31  return s;
32 }
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
TRTCalib_Extractor.hits
hits
Definition: TRTCalib_Extractor.py:35
FPGATrackSimOfflineTrack::getPt
double getPt() const
Definition: FPGATrackSimOfflineTrack.h:25
FPGATrackSimOfflineTrack::getZ0
double getZ0() const
Definition: FPGATrackSimOfflineTrack.h:29
FPGATrackSimOfflineTrack::getEta
double getEta() const
Definition: FPGATrackSimOfflineTrack.h:26
FPGATrackSimOfflineTrack.h
FPGATrackSimOfflineTrack::getPhi
double getPhi() const
Definition: FPGATrackSimOfflineTrack.h:27
FPGATrackSimOfflineTrack::FPGATrackSimOfflineTrack
FPGATrackSimOfflineTrack()
Definition: FPGATrackSimOfflineTrack.cxx:9
operator<<
std::ostream & operator<<(std::ostream &s, const FPGATrackSimOfflineTrack &offline_t)
Definition: FPGATrackSimOfflineTrack.cxx:14
FPGATrackSimOfflineTrack::getBarcode
unsigned long getBarcode() const
Definition: FPGATrackSimOfflineTrack.h:31
FPGATrackSimOfflineTrack::getQOverPt
double getQOverPt() const
Definition: FPGATrackSimOfflineTrack.h:30
FPGATrackSimOfflineTrack::nHits
int nHits() const
Definition: FPGATrackSimOfflineTrack.h:36
FPGATrackSimOfflineTrack
Definition: FPGATrackSimOfflineTrack.h:12
FPGATrackSimOfflineTrack::getOfflineHits
const std::vector< FPGATrackSimOfflineHit > & getOfflineHits() const
Definition: FPGATrackSimOfflineTrack.h:35
FPGATrackSimOfflineTrack::getD0
double getD0() const
Definition: FPGATrackSimOfflineTrack.h:28
FPGATrackSimOfflineTrack::getBarcodeFrac
double getBarcodeFrac() const
Definition: FPGATrackSimOfflineTrack.h:32