Definition at line 94 of file CheckHitPattern.cc.
References barrel(), TransientTrackBuilder::build(), Exception, geomInitDone_, reco::HitPattern::getLayer(), reco::HitPattern::getSubStructure(), trackingPlots::hp, mps_fire::i, if(), phase1PixelTopology::layer, LogDebug, M_PI, reco::HitPattern::MISSING_INNER_HITS, reco::HitPattern::missingHitFilter(), PV3DBase< T, PVType, FrameType >::perp(), VertexState::position(), rangeRorZ_, mps_fire::result, edm::second(), HLT_2022v12_cff::track, reco::HitPattern::TRACK_HITS, reco::HitPattern::trackerHitFilter(), reco::TransientTrack::trajectoryStateClosestToPoint(), trkTool_, reco::HitPattern::validHitFilter(), and PV3DBase< T, PVType, FrameType >::z().
100 throw cms::Exception(
"CheckHitPattern::operator() called before CheckHitPattern::init");
108 bool trkGoesInsideOut =
109 fabs(reco::deltaPhi<const GlobalVector, const GlobalPoint>(p3_trk, vert.
position())) < 0.5 *
M_PI;
111 LogDebug(
"CHP") <<
"TRACK: in-->out ? " << trkGoesInsideOut <<
" dxy=" <<
track.dxy() <<
" sz=" <<
track.dz()
112 <<
" eta=" <<
track.eta() <<
" barrel hits=" <<
track.hitPattern().numberOfValidPixelHits() <<
"/" 113 <<
track.hitPattern().numberOfValidStripTIBHits() <<
"/" 114 <<
track.hitPattern().numberOfValidStripTOBHits();
122 unsigned int nHitBefore = 0;
144 unsigned int nMissHitAfter = 0;
157 if (vert.
position().
perp() < minRZ || !trkGoesInsideOut)
167 result.hitsInFrontOfVert = nHitBefore;
168 result.missHitsAfterVert = nMissHitAfter;
static uint32_t getLayer(uint16_t pattern)
std::pair< uint32_t, uint32_t > DetInfo
static bool missingHitFilter(uint16_t pattern)
constexpr std::array< uint8_t, layerIndexSize > layer
static bool validHitFilter(uint16_t pattern)
reco::TransientTrack build(const reco::Track *p) const
U second(std::pair< T, U > const &p)
TrajectoryStateClosestToPoint trajectoryStateClosestToPoint(const GlobalPoint &point) const
static uint32_t getSubStructure(uint16_t pattern)
static bool trackerHitFilter(uint16_t pattern)
edm::ESHandle< TransientTrackBuilder > trkTool_
static bool barrel(uint32_t subDet)
GlobalPoint position() const