49 stripClustersOld_(iConfig.getParameter<
InputTag>(
"stripClustersOld")),
50 pixelClustersOld_(iConfig.getParameter<
InputTag>(
"pixelClustersOld")),
51 stripClustersNew_(iConfig.getParameter<
InputTag>(
"stripClustersNew")),
52 pixelClustersNew_(iConfig.getParameter<
InputTag>(
"pixelClustersNew"))
54 produces< ClusterRemovalInfo >();
76 auto_ptr<ClusterRemovalInfo> cri(
new ClusterRemovalInfo(pixelClustersOld, stripClustersOld));
79 stripInd.reserve(stripClustersNew->size());
80 pixelInd.reserve(pixelClustersNew->size());
85 if (oldDSstripNew.
empty())
continue;
87 uint16_t firstStripNew = clNew->firstStrip();
88 uint32_t idStripNew = itdetNew->
id();
91 uint32_t keyOld=99999;
93 const SiStripCluster * firstOffsetStripOld = & stripClustersOld->data().front();
95 if (itdetOld != stripClustersOld->end()) {
97 if (oldDSstripOld.
empty())
continue;
99 uint16_t firstStripOld = clOld->firstStrip();
100 uint32_t idStripOld = itdetOld->
id();
101 if (idStripNew==idStripOld && firstStripNew==firstStripOld) {
102 keyOld = ((&*clOld) - firstOffsetStripOld);
110 stripInd.push_back(keyOld);
118 if (oldDSpixelNew.
empty())
continue;
120 int minPixelRowNew = clNew->minPixelRow();
123 uint32_t keyOld=99999;
125 const SiPixelCluster * firstOffsetPixelOld = & pixelClustersOld->data().front();
127 if (itdetOld != pixelClustersOld->end()) {
129 if (oldDSpixelOld.
empty())
continue;
131 int minPixelRowOld = clOld->minPixelRow();
132 if (minPixelRowNew==minPixelRowOld) {
133 keyOld = ((&*clOld) - firstOffsetPixelOld);
139 assert(keyOld!=99999);
141 pixelInd.push_back(keyOld);
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
#define DEFINE_FWK_MODULE(type)
edm::InputTag pixelClustersOld_
data_type const * const_iterator
edm::InputTag stripClustersNew_
id_type id(size_t cell) const
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
~TopBottomClusterInfoProducer()
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup)
std::vector< uint32_t > Indices
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
edm::InputTag stripClustersOld_
edm::InputTag pixelClustersNew_
T const * product() const
Pixel cluster – collection of neighboring pixels above threshold.
TopBottomClusterInfoProducer(const edm::ParameterSet &iConfig)