IMP.bff
Loading...
Searching...
No Matches
DecayPileup.h
Go to the documentation of this file.
1
12#ifndef IMPBFF_DECAYPILEUP_H
13#define IMPBFF_DECAYPILEUP_H
14
15#include <IMP/bff/bff_config.h>
16#include <memory> /* shared_ptr */
17#include <string>
18#include <iostream> /* std::cerr */
19#include <IMP/bff/DecayCurve.h>
20#include <IMP/bff/DecayModifier.h>
21#include <IMP/bff/DecayRoutines.h> /* add_pile_up_to_model */
22
23IMPBFF_BEGIN_NAMESPACE
24
33class IMPBFFEXPORT DecayPileup : public DecayModifier {
34
35private:
37 double instrument_dead_time = std::numeric_limits<double>::epsilon();
38
40 double repetition_rate = 100.0;
41
43 std::string pile_up_model = "coates";
44
45public:
50 void set_pile_up_model(std::string v);
51
56 std::string get_pile_up_model();
57
62 void set_repetition_rate(double v);
63
69
75
81
86 void add(DecayCurve* out) override;
87
99 DecayCurve* data,
100 const char* pile_up_model = "coates",
101 double repetition_rate = 100,
102 double instrument_dead_time = 120,
103 int start = 0, int stop = -1,
104 bool active = true
105 );
106};
107
108IMPBFF_END_NAMESPACE
109
110#endif //IMPBFF_DECAYPILEUP_H
Class for fluorescence decay curves.
Definition DecayCurve.h:38
A decorator that modifies a DecayCurve within a specified range.
Definition DecayModifier.h:29
A decorator that adds pile-up effects to a DecayCurve object.
Definition DecayPileup.h:33
void set_pile_up_model(std::string v)
Set the pile-up model.
void add(DecayCurve *out) override
Add pile-up effects to the DecayCurve object.
std::string get_pile_up_model()
Get the pile-up model.
double get_instrument_dead_time()
Get the instrument dead time.
void set_instrument_dead_time(double v)
Set the instrument dead time.
double get_repetition_rate()
Get the repetition rate.
DecayPileup(DecayCurve *data, const char *pile_up_model="coates", double repetition_rate=100, double instrument_dead_time=120, int start=0, int stop=-1, bool active=true)
Constructor for DecayPileup.
void set_repetition_rate(double v)
Set the repetition rate.