32 bool hasClusters=
false;
39 for (it = input->begin(); it != input->end(); ++it) {
40 auto id =
DetId(it->detId());
46 int row = cluster.x()-0.5,
col = cluster.y()-0.5;
48 histo[
CHARGE].fill(
double(cluster.charge()),
id, &iEvent,
col, row);
49 histo[
SIZE ].fill(
double(cluster.size() ),
id, &iEvent,
col, row);
50 histo[
SIZEX ].fill(
double(cluster.sizeX() ),
id, &iEvent,
col, row);
51 histo[
SIZEY ].fill(
double(cluster.sizeY() ),
id, &iEvent,
col, row);
55 if (cluster.size()>1){
60 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)
static std::string const input
Measurement2DPoint MeasurementPoint
Measurement points are two-dimensional by default.
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > srcToken_
virtual LocalPoint localPosition(const MeasurementPoint &) const =0
std::vector< HistogramManager > histo
Pixel cluster – collection of neighboring pixels above threshold.
const TrackerGeomDet * idToDet(DetId) const