100 m_buildername(iConfig.getParameter<std::
string>(
"TTRHBuilder"))
112 m_nduplicate = tfserv->
make<TH1F>(
"nduplicate",
"Number of duplicated clusters per track",10,-0.5,9.5);
113 m_nduplmod = tfserv->
make<TH1F>(
"nduplmod",
"Number of duplicated clusters per module",10,-0.5,9.5);
142 for(reco::TrackCollection::const_iterator it =
tracks->begin();it!=
tracks->end();it++) {
144 std::set<SiPixelRecHit::ClusterRef::key_type>
clusters;
151 if(clusters.find(pxrh->
cluster().
index())!=clusters.end()) {
153 std::stringstream detidstr;
156 LogDebug(
"DuplicateHitFinder") <<
"Track with " << it->recHitsSize() <<
" RecHits";
157 LogTrace(
"DuplicateHitFinder") <<
"Duplicate found " << ttrh->det()->geographicalId() <<
" " << pxrh->
cluster().
index();
T getParameter(std::string const &) const
virtual void beginRun(const edm::Run &, const edm::EventSetup &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
std::vector< Track > TrackCollection
collection of Tracks
virtual void analyze(const edm::Event &, const edm::EventSetup &)
T * make(const Args &...args) const
make new ROOT object
std::string m_buildername
const TransientTrackingRecHitBuilder * m_builder
uint32_t rawId() const
get the raw id
const GeomDet * det() const
virtual RecHitPointer build(const TrackingRecHit *p) const =0
build a tracking rechit from an existing rechit
DetId geographicalId() const
The label of this GeomDet.
std::shared_ptr< TrackingRecHit const > RecHitPointer
ClusterRef cluster() const
T const * product() const
edm::EDGetTokenT< reco::TrackCollection > m_trkcollToken
virtual void endRun(const edm::Run &, const edm::EventSetup &)
DuplicateRecHits(const edm::ParameterSet &)
TrackingRecHitCollection::base::const_iterator trackingRecHit_iterator
iterator over a vector of reference to TrackingRecHit in the same collection