Commit ba3d5280 authored by Sara Ruiz Daza's avatar Sara Ruiz Daza
Browse files

change name of weak_inversion_slope_factor to weak_inversion_slope

parent c39b2a18
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@ CSADigitizerModule::CSADigitizerModule(Configuration& config, Messenger* messeng
        config_.setDefault<double>("input_capacitance", Units::get(100e-15, "C/V"));
        config_.setDefault<double>("amp_output_capacitance", Units::get(20e-15, "C/V"));
        config_.setDefault<double>("transconductance", Units::get(50e-6, "C/s/V"));
        config_.setDefault<double>("weak_inversion_slope_factor", 1.5);
        config_.setDefault<double>("weak_inversion_slope", 1.5);
        config_.setDefault<double>("temperature", 293.15);
    }

@@ -107,7 +107,7 @@ CSADigitizerModule::CSADigitizerModule(Configuration& config, Messenger* messeng
        auto capacitance_feedback = config_.get<double>("feedback_capacitance");
        auto capacitance_output = config_.get<double>("amp_output_capacitance");
        auto gm = config_.get<double>("transconductance");
        auto n_wi = config_.get<double>("weak_inversion_slope_factor");
        auto n_wi = config_.get<double>("weak_inversion_slope");
        auto boltzmann_kT = Units::get(8.6173333e-5, "eV/K") * config_.get<double>("temperature");

        // helper variables: transconductance and resistance in the feedback loop
@@ -130,8 +130,7 @@ CSADigitizerModule::CSADigitizerModule(Configuration& config, Messenger* messeng
                   << ", capacitance_output = " << Units::display(capacitance_output, {"C/V", "fC/mV"})
                   << ", gm = " << Units::display(gm, "C/s/V")
                   << ", tauF = " << Units::display(tauF, {"ns", "us", "ms", "s"})
                   << ", tauR = " << Units::display(tauR, {"ns", "us", "ms", "s"})
                   << ", weak_inversion_slope_factor = " << n_wi
                   << ", tauR = " << Units::display(tauR, {"ns", "us", "ms", "s"}) << ", weak_inversion_slope = " << n_wi
                   << ", temperature = " << Units::display(config_.get<double>("temperature"), "K");
    } else if(model_ == DigitizerType::CUSTOM) {
        calculate_impulse_response_ =
+3 −3
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ If this behavior is not desired, the `ignore_polarity` parameter can be set to c
* `input_capacitance`: The input capacitance which comprises the capacitance of the detector, the capacitance of the feedback circuit, and any additional capacitance caused by parasitic effects. Defaults to 100 e-15 F.
* `amp_output_capacitance`: The capacitance at the amplifier output. Defaults to 20 e-15 F.
* `transconductance`: The transconductance of the first transistor of the CSA feedback circuit. Defaults to 50e-6 C/s/V.
* `weak_inversion_slope_factor`: The weak inversion slope factor. Defaults to 1.5.
* `weak_inversion_slope`: The weak inversion slope. Defaults to 1.5.
* `temperature`: Defaults to 293.15K.

### Parameters for the custom model
@@ -86,11 +86,11 @@ Example how to use the `csa` model in this module:
[CSADigitizer]
model = "csa"
feedback_capacitance = 10e-15C/V
detector_capacitance = 100e-15C/V
input_capacitance = 100e-15C/V
krummenacher_current = 25e-9C/s
amp_output_capacitance = 15e-15C/V
transconductance = 50e-6C/s/V
weak_inversion_slope_factor = 1.15
weak_inversion_slope = 1.15
temperature = 298
integration_time = 0.5e-6s
threshold = 10e-3V