56 produces< ClusterRemovalInfo >();
81 stripInd.reserve(stripClustersNew->size());
82 pixelInd.reserve(pixelClustersNew->size());
87 if (oldDSstripNew.
empty())
continue;
89 uint16_t firstStripNew = clNew->firstStrip();
90 uint32_t idStripNew = itdetNew->
id();
93 uint32_t keyOld=99999;
95 const SiStripCluster * firstOffsetStripOld = & stripClustersOld->data().front();
97 if (itdetOld != stripClustersOld->end()) {
99 if (oldDSstripOld.
empty())
continue;
101 uint16_t firstStripOld = clOld->firstStrip();
102 uint32_t idStripOld = itdetOld->
id();
103 if (idStripNew==idStripOld && firstStripNew==firstStripOld) {
104 keyOld = ((&*clOld) - firstOffsetStripOld);
112 stripInd.push_back(keyOld);
120 if (oldDSpixelNew.
empty())
continue;
122 int minPixelRowNew = clNew->minPixelRow();
125 uint32_t keyOld=99999;
127 const SiPixelCluster * firstOffsetPixelOld = & pixelClustersOld->data().front();
129 if (itdetOld != pixelClustersOld->
end()) {
131 if (oldDSpixelOld.
empty())
continue;
133 int minPixelRowOld = clOld->minPixelRow();
134 if (minPixelRowNew==minPixelRowOld) {
135 keyOld = ((&*clOld) - firstOffsetPixelOld);
141 assert(keyOld!=99999);
143 pixelInd.push_back(keyOld);
T getParameter(std::string const &) const
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > pixelClustersNew_
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
const_iterator end(bool update=false) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void produce(edm::StreamID, edm::Event &iEvent, const edm::EventSetup &iSetup) const override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
data_type const * const_iterator
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > stripClustersOld_
id_type id(size_t cell) const
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > stripClustersNew_
#define DEFINE_FWK_MODULE(type)
~TopBottomClusterInfoProducer() override
std::vector< uint32_t > Indices
T const * product() const
Pixel cluster – collection of neighboring pixels above threshold.
TopBottomClusterInfoProducer(const edm::ParameterSet &iConfig)
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > pixelClustersOld_