34 if (!inputPixel.
isValid())
return;
40 if (!inputStrip.
product()->data().empty())
46 bool hasClusters=
false;
53 for (it = inputPixel->begin(); it != inputPixel->end(); ++it) {
54 auto id =
DetId(it->detId());
60 int row = cluster.x()-0.5,
col = cluster.y()-0.5;
62 histo[
CHARGE].fill(
double(cluster.charge()),
id, &iEvent,
col, row);
63 histo[
SIZE ].fill(
double(cluster.size() ),
id, &iEvent,
col, row);
64 histo[
SIZEX ].fill(
double(cluster.sizeX() ),
id, &iEvent,
col, row);
65 histo[
SIZEY ].fill(
double(cluster.sizeY() ),
id, &iEvent,
col, row);
69 if (cluster.size()>1){
74 GlobalPoint clustgp = theGeomDet->surface().toGlobal(clustlp);
T getParameter(std::string const &) const
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
Geom::Phi< T > phi() const
SiPixelPhase1Clusters(const edm::ParameterSet &conf)
bool checktrigger(const edm::Event &iEvent, const edm::EventSetup &iSetup, const unsigned trgidx) const
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_
void analyze(const edm::Event &, const edm::EventSetup &) override