27 #ifndef GCOMOBSERVATION_HPP
28 #define GCOMOBSERVATION_HPP
81 const std::vector<GFilename>& oadnames,
90 virtual void clear(
void);
92 virtual std::string
classname(
void)
const;
96 virtual double ontime(
void)
const;
112 const std::vector<GFilename>& oadnames,
116 void obs_id(
const double&
id);
117 void ontime(
const double& ontime);
118 void livetime(
const double& livetime);
119 void deadc(
const double& deadc);
121 const double&
obs_id(
void)
const;
122 const double&
ewidth(
void)
const;
147 const int& nrunav = 3,
148 const int& navgr = 3,
149 const int& nincl = 13,
150 const int& nexcl = 0);
166 const int& nrunav = 3,
167 const int& navgr = 3,
168 const int& nincl = 13,
169 const int& nexcl = 0);
171 const int& nrunav = 3,
172 const int& navgr = 3,
173 const int& nincl = 13,
174 const int& nexcl = 0);
226 return (
"GCOMObservation");
526 return (dynamic_cast<const GCOMEventList*>(
m_events) != NULL);
538 return (dynamic_cast<const GCOMEventCube*>(
m_events) != NULL);
COMPTEL instrument status class.
virtual void clear(void)
Clear COMPTEL observation.
void compute_drb(const std::string &method, const GCOMDri &drm, const int &nrunav=3, const int &navgr=3, const int &nincl=13, const int &nexcl=0)
Compute DRB cube.
const GCOMOads & oads(void) const
Return Orbit Aspect Data.
void get_bgdlixa_phibar_indices(const int &iphibar, const int &nincl, const int &nexcl, int *isel1, int *iex1, int *iex2, int *isel2) const
Compute Phibar index range for BGDLIXA background method.
double m_obs_id
Observation ID.
GFilename m_bvcname
BVC filename.
void copy_members(const GCOMObservation &obs)
Copy class members.
const GCOMBvcs & bvcs(void) const
Return Solar System Barycentre Data.
GFilename m_drbname
DRB filename.
void init_members(void)
Initialise class members.
Abstract FITS extension base class.
double m_deadc
Deadtime correction.
COMPTEL Data Space class definition.
COMPTEL event list class definition.
GFilename m_timname
TIM filename.
const GCOMDri & drx(void) const
Return exposure.
std::vector< GFilename > m_oadnames
OAD filenames.
GEvents * m_events
Pointer to event container.
const GFilename & drxname(void) const
Return DRX filename.
COMPTEL Solar System Barycentre Data container class definition.
const GFilename & drbname(void) const
Return DRB filename.
virtual double ontime(void) const
Return ontime.
GFilename m_evpname
EVP filename.
GCOMDri m_drx
Exposure map.
bool is_unbinned(void) const
Check whether observation is unbinned.
const GCOMDri & drb(void) const
Return background model.
GCOMDri m_drg
Geometry factors.
Interface for the COMPTEL instrument response function.
void load_dre(const GFilename &drename)
Load event cube data from DRE file.
void free_members(void)
Delete class members.
const int & phi_first(void) const
Return index of first Phibar layer to be used for likelihood fitting.
COMPTEL Good Time Intervals class definition.
GCOMTim m_tim
COMPTEL Good Time Intervals.
virtual double deadc(const GTime &time=GTime()) const
Return deadtime correction factor.
const GFilename & drgname(void) const
Return DRG filename.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print observation information.
const double & obs_id(void) const
Return observation ID.
void load(const GFilename &drename, const GFilename &drbname, const GFilename &drgname, const GFilename &drxname)
Load data for a binned observation.
GCOMDri m_drb
Background model.
virtual const GCOMResponse * response(void) const
Return response function.
GCOMDri drm(const GModels &models) const
Compute DRM cube.
const GCOMTim & tim(void) const
Return COMPTEL Good Time Intervals.
const GCOMDri & drg(void) const
Return geometry factors.
Calibration database class.
GCOMBvcs m_bvcs
Solar System Barycentre Data.
const std::string & id(void) const
Return observation identifier.
COMPTEL instrument response function class interface definition.
void compute_drb_phinor(const GCOMDri &drm)
Compute DRB cube using PHINOR method.
const GFilename & drename(void) const
Return DRE filename.
virtual void write(GXmlElement &xml) const
Write observation into XML element.
virtual void read(const GXmlElement &xml)
Read observation from XML element.
void load_drb(const GFilename &drbname)
Load background model from DRB file.
double m_ontime
Ontime (sec)
bool is_binned(void) const
Check whether observation is binned.
void read_attributes(const GFitsHDU *hdu)
Read observation attributes.
void compute_drb_bgdlixa(const GCOMDri &drm, const int &nrunav=3, const int &navgr=3, const int &nincl=13, const int &nexcl=0)
Compute DRB cube using BGDLIXA method.
virtual std::string instrument(void) const
Return instrument.
double m_livetime
Livetime (sec)
Abstract observation base class.
virtual GCOMObservation * clone(void) const
Clone COMPTEL observation.
virtual std::string classname(void) const
Return class name.
Abstract observation base class interface definition.
void compute_drb_bgdlixe(const GCOMDri &drm, const int &nrunav=3, const int &navgr=3, const int &nincl=13, const int &nexcl=0)
Compute DRB cube using BGDLIXE method.
double m_ewidth
Energy width (MeV)
GCOMOads m_oads
Orbit Aspect Data.
void load_drx(const GFilename &drxname)
Load exposure from DRX file.
Interface class for COMPTEL observations.
GSkyMap get_weighted_drg_map(void) const
Return weighted DRG map.
virtual bool use_event_for_likelihood(const int &index) const
Check whether bin should be used for likelihood analysis.
COMPTEL Data Space class.
virtual double livetime(void) const
Return livetime.
COMPTEL Orbit Aspect Data container class.
const double & ewidth(void) const
Return energy width.
int m_phi_last
Last Phibar layer to use for likelihood.
void write_attributes(GFitsHDU *hdu) const
Write observation attributes.
COMPTEL Good Time Intervals class.
Abstract instrument response base class.
COMPTEL event bin container class interface definition.
virtual GCOMObservation & operator=(const GCOMObservation &obs)
Assignment operator.
COMPTEL Solar System Barycentre Data container class.
bool check_dri(const GCOMDri &map) const
Check if DRI is compatible with event cube.
GCOMObservation(void)
Void constructor.
int m_phi_first
First Phibar layer to use for likelihood.
const int & phi_last(void) const
Return index of last Phibar layer to be used for likelihood fitting.
Time class interface definition.
GFilename m_drxname
DRX filename.
virtual ~GCOMObservation(void)
Destructor.
void load_drg(const GFilename &drgname)
Load geometry factors from DRG file.
GCOMResponse m_response
Response functions.
Filename class interface definition.
GFilename m_drgname
DRG filename.
COMPTEL Orbit Aspect Data container class definition.
std::string m_instrument
Instrument name.
GFilename m_drename
DRE filename.