#include <RecoLocalTracker/SiPixelRecHits/interface/SiPixelRecHitConverter.h>
SiPixelRecHitConverter is an EDProducer subclass (i.e., a module) which orchestrates the conversion of SiPixelClusters into SiPixelRecHits. Consequently, the input is a edm::DetSetVector<SiPixelCluster> and the output is SiPixelRecHitCollection.
SiPixelRecHitConverter invokes one of descendents from ClusterParameterEstimator (templated on SiPixelCluster), e.g. CPEFromDetPosition (which is the only available option right now). SiPixelRecHitConverter loads the SiPixelClusterCollection, and then iterates over DetIds, invoking the chosen CPE's methods localPosition() and localError() to perform the correction (some of which may be rather involved). A RecHit is made on the spot, and appended to the output collection.
The calibrations are not loaded at the moment, although that is being planned for the near future.