Definition at line 86 of file CheckHitPattern.cc.
References barrel(), TransientTrackBuilder::build(), Exception, geomInitDone_, reco::HitPattern::getLayer(), reco::HitPattern::getSubStructure(), trackingPlots::hp, mps_fire::i, caHitNtupletGeneratorKernels::if(), pixelTopology::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_2023v12_cff::track, reco::HitPattern::TRACK_HITS, reco::HitPattern::trackerHitFilter(), reco::TransientTrack::trajectoryStateClosestToPoint(), trkTool_, reco::HitPattern::validHitFilter(), and PV3DBase< T, PVType, FrameType >::z().
92 throw cms::Exception(
"CheckHitPattern::operator() called before CheckHitPattern::init");
100 bool trkGoesInsideOut =
101 fabs(reco::deltaPhi<const GlobalVector, const GlobalPoint>(p3_trk, vert.
position())) < 0.5 *
M_PI;
103 LogDebug(
"CHP") <<
"TRACK: in-->out ? " << trkGoesInsideOut <<
" dxy=" <<
track.dxy() <<
" sz=" <<
track.dz()
104 <<
" eta=" <<
track.eta() <<
" barrel hits=" <<
track.hitPattern().numberOfValidPixelHits() <<
"/" 105 <<
track.hitPattern().numberOfValidStripTIBHits() <<
"/" 106 <<
track.hitPattern().numberOfValidStripTOBHits();
114 unsigned int nHitBefore = 0;
136 unsigned int nMissHitAfter = 0;
149 if (vert.
position().
perp() < minRZ || !trkGoesInsideOut)
159 result.hitsInFrontOfVert = nHitBefore;
160 result.missHitsAfterVert = nMissHitAfter;
static uint32_t getLayer(uint16_t pattern)
const TransientTrackBuilder * trkTool_
std::pair< uint32_t, uint32_t > DetInfo
static bool missingHitFilter(uint16_t pattern)
static bool validHitFilter(uint16_t pattern)
reco::TransientTrack build(const reco::Track *p) const
constexpr std::array< uint8_t, layerIndexSize< TrackerTraits > > layer
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)
static bool barrel(uint32_t subDet)
GlobalPoint position() const