45 src_( conf.getParameter<edm::InputTag>(
"src" ) ),
46 tPixelCluster(consumes< edmNew::DetSetVector<
SiPixelCluster> >( src_)) {
48 produces<SiPixelRecHitCollection>();
91 run( input, *output, geom );
108 edm::LogError(
"SiPixelRecHitConverter") <<
" at least one CPE is not ready -- can't run!";
114 int numberOfDetUnits = 0;
115 int numberOfClusters = 0;
121 for ( ; DSViter != input.
end() ; DSViter++) {
123 unsigned int detid = DSViter->detId();
124 DetId detIdObject( detid );
125 const GeomDetUnit * genericDet = geom->idToDetUnit( detIdObject );
132 for ( ; clustIt != clustEnd; clustIt++) {
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
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void run(const edmNew::DetSetVector< SiPixelCluster > &input, SiPixelRecHitCollectionNew &output, edm::ESHandle< TrackerGeometry > &geom)
SiPixelRecHitQuality::QualWordType rawQualityWord() const
data_type const * const_iterator
static std::string const input
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual ~SiPixelRecHitConverter()
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > tPixelCluster
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_iterator end(bool update=true) const
LocalValues localParameters(const SiPixelCluster &cl, const GeomDetUnit &det) const
const_iterator begin(bool update=true) const
PixelCPEBase const * cpe_
const PixelClusterParameterEstimator * cpe_; // what we got (for now, one ptr to base class) ...