54 src_( conf.getParameter<edm::InputTag>(
"src" ) ),
58 produces<SiPixelRecHitCollection>();
105 run( input, *output, geom );
123 edm::LogError(
"SiPixelRecHitConverter") <<
" at least one CPE is not ready -- can't run!";
129 int numberOfDetUnits = 0;
130 int numberOfClusters = 0;
136 for ( ; DSViter != input.
end() ; DSViter++)
139 unsigned int detid = DSViter->detId();
140 DetId detIdObject( detid );
141 const GeomDetUnit * genericDet = geom->idToDetUnit( detIdObject );
148 for ( ; clustIt != clustEnd; clustIt++)
180 if ( recHitsOnDetUnit.
size()>0 )
183 LogDebug(
"SiPixelRecHitConverter") <<
" Found "
184 << recHitsOnDetUnit.
size() <<
" RecHits on " <<
detid;
190 <<
cpeName_ <<
" converted " << numberOfClusters
191 <<
" SiPixelClusters into SiPixelRecHits, in "
192 << numberOfDetUnits <<
" DetUnits.";
T getParameter(std::string const &) const
edm::Ref< typename HandleT::element_type, typename HandleT::element_type::value_type::value_type > makeRefTo(const HandleT &iHandle, typename HandleT::element_type::value_type::const_iterator itIter)
void push_back(data_type const &d)
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
const_iterator begin() const
void run(const edmNew::DetSetVector< SiPixelCluster > &input, SiPixelRecHitCollectionNew &output, edm::ESHandle< TrackerGeometry > &geom)
SiPixelRecHitQuality::QualWordType rawQualityWord() const
data_type const * const_iterator
virtual LocalValues localParameters(const T &, const GeomDetUnit &) const =0
static int theVerboseLevel
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
const_iterator end() const
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual ~SiPixelRecHitConverter()
virtual void produce(edm::Event &e, const edm::EventSetup &c)
The "Event" entrypoint: gets called by framework for every event.
Pixel cluster – collection of neighboring pixels above threshold.
const PixelClusterParameterEstimator * cpe_