27 #ifndef GCTARESPONSECACHE_HPP
28 #define GCTARESPONSECACHE_HPP
72 void set(
const std::string& name,
76 void set(
const std::string& name,
81 void remove(
const std::string& name);
82 bool contains(
const std::string& name,
85 double* value = NULL)
const;
86 bool contains(
const std::string& name,
90 double* value = NULL)
const;
117 return (
"GCTAResponseCache");
Energy value class definition.
Definition of interface for all GammaLib classes.
GCTAResponseCacheName m_cache
virtual ~GCTAResponseCache(void)
Destructor.
std::string classname(void) const
Return class name.
bool is_empty(void) const
Checks whether the cache is empty.
bool contains(const std::string &name, const GEnergy &ereco, const GEnergy &etrue, double *value=NULL) const
Check if cache contains a value for specific parameters.
void free_members(void)
Delete class members.
Interface class for all GammaLib classes.
void clear(void)
Clear CTA response cache.
void init_members(void)
Initialise class members.
GCTAResponseCache * clone(void) const
Clone CTA response cache.
double encode(const GEnergy &ereco, const GEnergy &etrue) const
Encode reconstructued and true energy.
void remove(const std::string &name)
Remove cache for source.
int size(void) const
Return number of elements in cache.
std::map< std::string, GCTAResponseCacheElement > GCTAResponseCacheName
std::string print(const GChatter &chatter=NORMAL) const
Print CTA response cache.
GCTAResponseCache & operator=(const GCTAResponseCache &cache)
Assignment operator.
CTA instrument direction class.
void copy_members(const GCTAResponseCache &cache)
Copy class members.
void set(const std::string &name, const GEnergy &ereco, const GEnergy &etrue, const double &value)
Set cache value.
GCTAResponseCache(void)
Void constructor.
CTA response cache class.
Class that handles energies in a unit independent way.
std::map< double, double > GCTAResponseCacheElement