#include <TrajSeedMatcher.h>
|
float | getVal (size_t hitNr, float MatchInfo::*val) const |
|
Definition at line 77 of file TrajSeedMatcher.h.
◆ SeedWithInfo()
TrajSeedMatcher::SeedWithInfo::SeedWithInfo |
( |
const TrajectorySeed & |
seed, |
|
|
const std::vector< SCHitMatch > & |
posCharge, |
|
|
const std::vector< SCHitMatch > & |
negCharge, |
|
|
int |
nrValidLayers |
|
) |
| |
Definition at line 371 of file TrajSeedMatcher.cc.
376 size_t nrHitsMax =
std::max(posCharge.size(), negCharge.size());
377 for (
size_t hitNr = 0; hitNr < nrHitsMax; hitNr++) {
378 DetId detIdPos = hitNr < posCharge.size() ? posCharge[hitNr].detId :
DetId(0);
382 DetId detIdNeg = hitNr < negCharge.size() ? negCharge[hitNr].detId :
DetId(0);
386 if (detIdPos != detIdNeg && (detIdPos.
rawId() != 0 && detIdNeg.
rawId() != 0)) {
388 <<
" error in " << __FILE__ <<
", " << __LINE__
389 <<
" hits to be combined have different detIDs, this should not be possible and nothing good will come of it";
References detId(), dPhiNeg(), dPhiPos(), dRZNeg(), dRZPos(), Exception, matchInfo_, SiStripPI::max, and DetId::rawId().
◆ ~SeedWithInfo()
TrajSeedMatcher::SeedWithInfo::~SeedWithInfo |
( |
| ) |
|
|
default |
◆ detId()
DetId TrajSeedMatcher::SeedWithInfo::detId |
( |
size_t |
hitNr | ) |
const |
|
inline |
◆ dPhiNeg()
float TrajSeedMatcher::SeedWithInfo::dPhiNeg |
( |
size_t |
hitNr | ) |
const |
|
inline |
◆ dPhiPos()
float TrajSeedMatcher::SeedWithInfo::dPhiPos |
( |
size_t |
hitNr | ) |
const |
|
inline |
◆ dRZNeg()
float TrajSeedMatcher::SeedWithInfo::dRZNeg |
( |
size_t |
hitNr | ) |
const |
|
inline |
◆ dRZPos()
float TrajSeedMatcher::SeedWithInfo::dRZPos |
( |
size_t |
hitNr | ) |
const |
|
inline |
◆ getVal()
float TrajSeedMatcher::SeedWithInfo::getVal |
( |
size_t |
hitNr, |
|
|
float MatchInfo::* |
val |
|
) |
| const |
|
inlineprivate |
◆ matches()
const std::vector<MatchInfo>& TrajSeedMatcher::SeedWithInfo::matches |
( |
| ) |
const |
|
inline |
◆ nrMatchedHits()
size_t TrajSeedMatcher::SeedWithInfo::nrMatchedHits |
( |
| ) |
const |
|
inline |
◆ nrValidLayers()
int TrajSeedMatcher::SeedWithInfo::nrValidLayers |
( |
| ) |
const |
|
inline |
◆ seed()
◆ matchInfo_
std::vector<MatchInfo> TrajSeedMatcher::SeedWithInfo::matchInfo_ |
|
private |
◆ nrValidLayers_
int TrajSeedMatcher::SeedWithInfo::nrValidLayers_ |
|
private |
◆ seed_