#include <FPGATrackSimRoad.h>
Definition at line 30 of file FPGATrackSimRoad.h.
◆ FPGATrackSimRoad() [1/5]
| FPGATrackSimRoad::FPGATrackSimRoad |
( |
| ) |
|
|
default |
◆ FPGATrackSimRoad() [2/5]
| FPGATrackSimRoad::FPGATrackSimRoad |
( |
unsigned | nLayers | ) |
|
|
inline |
Definition at line 39 of file FPGATrackSimRoad.h.
std::vector< std::vector< std::shared_ptr< const FPGATrackSimHit > > > m_hits_trans
◆ FPGATrackSimRoad() [3/5]
Definition at line 41 of file FPGATrackSimRoad.h.
44 {
46 }
layer_bitmask_t m_wildcard_layers
layer_bitmask_t m_hit_layers
void setHits(std::vector< std::vector< std::shared_ptr< const FPGATrackSimHit > > > &&hits)
◆ FPGATrackSimRoad() [4/5]
◆ FPGATrackSimRoad() [5/5]
◆ ~FPGATrackSimRoad()
| virtual FPGATrackSimRoad::~FPGATrackSimRoad |
( |
| ) |
|
|
virtualdefault |
◆ ClassDefNV()
◆ getAllHits()
| const std::vector< std::vector< std::shared_ptr< const FPGATrackSimHit > > > & FPGATrackSimRoad::getAllHits |
( |
| ) |
const |
|
inline |
◆ getBinIdx()
| const std::vector< unsigned > & FPGATrackSimRoad::getBinIdx |
( |
| ) |
const |
|
inline |
Definition at line 125 of file FPGATrackSimRoad.h.
std::vector< unsigned > m_binIdx
(transient) [layer, hit#]
◆ getEtaPatternID()
| int FPGATrackSimRoad::getEtaPatternID |
( |
| ) |
const |
|
inline |
◆ getFitChi2()
| double FPGATrackSimRoad::getFitChi2 |
( |
| ) |
const |
|
inline |
◆ getFitChi2Eta()
| double FPGATrackSimRoad::getFitChi2Eta |
( |
| ) |
const |
|
inline |
◆ getFitChi2Phi()
| double FPGATrackSimRoad::getFitChi2Phi |
( |
| ) |
const |
|
inline |
◆ getFitParams()
◆ getHitLayers()
◆ getHits()
| const std::vector< std::shared_ptr< const FPGATrackSimHit > > & FPGATrackSimRoad::getHits |
( |
size_t | layer | ) |
const |
|
inline |
◆ getHits_flat()
| std::unordered_set< std::shared_ptr< const FPGATrackSimHit > > FPGATrackSimRoad::getHits_flat |
( |
| ) |
const |
Definition at line 113 of file FPGATrackSimRoad.cxx.
113 {
114 std::unordered_set<std::shared_ptr<const FPGATrackSimHit>>
hits;
116 for (auto const& hit : layerHits) {
118 }
119 }
121}
◆ getNHitCombos()
| size_t FPGATrackSimRoad::getNHitCombos |
( |
| ) |
const |
Definition at line 35 of file FPGATrackSimRoad.cxx.
36{
37 size_t combos = 1;
39 std::vector<unsigned int> skipindices;
40
41
42
43 for (
size_t i = 1;
i <
l; ++
i) {
48 skipindices.push_back(i);
50 }
51 }
52 }
53
54
55 for (
size_t i = 0;
i <
l; ++
i) {
58
61 size_t skipsize = skipindices.size();
62 for (
size_t k = 0;
k < skipsize; ++
k)
63 if (i == skipindices[k])
skip =
true;
64
66 }
68 }
69 if (n > 0) combos *=
n;
70 }
71
72 return combos;
73}
l
Printing final latex table to .tex output file.
◆ getNHitLayers()
| size_t FPGATrackSimRoad::getNHitLayers |
( |
| ) |
const |
|
inline |
◆ getNHits()
| size_t FPGATrackSimRoad::getNHits |
( |
| ) |
const |
◆ getNHits_layer()
| std::vector< size_t > FPGATrackSimRoad::getNHits_layer |
( |
| ) |
const |
◆ getNLayers()
| size_t FPGATrackSimRoad::getNLayers |
( |
| ) |
const |
|
inline |
◆ getNWCLayers()
| size_t FPGATrackSimRoad::getNWCLayers |
( |
| ) |
const |
|
inline |
◆ getPID()
| pid_t FPGATrackSimRoad::getPID |
( |
| ) |
const |
|
inline |
◆ getRoadID()
| int FPGATrackSimRoad::getRoadID |
( |
| ) |
const |
|
inline |
◆ getSector()
| sector_t FPGATrackSimRoad::getSector |
( |
| ) |
const |
|
inline |
◆ getSectorBin()
| int FPGATrackSimRoad::getSectorBin |
( |
| ) |
const |
|
inline |
◆ getSubRegion()
| int FPGATrackSimRoad::getSubRegion |
( |
| ) |
const |
|
inline |
◆ getTruth()
Definition at line 76 of file FPGATrackSimRoad.cxx.
77{
78
79
80 unsigned nPixel;
83 break;
84
85 std::map<FPGATrackSimMultiTruth::Barcode, layer_bitmask_t> layer_map;
86
88 for (auto const &h : hits)
89 for (
auto const&
x :
h->getTruth())
90 layer_map[
x.first] |= (1 <<
h->getLayer());
91
92 FPGATrackSimMultiTruth mt;
93 for (
auto const&
x : layer_map)
94 {
97 {
99 n += (
i < nPixel) ? 2 : 1;
100 if (
x.second & (1 << i))
101 w += (
i < nPixel) ? 2 : 1;
102 }
103 if (n == 0){
104 throw std::range_error("divide by zero in FPGATrackSimRoad::getTruth");
105 }
106 mt.
add(
x.first,
static_cast<float>(w) / n);
107 }
108
109 return mt;
110}
static const Attributes_t empty
void add(const FPGATrackSimMultiTruth::Barcode &code, const FPGATrackSimMultiTruth::Weight &weight)
◆ getWCLayers()
◆ getX()
| float FPGATrackSimRoad::getX |
( |
| ) |
const |
|
inline |
◆ getXBin()
| unsigned FPGATrackSimRoad::getXBin |
( |
| ) |
const |
|
inline |
◆ getY()
| float FPGATrackSimRoad::getY |
( |
| ) |
const |
|
inline |
◆ getYBin()
| unsigned FPGATrackSimRoad::getYBin |
( |
| ) |
const |
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ repopulateTransHits()
| void FPGATrackSimRoad::repopulateTransHits |
( |
| ) |
|
Definition at line 123 of file FPGATrackSimRoad.cxx.
123 {
125 for (
unsigned ilayer = 0; ilayer <
m_hits.size(); ilayer++) {
127 for (
unsigned ihit = 0; ihit <
m_hits[ilayer].size(); ihit++) {
128 m_hits_trans[ilayer][ihit] = std::make_shared<const FPGATrackSimHit>(
m_hits[ilayer][ihit]);
129 }
130 }
131}
std::vector< std::vector< FPGATrackSimHit > > m_hits
◆ setBinIdx()
| void FPGATrackSimRoad::setBinIdx |
( |
std::vector< unsigned > | x | ) |
|
|
inline |
◆ setEtaPatternID()
| void FPGATrackSimRoad::setEtaPatternID |
( |
int | patternID | ) |
|
|
inline |
◆ setFitChi2()
| void FPGATrackSimRoad::setFitChi2 |
( |
double | v | ) |
|
|
inline |
◆ setFitChi2_2d()
| void FPGATrackSimRoad::setFitChi2_2d |
( |
double | chi2_phi, |
|
|
double | chi2_eta ) |
|
inline |
◆ setFitParams()
◆ setHitLayers()
◆ setHits() [1/2]
| void FPGATrackSimRoad::setHits |
( |
std::vector< std::vector< std::shared_ptr< const FPGATrackSimHit > > > && | hits | ) |
|
Definition at line 141 of file FPGATrackSimRoad.cxx.
141 {
143 for (
unsigned i = 0;
i <
hits.size();++
i) {
145 }
146}
void setNLayers(unsigned layers)
◆ setHits() [2/2]
| void FPGATrackSimRoad::setHits |
( |
unsigned | layer, |
|
|
std::vector< std::shared_ptr< const FPGATrackSimHit > > && | hits ) |
◆ setNLayers()
| void FPGATrackSimRoad::setNLayers |
( |
unsigned | layers | ) |
|
|
inline |
◆ setPID()
| void FPGATrackSimRoad::setPID |
( |
pid_t | pid | ) |
|
|
inline |
◆ setRoadID()
| void FPGATrackSimRoad::setRoadID |
( |
int | roadID | ) |
|
|
inline |
◆ setSector()
| void FPGATrackSimRoad::setSector |
( |
sector_t | sector | ) |
|
|
inline |
◆ setSectorBin()
| void FPGATrackSimRoad::setSectorBin |
( |
int | sectorbin | ) |
|
|
inline |
◆ setSubRegion()
| void FPGATrackSimRoad::setSubRegion |
( |
int | v | ) |
|
|
inline |
◆ setWCLayers()
◆ setX()
| void FPGATrackSimRoad::setX |
( |
float | v | ) |
|
|
inline |
◆ setXBin()
| void FPGATrackSimRoad::setXBin |
( |
unsigned | v | ) |
|
|
inline |
◆ setY()
| void FPGATrackSimRoad::setY |
( |
float | v | ) |
|
|
inline |
◆ setYBin()
| void FPGATrackSimRoad::setYBin |
( |
unsigned | v | ) |
|
|
inline |
◆ operator<<
◆ m_binIdx
| std::vector<unsigned> FPGATrackSimRoad::m_binIdx |
|
private |
◆ m_etaPatternID
| int FPGATrackSimRoad::m_etaPatternID = -1 |
|
private |
◆ m_fitChi2
| double FPGATrackSimRoad::m_fitChi2 = 0 |
|
private |
◆ m_fitChi2_eta
| double FPGATrackSimRoad::m_fitChi2_eta = 0 |
|
private |
◆ m_fitChi2_phi
| double FPGATrackSimRoad::m_fitChi2_phi = 0 |
|
private |
◆ m_fitTrackPars
◆ m_hit_layers
◆ m_hits
◆ m_hits_trans
| std::vector<std::vector<std::shared_ptr<const FPGATrackSimHit> > > FPGATrackSimRoad::m_hits_trans |
|
private |
◆ m_pid
| pid_t FPGATrackSimRoad::m_pid = 0 |
|
private |
◆ m_roadID
| int FPGATrackSimRoad::m_roadID = 0 |
|
private |
◆ m_sector
◆ m_sectorbin
| int FPGATrackSimRoad::m_sectorbin = -1 |
|
private |
◆ m_subRegion
| int FPGATrackSimRoad::m_subRegion = 0 |
|
private |
◆ m_wildcard_layers
◆ m_x
| float FPGATrackSimRoad::m_x = 0 |
|
private |
◆ m_xBin
| unsigned FPGATrackSimRoad::m_xBin = 0 |
|
private |
◆ m_y
| float FPGATrackSimRoad::m_y = 0 |
|
private |
◆ m_yBin
| unsigned FPGATrackSimRoad::m_yBin = 0 |
|
private |
The documentation for this class was generated from the following files: