IMP.bff
Loading...
Searching...
No Matches
DecayLifetimeHandler.h
Go to the documentation of this file.
1
13#ifndef IMPBFF_DECAYLIFETIMEHANDLER_H
14#define IMPBFF_DECAYLIFETIMEHANDLER_H
15
16#include <IMP/bff/bff_config.h>
17#include <vector>
18#include <limits>
19#include <iostream>
20#include <IMP/bff/DecayRoutines.h>
21
22IMPBFF_BEGIN_NAMESPACE
23
24class IMPBFFEXPORT DecayLifetimeHandler {
25private:
26 std::vector<double> _lifetime_spectrum = std::vector<double>();
27 std::vector<double> lt_ = std::vector<double>();
28 double amplitude_threshold = std::numeric_limits<double>::epsilon();
29 bool use_amplitude_threshold = false;
30 bool abs_lifetime_spectrum = true;
31
32public:
38
44
50
56
62
68
73 void set_lifetime_spectrum(std::vector<double> v);
74
80 void add_lifetime(double amplitude, double lifetime);
81
86 std::vector<double>& get_lifetime_spectrum();
87
93 void get_lifetime_spectrum(double **output_view, int *n_output);
94
103 std::vector<double> lifetime_spectrum = std::vector<double>(),
104 bool use_amplitude_threshold = false,
105 bool abs_lifetime_spectrum = false,
106 double amplitude_threshold = std::numeric_limits<double>::epsilon()
107 );
108};
109
110IMPBFF_END_NAMESPACE
111
112#endif // IMPBFF_DECAYLIFETIMEHANDLER_H
Definition DecayLifetimeHandler.h:24
double get_amplitude_threshold()
void add_lifetime(double amplitude, double lifetime)
void set_amplitude_threshold(double v)
bool get_abs_lifetime_spectrum() const
void set_use_amplitude_threshold(bool v)
void get_lifetime_spectrum(double **output_view, int *n_output)
std::vector< double > & get_lifetime_spectrum()
void set_abs_lifetime_spectrum(bool v)
void set_lifetime_spectrum(std::vector< double > v)
bool get_use_amplitude_threshold()
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())