IMP logo
IMP Reference Guide  develop.63b38c487d,2024/12/21
The Integrative Modeling Platform
IMP::bff::DecayLifetimeHandler Class Reference

Store and handle lifetime spectra. More...

#include <IMP/bff/DecayLifetimeHandler.h>

+ Inheritance diagram for IMP::bff::DecayLifetimeHandler:

Detailed Description

Store and handle lifetime spectra.

This is responsible for storing and handling lifetime spectra. A lifetime spectrum consists of a set of lifetimes and their corresponding amplitudes. The class provides methods to set and retrieve the lifetime spectrum, as well as to manipulate it.

Definition at line 32 of file DecayLifetimeHandler.h.

Public Member Functions

 DecayLifetimeHandler (std::vector< double > lifetime_spectrum=std::vector< double >(), bool use_amplitude_threshold=false, bool abs_lifetime_spectrum=false, double amplitude_threshold=std::numeric_limits< double >::epsilon())
 
void add_lifetime (double amplitude, double lifetime)
 
bool get_abs_lifetime_spectrum () const
 
double get_amplitude_threshold ()
 
std::vector< double > & get_lifetime_spectrum ()
 
void get_lifetime_spectrum (double **output_view, int *n_output)
 
virtual std::string get_type_name () const override
 
bool get_use_amplitude_threshold ()
 
virtual ::IMP::VersionInfo get_version_info () const override
 Get information about the module and version of the object. More...
 
void set_abs_lifetime_spectrum (bool v)
 
void set_amplitude_threshold (double v)
 
void set_lifetime_spectrum (std::vector< double > v)
 
void set_use_amplitude_threshold (bool v)
 
- Public Member Functions inherited from IMP::Object
virtual void clear_caches ()
 
CheckLevel get_check_level () const
 
LogLevel get_log_level () const
 
void set_check_level (CheckLevel l)
 
void set_log_level (LogLevel l)
 Set the logging level used in this object. More...
 
void set_was_used (bool tf) const
 
void show (std::ostream &out=std::cout) const
 
const std::string & get_name () const
 
void set_name (std::string name)
 

Additional Inherited Members

- Protected Member Functions inherited from IMP::Object
 Object (std::string name)
 Construct an object with the given name. More...
 
virtual void do_destroy ()
 

Constructor & Destructor Documentation

IMP::bff::DecayLifetimeHandler::DecayLifetimeHandler ( std::vector< double >  lifetime_spectrum = std::vector< double >(),
bool  use_amplitude_threshold = false,
bool  abs_lifetime_spectrum = false,
double  amplitude_threshold = std::numeric_limits< double >::epsilon() 
)

Construct a DecayLifetimeHandler object.

Parameters
lifetime_spectrumThe initial lifetime spectrum (default: empty).
use_amplitude_thresholdWhether to use the amplitude threshold (default: false).
abs_lifetime_spectrumWhether to use the absolute values of the lifetime spectrum (default: false).
amplitude_thresholdThe amplitude threshold (default: epsilon).

Member Function Documentation

void IMP::bff::DecayLifetimeHandler::add_lifetime ( double  amplitude,
double  lifetime 
)

Add a lifetime to the lifetime spectrum.

Parameters
amplitudeThe amplitude of the lifetime.
lifetimeThe lifetime value.
bool IMP::bff::DecayLifetimeHandler::get_abs_lifetime_spectrum ( ) const

Check if the absolute values of the lifetime spectrum are being used to compute the model function.

Returns
True if the absolute values are being used, false otherwise.
double IMP::bff::DecayLifetimeHandler::get_amplitude_threshold ( )

Get the amplitude threshold used to discriminate lifetimes with small amplitudes.

Returns
The amplitude threshold.
std::vector<double>& IMP::bff::DecayLifetimeHandler::get_lifetime_spectrum ( )

Get a reference to the lifetime spectrum.

Returns
A reference to the lifetime spectrum.
void IMP::bff::DecayLifetimeHandler::get_lifetime_spectrum ( double **  output_view,
int *  n_output 
)

Get a view of the lifetime spectrum.

Parameters
output_viewA pointer to the output view of the lifetime spectrum.
n_outputA pointer to the number of elements in the output view.
bool IMP::bff::DecayLifetimeHandler::get_use_amplitude_threshold ( )

Check if the amplitude threshold is being used to discriminate lifetimes with small amplitudes.

Returns
True if the amplitude threshold is being used, false otherwise.
virtual ::IMP::VersionInfo IMP::bff::DecayLifetimeHandler::get_version_info ( ) const
overridevirtual

Get information about the module and version of the object.

Reimplemented from IMP::Object.

Definition at line 117 of file DecayLifetimeHandler.h.

void IMP::bff::DecayLifetimeHandler::set_abs_lifetime_spectrum ( bool  v)

Set whether to use the absolute values of the lifetime spectrum to compute the model function.

Parameters
vTrue to use the absolute values, false otherwise.
void IMP::bff::DecayLifetimeHandler::set_amplitude_threshold ( double  v)

Set the amplitude threshold used to discriminate lifetimes with small amplitudes.

Parameters
vThe amplitude threshold.
void IMP::bff::DecayLifetimeHandler::set_lifetime_spectrum ( std::vector< double >  v)

Set the lifetime spectrum.

Parameters
vThe lifetime spectrum to set.
void IMP::bff::DecayLifetimeHandler::set_use_amplitude_threshold ( bool  v)

Set whether to use the amplitude threshold to discriminate lifetimes with small amplitudes.

Parameters
vTrue to use the amplitude threshold, false otherwise.

The documentation for this class was generated from the following file: