#include <TrajSeedMatcher.h>
|
float | getVal (size_t hitNr, float MatchInfo::*val) const |
|
Definition at line 111 of file TrajSeedMatcher.h.
TrajSeedMatcher::SeedWithInfo::SeedWithInfo |
( |
const TrajectorySeed & |
seed, |
|
|
const std::vector< SCHitMatch > & |
posCharge, |
|
|
const std::vector< SCHitMatch > & |
negCharge, |
|
|
int |
nrValidLayers |
|
) |
| |
Definition at line 409 of file TrajSeedMatcher.cc.
References detId(), dPhiNeg(), dPhiPos(), dRZNeg(), dRZPos(), Exception, matchInfo_, SiStripPI::max, and DetId::rawId().
414 size_t nrHitsMax =
std::max(posCharge.size(), negCharge.size());
415 for (
size_t hitNr = 0; hitNr < nrHitsMax; hitNr++) {
416 DetId detIdPos = hitNr < posCharge.size() ? posCharge[hitNr].detId() :
DetId(0);
420 DetId detIdNeg = hitNr < negCharge.size() ? negCharge[hitNr].detId() :
DetId(0);
424 if (detIdPos != detIdNeg && (detIdPos.
rawId() != 0 && detIdNeg.
rawId() != 0)) {
426 <<
" error in " << __FILE__ <<
", " << __LINE__
427 <<
" hits to be combined have different detIDs, this should not be possible and nothing good will come of it";
430 matchInfo_.push_back(MatchInfo(detId, dRZPos, dRZNeg, dPhiPos, dPhiNeg));
DetId detId(size_t hitNr) const
float dRZPos(size_t hitNr) const
constexpr uint32_t rawId() const
get the raw id
std::vector< MatchInfo > matchInfo_
float dPhiPos(size_t hitNr) const
int nrValidLayers() const
float dRZNeg(size_t hitNr) const
const TrajectorySeed & seed_
float dPhiNeg(size_t hitNr) const
TrajSeedMatcher::SeedWithInfo::~SeedWithInfo |
( |
| ) |
|
|
default |
DetId TrajSeedMatcher::SeedWithInfo::detId |
( |
size_t |
hitNr | ) |
const |
|
inline |
float TrajSeedMatcher::SeedWithInfo::dPhiNeg |
( |
size_t |
hitNr | ) |
const |
|
inline |
float TrajSeedMatcher::SeedWithInfo::dPhiPos |
( |
size_t |
hitNr | ) |
const |
|
inline |
float TrajSeedMatcher::SeedWithInfo::dRZNeg |
( |
size_t |
hitNr | ) |
const |
|
inline |
float TrajSeedMatcher::SeedWithInfo::dRZPos |
( |
size_t |
hitNr | ) |
const |
|
inline |
float TrajSeedMatcher::SeedWithInfo::getVal |
( |
size_t |
hitNr, |
|
|
float MatchInfo::* |
val |
|
) |
| const |
|
inlineprivate |
const std::vector<MatchInfo>& TrajSeedMatcher::SeedWithInfo::matches |
( |
| ) |
const |
|
inline |
size_t TrajSeedMatcher::SeedWithInfo::nrMatchedHits |
( |
| ) |
const |
|
inline |
int TrajSeedMatcher::SeedWithInfo::nrValidLayers |
( |
| ) |
const |
|
inline |
std::vector<MatchInfo> TrajSeedMatcher::SeedWithInfo::matchInfo_ |
|
private |
int TrajSeedMatcher::SeedWithInfo::nrValidLayers_ |
|
private |