#include <FPGATrackSimRoad.h>
Definition at line 29 of file FPGATrackSimRoad.h.
◆ FPGATrackSimRoad() [1/5]
FPGATrackSimRoad::FPGATrackSimRoad |
( |
| ) |
|
|
default |
◆ FPGATrackSimRoad() [2/5]
FPGATrackSimRoad::FPGATrackSimRoad |
( |
unsigned |
nLayers | ) |
|
|
inline |
◆ FPGATrackSimRoad() [3/5]
◆ FPGATrackSimRoad() [4/5]
◆ FPGATrackSimRoad() [5/5]
◆ ~FPGATrackSimRoad()
virtual FPGATrackSimRoad::~FPGATrackSimRoad |
( |
| ) |
|
|
virtualdefault |
◆ ClassDefNV()
◆ getAllHits()
◆ getEtaPatternID()
int FPGATrackSimRoad::getEtaPatternID |
( |
| ) |
const |
|
inline |
◆ getHitLayers()
◆ getHits()
◆ getHits_flat()
std::unordered_set< std::shared_ptr< const FPGATrackSimHit > > FPGATrackSimRoad::getHits_flat |
( |
| ) |
const |
Definition at line 113 of file FPGATrackSimRoad.cxx.
114 std::unordered_set<std::shared_ptr<const FPGATrackSimHit>>
hits;
116 for (
auto const& hit : layerHits)
◆ getNHitCombos()
size_t FPGATrackSimRoad::getNHitCombos |
( |
| ) |
const |
Definition at line 35 of file FPGATrackSimRoad.cxx.
39 std::vector<unsigned int> skipindices;
43 for (
size_t i = 1;
i <
l; ++
i) {
48 skipindices.push_back(
i);
55 for (
size_t i = 0;
i <
l; ++
i) {
61 size_t skipsize = skipindices.size();
62 for (
size_t k = 0;
k < skipsize; ++
k)
63 if (
i == skipindices[
k])
skip =
true;
69 if (
n > 0) combos *=
n;
◆ 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.
85 std::map<FPGATrackSimMultiTruth::Barcode, layer_bitmask_t> layer_map;
88 for (
auto const &
h :
hits)
89 for (
auto const&
x :
h->getTruth())
90 layer_map[
x.first] |= (1 <<
h->getLayer());
93 for (
auto const&
x : layer_map)
99 n += (
i < nPixel) ? 2 : 1;
100 if (
x.second & (1 <<
i))
101 w += (
i < nPixel) ? 2 : 1;
104 throw std::range_error(
"divide by zero in FPGATrackSimRoad::getTruth");
106 mt.
add(
x.first,
static_cast<float>(
w) /
n);
◆ 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 122 of file FPGATrackSimRoad.cxx.
124 for (
unsigned ilayer = 0; ilayer <
m_hits.size(); ilayer++) {
126 for (
unsigned ihit = 0; ihit <
m_hits[ilayer].size(); ihit++) {
127 m_hits_trans[ilayer][ihit] = std::make_shared<const FPGATrackSimHit>(
m_hits[ilayer][ihit]);
◆ setEtaPatternID()
void FPGATrackSimRoad::setEtaPatternID |
( |
int |
patternID | ) |
|
|
inline |
◆ setHitLayers()
◆ setHits() [1/2]
void FPGATrackSimRoad::setHits |
( |
std::vector< std::vector< std::shared_ptr< const FPGATrackSimHit >>> && |
hits | ) |
|
◆ 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_etaPatternID
int FPGATrackSimRoad::m_etaPatternID = -1 |
|
private |
◆ m_hit_layers
◆ m_hits
◆ m_hits_trans
◆ 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: