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