112 bool trkGoesInsideOut = fabs(reco::deltaPhi<const GlobalVector, const GlobalPoint>(p3_trk, vert.
position())) < 0.5*
M_PI;
114 LogDebug(
"CHP") <<
"TRACK: in-->out ? " 116 <<
" dxy=" << track.
dxy()
117 <<
" sz=" <<track.
dz()
118 <<
" eta=" <<track.
eta()
131 ip = fixTrackHitPattern.
analyze(iSetup, track).innerHitPattern;
136 unsigned int nHitBefore = 0;
142 DetInfo detInfo(subDet, layer);
145 if (this->
barrel(subDet)) {
147 if (vert.
position().
perp() > maxRZ && trkGoesInsideOut) nHitBefore++;
149 if (fabs(vert.
position().
z()) > maxRZ) nHitBefore++;
156 unsigned int nMissHitAfter = 0;
163 DetInfo detInfo(subDet, layer);
166 if (this->
barrel(subDet)) {
169 if (vert.
position().
perp() < minRZ || ! trkGoesInsideOut) nMissHitAfter++;
171 if (fabs(vert.
position().
z()) < minRZ) nMissHitAfter++;
177 result.hitsInFrontOfVert = nHitBefore;
178 result.missHitsAfterVert = nMissHitAfter;
static uint32_t getLayer(uint16_t pattern)
std::pair< uint32_t, uint32_t > DetInfo
reco::TransientTrack build(const reco::Track *p) const
static bool missingHitFilter(uint16_t pattern)
GlobalPoint position() const
int numberOfValidStripTOBHits() const
static bool validHitFilter(uint16_t pattern)
double eta() const
pseudorapidity of momentum vector
Result analyze(const edm::EventSetup &iSetup, const reco::Track &track)
int numberOfAllHits(HitCategory category) const
static uint32_t getSubStructure(uint16_t pattern)
double dz() const
dz parameter (= dsz/cos(lambda)). This is the track z0 w.r.t (0,0,0) only if the refPoint is close to...
void init(const edm::EventSetup &iSetup)
static bool trackerHitFilter(uint16_t pattern)
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
TrajectoryStateClosestToPoint trajectoryStateClosestToPoint(const GlobalPoint &point) const
int numberOfValidStripTIBHits() const
static RZrangeMap rangeRorZ_
int numberOfValidPixelHits() const
edm::ESHandle< TransientTrackBuilder > trkTool_
static bool barrel(uint32_t subDet)
uint16_t getHitPattern(HitCategory category, int position) const
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...