RecoTracker/DeDx/plugins/DeDxHitInfoProducer.cc
// ------------ method called once each job just before starting event loop  ------------
method called once each job just before starting event loop
method called once each job just before starting event loop
void DeDxHitInfoProducer::beginRun(edm::Run const& iRun, const edm::EventSetup& iSetup) {
  tkGeom_ = iSetup.getHandle(tkGeomToken_);
  if (useCalibration_ && calibGains_.empty()) {
    offsetDU_ = tkGeom_->offsetDU(GeomDetEnumerators::PixelBarrel);  
    deDxTools::makeCalibrationMap(calibrationPath_, *tkGeom_, calibGains_, offsetDU_);
  }
}
void DeDxHitInfoProducer :: beginRun ( edm :: Run const & iRun , const edm :: EventSetup & iSetup ) { tkGeom_ = iSetup . getHandle ( tkGeomToken_ ) ; if ( useCalibration_ && calibGains_ . empty ( ) ) { offsetDU_ = tkGeom_ -> offsetDU ( GeomDetEnumerators :: PixelBarrel ) ; deDxTools :: makeCalibrationMap ( calibrationPath_ , * tkGeom_ , calibGains_ , offsetDU_ ) ; } }
method called once each job just before starting event loop
method called once each job just before starting event loop
//index start at the first pixel