#include <FPGATrackSimSectorBank.h>
Definition at line 31 of file FPGATrackSimSectorBank.h.
◆ FPGATrackSimSectorBank()
FPGATrackSimSectorBank::FPGATrackSimSectorBank |
( |
std::string const & |
filepath | ) |
|
◆ findSector() [1/2]
Definition at line 121 of file FPGATrackSimSectorBank.cxx.
125 std::set<sector_t> sectors_good;
128 std::set<sector_t> sectors_new;
131 for (
auto it_m2s =
range.first; it_m2s !=
range.second; it_m2s++)
132 if (
layer == 0 || sectors_good.count(it_m2s->second))
133 sectors_new.insert(it_m2s->second);
135 if (sectors_new.empty())
return -1;
136 sectors_good = sectors_new;
139 assert(sectors_good.size() == 1);
140 return *(sectors_good.begin());
◆ findSector() [2/2]
Definition at line 146 of file FPGATrackSimSectorBank.cxx.
148 std::vector<module_t> modules(
hits.size());
150 for (
size_t i = 0;
i <
hits.size();
i++)
158 modules[
i] =
hits[
i][0]->getIdentifierHash();
162 std::unordered_map<unsigned, unsigned> hashCount;
163 for (
auto const &
h :
hits[
i]) hashCount[
h->getIdentifierHash()]++;
164 modules[
i] = std::max_element(hashCount.begin(), hashCount.end())->first;
◆ getModules()
◆ getNLayers()
size_t FPGATrackSimSectorBank::getNLayers |
( |
| ) |
const |
|
inline |
◆ getNQOverPtBins()
size_t FPGATrackSimSectorBank::getNQOverPtBins |
( |
| ) |
const |
|
inline |
◆ getNSectors()
size_t FPGATrackSimSectorBank::getNSectors |
( |
| ) |
const |
|
inline |
◆ getQOverPtBins()
const std::vector<double>& FPGATrackSimSectorBank::getQOverPtBins |
( |
| ) |
const |
|
inline |
◆ getSectors()
std::vector< sector_t > FPGATrackSimSectorBank::getSectors |
( |
unsigned |
layer, |
|
|
module_t |
module |
|
) |
| const |
◆ isAbsQOverPtBinning()
bool FPGATrackSimSectorBank::isAbsQOverPtBinning |
( |
| ) |
const |
|
inline |
◆ makeInverseMap()
void FPGATrackSimSectorBank::makeInverseMap |
( |
| ) |
|
|
private |
◆ readHeader()
void FPGATrackSimSectorBank::readHeader |
( |
std::ifstream & |
fin | ) |
|
|
private |
◆ readSectors()
void FPGATrackSimSectorBank::readSectors |
( |
std::ifstream & |
fin | ) |
|
|
private |
Definition at line 64 of file FPGATrackSimSectorBank.cxx.
69 int sector_file, UNUSED, coverage;
73 if (
line.empty() ||
line[0] ==
'!')
continue;
75 std::istringstream sline(
line);
77 ok = ok && (sline >> sector_file);
78 ok = ok && (sector_file == sector);
81 ok = ok && (sline >>
m_s2mMap[sector][
i]);
83 ok = ok && (sline >> UNUSED >> coverage);
◆ storeQOverPtBinning()
void FPGATrackSimSectorBank::storeQOverPtBinning |
( |
const std::vector< double > & |
qOverPtBins, |
|
|
bool |
absBinning |
|
) |
| |
◆ m_absQOverPtBinning
bool FPGATrackSimSectorBank::m_absQOverPtBinning = false |
|
private |
◆ m_m2sMap
std::vector<std::multimap<module_t, sector_t> > FPGATrackSimSectorBank::m_m2sMap |
|
private |
◆ m_nLayers
size_t FPGATrackSimSectorBank::m_nLayers = 0UL |
|
private |
◆ m_qOverPtBins
std::vector<double> FPGATrackSimSectorBank::m_qOverPtBins |
|
private |
◆ m_s2mMap
std::vector<std::vector<module_t> > FPGATrackSimSectorBank::m_s2mMap |
|
private |
The documentation for this class was generated from the following files: