Loading src/modules/DopingProfileReader/DopingProfileReaderModule.cpp +5 −1 Original line number Diff line number Diff line Loading @@ -122,7 +122,11 @@ void DopingProfileReaderModule::create_output_plots() { // If we need to plot a single pixel, we use size and position of the pixel at the origin auto single_pixel = config_.get<bool>("output_plots_single_pixel", true); auto center = (single_pixel ? model->getPixelCenter(0, 0) : model->getSensorCenter()); auto center = (single_pixel ? ROOT::Math::XYZPoint(detector_->getPixel(0, 0).getLocalCenter().x(), detector_->getPixel(0, 0).getLocalCenter().y(), 0) : model->getSensorCenter()); auto size = (single_pixel ? ROOT::Math::XYZVector(model->getPixelSize().x(), model->getPixelSize().y(), model->getSensorSize().z()) Loading Loading
src/modules/DopingProfileReader/DopingProfileReaderModule.cpp +5 −1 Original line number Diff line number Diff line Loading @@ -122,7 +122,11 @@ void DopingProfileReaderModule::create_output_plots() { // If we need to plot a single pixel, we use size and position of the pixel at the origin auto single_pixel = config_.get<bool>("output_plots_single_pixel", true); auto center = (single_pixel ? model->getPixelCenter(0, 0) : model->getSensorCenter()); auto center = (single_pixel ? ROOT::Math::XYZPoint(detector_->getPixel(0, 0).getLocalCenter().x(), detector_->getPixel(0, 0).getLocalCenter().y(), 0) : model->getSensorCenter()); auto size = (single_pixel ? ROOT::Math::XYZVector(model->getPixelSize().x(), model->getPixelSize().y(), model->getSensorSize().z()) Loading