Commit bdd1ce8f authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Fix readme and comment

parent 06256464
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -61,6 +61,8 @@ Note: If the VisualizationGeant4 module is used in conjunction with and `arc_len
A cone or partly made cone with an inner and an outer radius defined at the begin (negative z) and end (positive z) each.
                starting_angle   : start-angle ( default 0)
                arc_length       : length-of the arc (360 deg default)
A cone or partly made cone with an inner and an outer radius defined at the begin (negative z) and end (positive z) each.

* The `outer_radius_begin` of the cone is the outer radius at the begin (negative z) of the cone
* (Optional) The `inner_radius_begin` of the cone is the inner radius at the begin (negative z) of the cone. Defaults to 0mm.
* The `outer_radius_end` of the cone is the outer radius at the end (positive z) of the cone
+11 −10
Original line number Diff line number Diff line
@@ -30,15 +30,16 @@ namespace allpix {
        explicit ConeModel(const Configuration& config, GeometryManager* geo_manager)
            : PassiveMaterialModel(config, geo_manager) {

            // Set the CONE specifications
            /*
            must-fill :
                outer_radius_begin : outer radius at the begin (negative z) of the cone
                outer_radius_end : outer radius at the end (positive z) of the cone
                inner_radius_begin : inner radius at the begin (negative z) of the cone
                inner_radius_end : inner radius at the end (positive z) of the cone
                starting_angle   : start-angle ( default 0)
                arc_length       : length-of the arc (360 deg default)
            /**
             * Set the CONE specifications
             *
             * Required parameters
             *  outer_radius_begin : outer radius at the begin (negative z) of the cone
             *  outer_radius_end : outer radius at the end (positive z) of the cone
             *  inner_radius_begin : inner radius at the begin (negative z) of the cone
             *  inner_radius_end : inner radius at the end (positive z) of the cone
             *  starting_angle   : start-angle ( default 0)
             *  arc_length       : length-of the arc (360 deg default)
             */

            outer_radius_begin_ = config_.get<double>("outer_radius_begin");