42 if (!tracks.isValid())
return;
44 for (
auto const &
track : *tracks) {
46 bool isBpixtrack =
false, isFpixtrack =
false;
48 auto const & trajParams =
track.extra()->trajParams();
50 for(
unsigned int h=0;
h<
track.recHitsSize();
h++){
53 if(!
hit->isValid())
continue;
56 uint32_t subdetid = (
id.subdetId());
62 if (!isBpixtrack && !isFpixtrack)
continue;
65 for(
unsigned int h=0;
h<
track.recHitsSize();
h++){
66 auto rechit = *(
hb+
h);
68 if(!rechit->isValid())
continue;
71 DetId id = rechit->geographicalId();
72 uint32_t subdetid = (
id.subdetId());
86 sizeX = (*clust).sizeX();
87 sizeY = (*clust).sizeY();
96 int row = (
int) mp.
x();
99 float rechit_x = lp.
x();
100 float rechit_y = lp.
y();
102 LocalError lerr = rechit->localPositionError();
103 float lerr_x =
sqrt(lerr.
xx());
104 float lerr_y =
sqrt(lerr.
yy());
116 histo[
POS].fill(rechit_x, rechit_y,
id, &iEvent);
120 if (clusterProbability > 0)
T getParameter(std::string 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)
void analyze(const edm::Event &, const edm::EventSetup &)
SiPixelPhase1RecHits(const edm::ParameterSet &conf)
virtual MeasurementPoint measurementPosition(const LocalPoint &) const =0
ClusterRef cluster() const
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
std::vector< HistogramManager > histo
edm::EDGetTokenT< reco::TrackCollection > srcToken_
const TrackerGeomDet * idToDet(DetId) const