#include <TrajSeedMatcher.h>
|
float | getVal (size_t hitNr, float MatchInfo::*val) const |
|
Definition at line 142 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 386 of file TrajSeedMatcher.cc.
References detId(), dPhiNeg(), dPhiPos(), dRZNeg(), dRZPos(), Exception, matchInfo_, SiStripPI::max, and DetId::rawId().
Referenced by TrajSeedMatcher::SCHitMatch::SCHitMatch().
392 size_t nrHitsMax =
std::max(posCharge.size(),negCharge.size());
393 for(
size_t hitNr=0;hitNr<nrHitsMax;hitNr++){
394 DetId detIdPos = hitNr<posCharge.size() ? posCharge[hitNr].detId() :
DetId(0);
398 DetId detIdNeg = hitNr<negCharge.size() ? negCharge[hitNr].detId() :
DetId(0);
402 if(detIdPos!=detIdNeg && (detIdPos.
rawId()!=0 && detIdNeg.
rawId()!=0)){
403 cms::Exception(
"LogicError")<<
" error in "<<__FILE__<<
", "<<__LINE__<<
" hits to be combined have different detIDs, this should not be possible and nothing good will come of it";
406 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 |