43 if (!tracks.isValid())
return;
51 for (
auto const &
track : *tracks) {
55 bool isBpixtrack =
false, isFpixtrack =
false;
57 auto const & trajParams =
track.extra()->trajParams();
59 for(
unsigned int h=0;
h<
track.recHitsSize();
h++){
62 if(!
hit->isValid())
continue;
65 uint32_t subdetid = (
id.subdetId());
71 if (!isBpixtrack && !isFpixtrack)
continue;
74 for(
unsigned int h=0;
h<
track.recHitsSize();
h++){
75 auto rechit = *(
hb+
h);
77 if(!rechit->isValid())
continue;
80 DetId id = rechit->geographicalId();
81 uint32_t subdetid = (
id.subdetId());
95 sizeX = (*clust).sizeX();
96 sizeY = (*clust).sizeY();
105 int row = (
int) mp.
x();
108 float rechit_x = lp.
x();
109 float rechit_y = lp.
y();
111 LocalError lerr = rechit->localPositionError();
112 float lerr_x =
sqrt(lerr.
xx());
113 float lerr_y =
sqrt(lerr.
yy());
125 histo[
POS].fill(rechit_x, rechit_y,
id, &iEvent);
129 if (clusterProbability > 0)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
float clusterProbability(unsigned int flags=0) const
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
SiPixelPhase1RecHits(const edm::ParameterSet &conf)
virtual MeasurementPoint measurementPosition(const LocalPoint &) const =0
Abs< T >::type abs(const T &t)
ClusterRef cluster() const
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
std::vector< HistogramManager > histo
const TrackerGeomDet * idToDet(DetId) const override
edm::EDGetTokenT< reco::VertexCollection > offlinePrimaryVerticesToken_
void analyze(const edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< reco::TrackCollection > srcToken_