27#ifndef GCOMMODELDRBPHIBARNODES_HPP
28#define GCOMMODELDRBPHIBARNODES_HPP
64 virtual void clear(
void);
66 virtual std::string
classname(
void)
const;
67 virtual std::string
type(
void)
const;
71 const bool& gradients =
false)
const;
108 return (
"GCOMModelDRBPhibarNodes");
123 return (
"DRBPhibarNodes");
COMPTEL event bin container class interface definition.
Abstract event base class definition.
Abstract data model base class interface definition.
Model parameter class interface definition.
Node array class interface definition.
Abstract observation base class interface definition.
XML element node class interface definition.
COMPTEL event bin container class.
COMPTEL DRB Phibar nodes model fitting class.
void free_members(void)
Delete class members.
GNodeArray m_nodes
Phibar node values.
std::vector< GModelPar > m_values
Node values.
virtual std::string classname(void) const
Return class name.
void set_cache(void) const
Set evaluation cache.
virtual void read(const GXmlElement &xml)
Read model from XML element.
virtual double npred(const GEnergy &obsEng, const GTime &obsTime, const GObservation &obs) const
Return spatially integrated data model.
virtual GCOMEventCube * mc(const GObservation &obs, GRan &ran) const
Return simulated list of events.
virtual GCOMModelDRBPhibarNodes & operator=(const GCOMModelDRBPhibarNodes &model)
Assignment operator.
std::vector< double > m_old_phibars
Old Phibar values.
bool m_scale
Model is a scale factor.
GCOMModelDRBPhibarNodes(void)
Void constructor.
void init_members(void)
Initialise class members.
virtual GCOMModelDRBPhibarNodes * clone(void) const
Clone instance.
virtual ~GCOMModelDRBPhibarNodes(void)
Destructor.
virtual void clear(void)
Clear instance.
void set_pointers(void)
Set pointers.
virtual double eval(const GEvent &event, const GObservation &obs, const bool &gradients=false) const
Evaluate function.
void update_cache(void) const
Update evaluation cache.
bool m_fixed
All Phibar values are fixed.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print model information.
virtual void write(GXmlElement &xml) const
Write model into XML element.
std::vector< GModelPar > m_phibars
Node Phibar values.
virtual bool is_constant(void) const
Signals if model is temporally constant.
virtual std::string type(void) const
Return model type.
void copy_members(const GCOMModelDRBPhibarNodes &model)
Copy class members.
Class that handles energies in a unit independent way.
Abstract interface for the event classes.
Abstract data model class.
Abstract observation base class.
Random number generator class.