26 enum { RESIDUAL_X, RESIDUAL_Y, RESONEDGE_X, RESONEDGE_Y, RESOTHERBAD_X, RESOTHERBAD_Y };
39 SiPixelPhase1TrackResiduals::SiPixelPhase1TrackResiduals(
const edm::ParameterSet& iConfig)
55 if (applyVertexCut_) {
61 std::vector<TrackerValidationVariables::AVTrackStruct> vtracks;
63 validator.fillTrackQuantities(
68 return (!applyVertexCut_ ||
73 for (
auto&
track : vtracks) {
74 for (
auto& it :
track.hits) {
75 auto id =
DetId(it.rawDetId);
76 auto isPixel =
id.subdetId() == 1 ||
id.subdetId() == 2;
83 if (it.isOnEdgePixel) {
88 if (it.isOtherBadPixel) {
89 histo[RESOTHERBAD_X].fill(it.resXprime,
id, &
iEvent);
90 histo[RESOTHERBAD_Y].fill(it.resYprime,
id, &
iEvent);