126 bool trkGoesInsideOut = fabs(reco::deltaPhi<const GlobalVector, const GlobalPoint>(p3_trk, vert.position())) < 0.5*
M_PI;
129 LogDebug(
"CHP")<<
"VERT: r="<<vert.position().perp()<<
" z="<<vert.position().z();
144 unsigned int nHitBefore = 0;
150 DetInfo detInfo(subDet, layer);
153 if (this->
barrel(subDet)) {
155 if (vert.position().perp() > maxRZ && trkGoesInsideOut) nHitBefore++;
157 if (fabs(vert.position().z()) > maxRZ) nHitBefore++;
164 unsigned int nMissHitAfter = 0;
171 DetInfo detInfo(subDet, layer);
174 if (this->
barrel(subDet)) {
177 if (vert.position().perp() < minRZ || ! trkGoesInsideOut) nMissHitAfter++;
179 if (fabs(vert.position().z()) < minRZ) nMissHitAfter++;
185 result.hitsInFrontOfVert = nHitBefore;
186 result.missHitsAfterVert = nMissHitAfter;
static uint32_t getLayer(uint32_t pattern)
std::pair< uint32_t, uint32_t > DetInfo
static bool trackerHitFilter(uint32_t pattern)
int numberOfValidStripTOBHits() const
double eta() const
pseudorapidity of momentum vector
Result analyze(const edm::EventSetup &iSetup, const reco::Track &track)
static bool type_1_HitFilter(uint32_t pattern)
static uint32_t getSubStructure(uint32_t pattern)
const HitPattern & trackerExpectedHitsInner() const
Access the hit pattern counting (in the Tracker) the number of expected crossed layers before the fir...
static bool validHitFilter(uint32_t pattern)
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
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)
reco::HitPattern innerHitPattern
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)
uint32_t getHitPattern(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...