27 #ifndef GCOMD1RESPONSE_HPP
28 #define GCOMD1RESPONSE_HPP
59 double operator()(
const double& etrue,
const double& ereco)
const;
67 void load(
const std::string& sdaname);
70 double position(
const double& etrue)
const;
71 double sigma(
const double& etrue)
const;
72 double amplitude(
const double& etrue)
const;
73 double emin(
const double& etrue)
const;
74 double ewidth(
const double& etrue)
const;
75 double emax(
const double& etrue)
const;
76 double emin(
void)
const;
77 double emax(
void)
const;
116 return (
"GCOMD1Response");
void read(const GFitsTable &table)
Read COMPTEL D1 module response.
int size(void) const
Return number of nodes in node array.
void load(const std::string &sdaname)
Load COMPTEL D1 module response.
~GCOMD1Response(void)
Destructor.
std::vector< double > m_emaxs
Upper energy limit of D1.
const GCaldb & caldb(void) const
Return calibration database.
GCOMD1Response * clone(void) const
Clone instance.
void write(GFitsBinTable &table)
Write COMPTEL D1 module response.
GCaldb m_caldb
Calibration database.
GNodeArray m_energies
Input energies.
std::string classname(void) const
Return class name.
std::vector< double > m_ewidths
Lower energy threshold width of D1.
Node array class interface definition.
void free_members(void)
Delete class members.
void init_members(void)
Initialise class members.
Calibration database class.
void update_cache(const double &etrue) const
Update computation cache.
double emax(void) const
Return maximum D1 input energy (MeV)
Interface for the COMPTEL D1 module response class.
Interface class for all GammaLib classes.
double sigma(const double &etrue) const
Return photo peak standard deviation.
double ewidth(const double &etrue) const
Return energy threshold width.
Abstract interface for FITS table.
std::vector< double > m_sigmas
Photo peak width in MeV.
GCOMD1Response(void)
Void constructor.
std::string print(const GChatter &chatter=NORMAL) const
Print COMPTEL D1 module response information.
std::vector< double > m_amplitudes
Photo peak amplitude.
void copy_members(const GCOMD1Response &rsp)
Copy class members.
Calibration database class interface definition.
double amplitude(const double &etrue) const
Return photo peak amplitude.
double position(const double &etrue) const
Return photo peak position.
std::vector< double > m_positions
Photo peak position in MeV.
double emin(void) const
Return minimum D1 input energy (MeV)
GCOMD1Response & operator=(const GCOMD1Response &rsp)
Assignment operator.
void clear(void)
Clear instance.
double operator()(const double &etrue, const double &ereco) const
D1 module response evaluation operator.
std::vector< double > m_emins
Lower energy threshold of D1.