Commit c8c80899 authored by Paul Schütze's avatar Paul Schütze
Browse files

Merge branch 'fail_implant' into 'master'

DetectorModel: report old implant_size parameter

Closes #260

See merge request allpix-squared/allpix-squared!956
parents 9c5d110d c00a217a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -85,6 +85,12 @@ DetectorModel::DetectorModel(std::string type, std::shared_ptr<DetectorAssembly>
    // Sensor material:
    sensor_material_ = config.get<SensorMaterial>("sensor_material", SensorMaterial::SILICON);

    // Issue a warning for pre-3.0 implant definitions:
    if(config.has("implant_size")) {
        LOG(WARNING) << "Parameter \"implant_size\" of model " << config.getFilePath() << " not supported," << std::endl
                     << "Individual [implant] sections must be used for implant definitions";
    }

    // Read implants
    for(auto& implant_config : reader_.getConfigurations("implant")) {
        auto imtype = implant_config.get<Implant::Type>("type");