17 #ifndef FALAISE_SNEMO_PROCESSING_CALORIMETER_REGIME_H 18 #define FALAISE_SNEMO_PROCESSING_CALORIMETER_REGIME_H 1 38 namespace processing {
96 virtual void tree_dump(std::ostream& a_out = std::clog,
const std::string& a_title =
"",
97 const std::string& a_indent =
"",
bool a_inherit =
false)
const;
100 void _init_defaults_();
105 double _high_threshold_;
106 double _low_threshold_;
107 double _alpha_quenching_0_;
108 double _alpha_quenching_1_;
109 double _alpha_quenching_2_;
110 double _scintillator_relaxation_time_;
128 #endif // FALAISE_SNEMO_PROCESSING_CALORIMETER_REGIME_H Simple modelling of the energy and time measurement with the SuperNEMO calorimeter optical lines.
Definition: calorimeter_regime.h:42
const std::string & get_category() const
Return the category of the optical modules associated to this calorimeter regime.
static const double & default_high_energy_threshold()
Return the default high energy threshold.
void initialize(const datatools::properties &config_)
Initialization from parameters.
double randomize_energy(mygsl::rng &ran_, const double energy_) const
Randomize the measured energy value given the true energy.
static const double & default_low_energy_threshold()
Return the default low energy threshold.
virtual void tree_dump(std::ostream &a_out=std::clog, const std::string &a_title="", const std::string &a_indent="", bool a_inherit=false) const
Smart print.
double quench_alpha_energy(const double energy_) const
Compute the effective quenched energy for alpha particle.
void set_category(const std::string &category_)
Set the category of the optical modules associated to this calorimeter regime.
bool is_high_threshold(const double energy_) const
Check if a given energy passes the high threshold.
DOCD_CLASS_DECLARATION(my::algo)
Definition: calo_tapered_scin_box_model.h:54
calorimeter_regime()
Default constructor.
bool is_low_threshold(const double energy_) const
Check if a given energy passes the low threshold.
bool is_initialized() const
Check initialization flag.
double randomize_time(mygsl::rng &ran_, const double time_, const double energy_) const
Randomize the measured time value given the true time and energy.
double get_sigma_energy(const double energy_) const
Return the error on energy.
static const double & default_energy_resolution()
Return the default energy resolution.
double get_sigma_time(const double energy_) const
Return the error on time.
static const double & default_scintillator_relaxation_time()
Return the default scintillator relaxation time.