59 stripSrcToken_ = consumes<edmNew::DetSetVector<SiStripCluster>>(iConfig.getParameter<
edm::InputTag>(
"stripSrc"));
67 iEvent.getByToken(pixelSrcToken_, inputPixel);
75 histo[PIXEL_TO_STRIP_RATIO].fill(
76 (
double)inputPixel.
product()->data().size() / (double)
inputStrip.product()->data().size(),
82 bool hasClusters =
false;
87 for (
it = inputPixel->begin();
it != inputPixel->end(); ++
it) {
94 int row = cluster.x() - 0.5,
col = cluster.y() - 0.5;
95 const std::vector<SiPixelCluster::Pixel> pixelsVec = cluster.pixels();
97 for (
unsigned int i = 0;
i < pixelsVec.size(); ++
i) {
98 float pixx = pixelsVec[
i].x;
99 float pixy = pixelsVec[
i].y;
103 float pixel_charge = pixelsVec[
i].adc;
105 if (bigInX ==
true || bigInY ==
true) {
110 histo[NOTBIGPIXELCHARGE].fill(pixel_charge,
id, &
iEvent,
col, row);
113 histo[READOUT_CHARGE].fill(
double(cluster.charge()),
id, &
iEvent,
col, row);
114 histo[CHARGE].fill(
double(cluster.charge()),
id, &
iEvent,
col, row);
116 histo[SIZEX].fill(
double(cluster.sizeX()),
id, &
iEvent,
col, row);
117 histo[SIZEY].fill(
double(cluster.sizeY()),
id, &
iEvent,
col, row);
121 if (cluster.size() > 1) {
126 GlobalPoint clustgp = theGeomDet->surface().toGlobal(clustlp);
138 histo[NCLUSTERS].executePerEventHarvesting(&
iEvent);
139 histo[READOUT_NCLUSTERS].executePerEventHarvesting(&
iEvent);
140 histo[NCLUSTERSINCLUSIVE].executePerEventHarvesting(&
iEvent);
T getParameter(std::string const &) const
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
virtual LocalPoint localPosition(const MeasurementPoint &) const =0
Geom::Phi< T > phi() const
T const * product() const
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
Measurement2DPoint MeasurementPoint
Measurement points are two-dimensional by default.
virtual bool isItBigPixelInX(int ixbin) const =0
virtual bool isItBigPixelInY(int iybin) const =0
#define DEFINE_FWK_MODULE(type)
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
void analyze(edm::Event const &e, edm::EventSetup const &) override=0
Pixel cluster – collection of neighboring pixels above threshold.