45 src_( conf.getParameter<
edm::InputTag>(
"src" ) ),
48 produces<SiPixelRecHitCollection>();
72 auto output = std::make_unique<SiPixelRecHitCollectionNew>();
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 );
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)
const TrackerGeomDet * idToDetUnit(DetId) const
Return the pointer to the GeomDetUnit corresponding to a given DetId.
void push_back(data_type const &d)
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
const_iterator end(bool update=false) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
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
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