45 src_( conf.getParameter<edm::InputTag>(
"src" ) ),
46 tPixelCluster(consumes< edmNew::DetSetVector<
SiPixelCluster> >( src_)) {
48 produces<SiPixelRecHitCollection>();
83 run( input, *output, geom );
85 output->shrink_to_fit();
100 edm::LogError(
"SiPixelRecHitConverter") <<
" at least one CPE is not ready -- can't run!";
106 int numberOfDetUnits = 0;
107 int numberOfClusters = 0;
113 for ( ; DSViter != input.
end() ; DSViter++) {
115 unsigned int detid = DSViter->detId();
116 DetId detIdObject( detid );
117 const GeomDetUnit * genericDet = geom->idToDetUnit( detIdObject );
124 for ( ; clustIt != clustEnd; clustIt++) {
126 std::tuple<LocalPoint, LocalError,SiPixelRecHitQuality::QualWordType> tuple =
cpe_->
getParameters( *clustIt, *genericDet );
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 end(bool update=false) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void run(const edmNew::DetSetVector< SiPixelCluster > &input, SiPixelRecHitCollectionNew &output, edm::ESHandle< TrackerGeometry > &geom)
data_type const * const_iterator
static std::string const input
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual void produce(edm::Event &e, const edm::EventSetup &c) override
The "Event" entrypoint: gets called by framework for every event.
virtual ~SiPixelRecHitConverter()
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > tPixelCluster
Pixel cluster – collection of neighboring pixels above threshold.
unsigned int QualWordType
PixelCPEBase const * cpe_
const PixelClusterParameterEstimator * cpe_; // what we got (for now, one ptr to base class) ...
const_iterator begin(bool update=false) const
ReturnType getParameters(const SiPixelCluster &cl, const GeomDetUnit &det) const