42 SiPixelPhase1TrackResiduals::SiPixelPhase1TrackResiduals(
const edm::ParameterSet& iConfig) :
44 validator(iConfig, consumesCollector())
54 if( !checktrigger(iEvent,iSetup,DCS) )
return;
62 iEvent.
getByToken(offlinePrimaryVerticesToken_, vertices);
63 if (!vertices.isValid() || vertices->empty())
return;
66 std::vector<TrackerValidationVariables::AVTrackStruct> vtracks;
68 validator.fillTrackQuantities(iEvent, iSetup,
71 return (!applyVertexCut_ || (track.
pt() > 0.75
75 for (
auto& track : vtracks) {
76 for (
auto& it : track.hits) {
77 auto id =
DetId(it.rawDetId);
78 auto isPixel =
id.subdetId() == 1 ||
id.subdetId() == 2;
81 histo[RESIDUAL_X].fill(it.resXprime,
id, &iEvent);
82 histo[RESIDUAL_Y].fill(it.resYprime,
id, &iEvent);
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
virtual example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
double dxyError() const
error on dxy
#define DEFINE_FWK_MODULE(type)
double pt() const
track transverse momentum
Abs< T >::type abs(const T &t)
void analyze(edm::Event const &e, edm::EventSetup const &eSetup) override=0
bool isPixel(HitType hitType)
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...