24 enum { RESIDUAL_X, RESIDUAL_Y, RESONEDGE_X, RESONEDGE_Y, RESOTHERBAD_X, RESOTHERBAD_Y };
39 SiPixelPhase1TrackResiduals::SiPixelPhase1TrackResiduals(
const edm::ParameterSet& iConfig)
45 trackerGeomToken_ = esConsumes<TrackerGeometry, TrackerDigiGeometryRecord>();
56 if (applyVertexCut_) {
62 std::vector<TrackerValidationVariables::AVTrackStruct> vtracks;
64 validator.fillTrackQuantities(
69 return (!applyVertexCut_ ||
74 for (
auto&
track : vtracks) {
75 for (
auto& it :
track.hits) {
76 auto id =
DetId(it.rawDetId);
77 auto isPixel =
id.subdetId() == 1 ||
id.subdetId() == 2;
84 if (it.isOnEdgePixel) {
89 if (it.isOtherBadPixel) {
90 histo[RESOTHERBAD_X].fill(it.resXprime,
id, &
iEvent);
91 histo[RESOTHERBAD_Y].fill(it.resYprime,
id, &
iEvent);