#include <FPGATrackSimTrack.h>
Definition at line 18 of file FPGATrackSimTrack.h.
◆ FPGATrackSimTrack()
FPGATrackSimTrack::FPGATrackSimTrack |
( |
| ) |
|
|
default |
◆ ~FPGATrackSimTrack()
FPGATrackSimTrack::~FPGATrackSimTrack |
( |
| ) |
|
|
virtual |
◆ barcode()
unsigned long FPGATrackSimTrack::barcode |
( |
| ) |
const |
|
inline |
◆ calculateTruth()
void FPGATrackSimTrack::calculateTruth |
( |
| ) |
|
Definition at line 221 of file FPGATrackSimTrack.cxx.
223 vector<FPGATrackSimMultiTruth> mtv;
224 mtv.reserve(
m_hits.size());
227 for (
const auto& thishit :
m_hits)
229 if (thishit.isReal())
232 this_mt.assign_equal_normalization();
233 if (thishit.isPixel())
234 for (
auto&
x : this_mt)
236 mtv.push_back(this_mt);
245 const bool ok = mt.best(tbarcode, tfrac);
◆ computeIdealCoords()
std::vector< float > FPGATrackSimTrack::computeIdealCoords |
( |
unsigned |
ilayer | ) |
const |
◆ getBankID()
int FPGATrackSimTrack::getBankID |
( |
| ) |
const |
|
inline |
◆ getBarcode()
◆ getBarcodeFrac()
float FPGATrackSimTrack::getBarcodeFrac |
( |
| ) |
const |
|
inline |
◆ getChi2()
float FPGATrackSimTrack::getChi2 |
( |
| ) |
const |
|
inline |
◆ getChi2ndof()
float FPGATrackSimTrack::getChi2ndof |
( |
| ) |
const |
|
inline |
◆ getCoords()
std::vector< float > FPGATrackSimTrack::getCoords |
( |
unsigned |
ilayer | ) |
const |
Definition at line 20 of file FPGATrackSimTrack.cxx.
22 std::vector<float> coords;
23 if (ilayer >=
m_hits.size())
24 throw std::range_error(
"FPGATrackSimTrack::getCoords() out of bounds");
◆ getD0()
float FPGATrackSimTrack::getD0 |
( |
| ) |
const |
|
inline |
◆ getDoDeltaGPhis()
bool FPGATrackSimTrack::getDoDeltaGPhis |
( |
| ) |
const |
|
inline |
◆ getEta()
float FPGATrackSimTrack::getEta |
( |
| ) |
const |
|
inline |
◆ getEtaCoord()
float FPGATrackSimTrack::getEtaCoord |
( |
int |
ilayer | ) |
const |
Definition at line 57 of file FPGATrackSimTrack.cxx.
59 if (coords.size() > 0) {
63 throw std::range_error(
"FPGATrackSimTrack::getCoord(layer,coord) out of bounds");
◆ getEventIndex()
signed long FPGATrackSimTrack::getEventIndex |
( |
| ) |
const |
|
inline |
◆ getFirstSectorID()
int FPGATrackSimTrack::getFirstSectorID |
( |
| ) |
const |
|
inline |
◆ getFPGATrackSimHits()
◆ getHitMap()
unsigned int FPGATrackSimTrack::getHitMap |
( |
| ) |
const |
|
inline |
◆ getHoughX()
float FPGATrackSimTrack::getHoughX |
( |
| ) |
const |
|
inline |
◆ getHoughXBin()
unsigned FPGATrackSimTrack::getHoughXBin |
( |
| ) |
const |
|
inline |
◆ getHoughY()
float FPGATrackSimTrack::getHoughY |
( |
| ) |
const |
|
inline |
◆ getHoughYBin()
unsigned FPGATrackSimTrack::getHoughYBin |
( |
| ) |
const |
|
inline |
◆ getIdealRadius()
double FPGATrackSimTrack::getIdealRadius |
( |
int |
ilayer | ) |
const |
|
inline |
◆ getNCoords()
int FPGATrackSimTrack::getNCoords |
( |
| ) |
const |
◆ getNMissing()
int FPGATrackSimTrack::getNMissing |
( |
| ) |
const |
|
inline |
◆ getOrigChi2()
float FPGATrackSimTrack::getOrigChi2 |
( |
| ) |
const |
|
inline |
◆ getOrigChi2ndof()
float FPGATrackSimTrack::getOrigChi2ndof |
( |
| ) |
const |
|
inline |
◆ getParameter()
float FPGATrackSimTrack::getParameter |
( |
int |
ipar | ) |
const |
◆ getPatternID()
int FPGATrackSimTrack::getPatternID |
( |
| ) |
const |
|
inline |
◆ getPhi()
float FPGATrackSimTrack::getPhi |
( |
| ) |
const |
|
inline |
◆ getPhiCoord()
float FPGATrackSimTrack::getPhiCoord |
( |
int |
ilayer | ) |
const |
Definition at line 67 of file FPGATrackSimTrack.cxx.
77 unsigned target_coord = 1;
82 if (coords.size() > target_coord) {
83 return coords.at(target_coord);
86 throw std::range_error(
"FPGATrackSimTrack::getCoord(layer,coord) out of bounds");
◆ getPt()
float FPGATrackSimTrack::getPt |
( |
| ) |
const |
|
inline |
◆ getQOverPt()
float FPGATrackSimTrack::getQOverPt |
( |
| ) |
const |
|
inline |
◆ getRegion()
int FPGATrackSimTrack::getRegion |
( |
| ) |
const |
|
inline |
◆ getSecondSectorID()
int FPGATrackSimTrack::getSecondSectorID |
( |
| ) |
const |
|
inline |
◆ getSubRegion()
int FPGATrackSimTrack::getSubRegion |
( |
| ) |
const |
|
inline |
◆ getTheta()
float FPGATrackSimTrack::getTheta |
( |
| ) |
const |
|
inline |
◆ getTrackCorrType()
◆ getTrackID()
int FPGATrackSimTrack::getTrackID |
( |
| ) |
const |
|
inline |
◆ getTrackStage()
TrackStage FPGATrackSimTrack::getTrackStage |
( |
| ) |
const |
|
inline |
◆ getTypeMask()
unsigned int FPGATrackSimTrack::getTypeMask |
( |
| ) |
const |
|
inline |
◆ getUniqueID()
◆ getZ0()
float FPGATrackSimTrack::getZ0 |
( |
| ) |
const |
|
inline |
◆ isValidCand()
bool FPGATrackSimTrack::isValidCand |
( |
| ) |
const |
|
inline |
◆ passedOR()
unsigned int FPGATrackSimTrack::passedOR |
( |
| ) |
const |
|
inline |
◆ setBankID()
void FPGATrackSimTrack::setBankID |
( |
int |
v | ) |
|
|
inline |
◆ setBarcode()
◆ setBarcodeFrac()
void FPGATrackSimTrack::setBarcodeFrac |
( |
const float & |
v | ) |
|
|
inline |
◆ setChi2()
void FPGATrackSimTrack::setChi2 |
( |
float |
v | ) |
|
|
inline |
◆ setD0()
void FPGATrackSimTrack::setD0 |
( |
float |
v | ) |
|
|
inline |
◆ setDoDeltaGPhis()
void FPGATrackSimTrack::setDoDeltaGPhis |
( |
bool |
v | ) |
|
|
inline |
◆ setEta()
void FPGATrackSimTrack::setEta |
( |
float |
v | ) |
|
|
inline |
◆ setEventIndex()
void FPGATrackSimTrack::setEventIndex |
( |
const signed long & |
v | ) |
|
|
inline |
◆ setFirstSectorID()
void FPGATrackSimTrack::setFirstSectorID |
( |
int |
v | ) |
|
|
inline |
◆ setFPGATrackSimHit()
Definition at line 99 of file FPGATrackSimTrack.cxx.
104 throw std::range_error(
"FPGATrackSimTrack::setFPGATrackSimHit() out of bounds");
◆ setHitMap()
void FPGATrackSimTrack::setHitMap |
( |
unsigned int |
v | ) |
|
|
inline |
◆ setHoughX()
void FPGATrackSimTrack::setHoughX |
( |
float |
v | ) |
|
|
inline |
◆ setHoughXBin()
void FPGATrackSimTrack::setHoughXBin |
( |
unsigned |
v | ) |
|
|
inline |
◆ setHoughY()
void FPGATrackSimTrack::setHoughY |
( |
float |
v | ) |
|
|
inline |
◆ setHoughYBin()
void FPGATrackSimTrack::setHoughYBin |
( |
unsigned |
v | ) |
|
|
inline |
◆ setIdealRadii()
void FPGATrackSimTrack::setIdealRadii |
( |
const std::vector< double > & |
v | ) |
|
|
inline |
◆ setNLayers()
void FPGATrackSimTrack::setNLayers |
( |
int |
dim | ) |
|
set the number of layers in the track.
=0 is used to clear the track
Definition at line 108 of file FPGATrackSimTrack.cxx.
◆ setNMissing()
void FPGATrackSimTrack::setNMissing |
( |
int |
v | ) |
|
|
inline |
◆ setOrigChi2()
void FPGATrackSimTrack::setOrigChi2 |
( |
float |
v | ) |
|
|
inline |
◆ setParameter()
void FPGATrackSimTrack::setParameter |
( |
int |
ipar, |
|
|
float |
val |
|
) |
| |
◆ setPars()
◆ setPassedOR()
void FPGATrackSimTrack::setPassedOR |
( |
unsigned int |
code | ) |
|
◆ setPatternID()
void FPGATrackSimTrack::setPatternID |
( |
int |
v | ) |
|
|
inline |
◆ setPhi()
void FPGATrackSimTrack::setPhi |
( |
float |
v, |
|
|
bool |
ForceRange = true |
|
) |
| |
◆ setQOverPt()
void FPGATrackSimTrack::setQOverPt |
( |
float |
v | ) |
|
|
inline |
◆ setSecondSectorID()
void FPGATrackSimTrack::setSecondSectorID |
( |
int |
v | ) |
|
|
inline |
◆ setSubRegion()
void FPGATrackSimTrack::setSubRegion |
( |
unsigned |
v | ) |
|
|
inline |
◆ setTrackCorrType()
◆ setTrackID()
void FPGATrackSimTrack::setTrackID |
( |
int |
v | ) |
|
|
inline |
◆ setTrackStage()
void FPGATrackSimTrack::setTrackStage |
( |
TrackStage |
v | ) |
|
|
inline |
◆ setTypeMask()
void FPGATrackSimTrack::setTypeMask |
( |
unsigned int |
v | ) |
|
|
inline |
◆ setUniqueID()
◆ setValidCand()
void FPGATrackSimTrack::setValidCand |
( |
bool |
v | ) |
|
|
inline |
◆ setZ0()
void FPGATrackSimTrack::setZ0 |
( |
float |
v | ) |
|
|
inline |
◆ operator<<
Definition at line 178 of file FPGATrackSimTrack.cxx.
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();
191 streamsize oldprec =
out.precision();
193 out <<
" PHI=" << std::left << setw(10) <<
track.m_phi;
194 out.setf(ios_base::scientific);
196 out <<
" Q/PT=" << std::left << setw(10) <<
track.m_qoverpt;
197 out.unsetf(ios_base::scientific);
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;
206 out.precision(oldprec);
212 for (
const auto& hit :
track.m_hits) {
213 out <<
"Hit " << iter <<
": " << hit <<
"\n";
◆ m_bankID
int FPGATrackSimTrack::m_bankID = -1 |
|
private |
◆ m_barcode
◆ m_barcode_frac
float FPGATrackSimTrack::m_barcode_frac = 0.0F |
|
private |
◆ m_chi2
float FPGATrackSimTrack::m_chi2 = 0.0F |
|
private |
◆ m_d0
float FPGATrackSimTrack::m_d0 = 0.0F |
|
private |
◆ m_doDeltaGPhis
bool FPGATrackSimTrack::m_doDeltaGPhis = false |
|
private |
◆ m_eta
float FPGATrackSimTrack::m_eta = 0.0F |
|
private |
◆ m_eventindex
signed long FPGATrackSimTrack::m_eventindex = -1 |
|
private |
◆ m_firstSectorID
int FPGATrackSimTrack::m_firstSectorID = -1 |
|
private |
◆ m_hitmap
unsigned int FPGATrackSimTrack::m_hitmap = 0 |
|
private |
◆ m_hits
◆ m_houghX
float FPGATrackSimTrack::m_houghX = 0.0F |
|
private |
◆ m_houghY
float FPGATrackSimTrack::m_houghY = 0.0F |
|
private |
◆ m_IdealGeoCorr
int FPGATrackSimTrack::m_IdealGeoCorr = 0 |
|
private |
◆ m_idealRadii
std::vector<double> FPGATrackSimTrack::m_idealRadii |
|
private |
◆ m_isValidCand
bool FPGATrackSimTrack::m_isValidCand = true |
|
private |
◆ m_nmissing
unsigned int FPGATrackSimTrack::m_nmissing = 0 |
|
private |
◆ m_ORcode
unsigned int FPGATrackSimTrack::m_ORcode = 1 |
|
private |
◆ m_origchi2
float FPGATrackSimTrack::m_origchi2 = 0.0F |
|
private |
◆ m_patternID
int FPGATrackSimTrack::m_patternID = 0 |
|
private |
◆ m_phi
float FPGATrackSimTrack::m_phi = 0.0F |
|
private |
◆ m_qoverpt
float FPGATrackSimTrack::m_qoverpt = 0.0F |
|
private |
◆ m_secondSectorID
int FPGATrackSimTrack::m_secondSectorID = -1 |
|
private |
◆ m_subregion
int FPGATrackSimTrack::m_subregion = 0 |
|
private |
◆ m_trackCorrType
◆ m_trackID
int FPGATrackSimTrack::m_trackID = -1 |
|
private |
◆ m_trackStage
◆ m_typemask
unsigned int FPGATrackSimTrack::m_typemask = 0 |
|
private |
◆ m_uniqueID
◆ m_xBin
unsigned FPGATrackSimTrack::m_xBin = 0 |
|
private |
◆ m_yBin
unsigned FPGATrackSimTrack::m_yBin = 0 |
|
private |
◆ m_z0
float FPGATrackSimTrack::m_z0 = 0.0F |
|
private |
The documentation for this class was generated from the following files: