32 if (!inputPixel.
isValid())
return;
38 if (inputStrip.
product()->data().size())
44 bool hasClusters=
false;
51 for (it = inputPixel->begin(); it != inputPixel->end(); ++it) {
52 auto id =
DetId(it->detId());
58 int row = cluster.x()-0.5,
col = cluster.y()-0.5;
63 histo[
CHARGE].fill(
double(cluster.charge()),
id, &iEvent,
col, row);
64 histo[
SIZE ].fill(
double(cluster.size() ),
id, &iEvent,
col, row);
65 histo[
SIZEX ].fill(
double(cluster.sizeX() ),
id, &iEvent,
col, row);
66 histo[
SIZEY ].fill(
double(cluster.sizeY() ),
id, &iEvent,
col, row);
70 if (cluster.size()>1){
75 GlobalPoint clustgp = theGeomDet->surface().toGlobal(clustlp);
T getParameter(std::string const &) const
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
void analyze(const edm::Event &, const edm::EventSetup &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
Geom::Phi< T > phi() const
SiPixelPhase1Clusters(const edm::ParameterSet &conf)
Measurement2DPoint MeasurementPoint
Measurement points are two-dimensional by default.
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > stripSrcToken_
T const * product() const
virtual LocalPoint localPosition(const MeasurementPoint &) const =0
std::vector< HistogramManager > histo
Pixel cluster – collection of neighboring pixels above threshold.
const TrackerGeomDet * idToDet(DetId) const override
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > pixelSrcToken_