91 const double& phibar_min,
const double& phibar_max) :
GRoi()
237 result.append(
"=== GCOMRoi ===");
void phibar(const double &phibar)
Set event Compton scatter angle.
virtual GRoi & operator=(const GRoi &roi)
Assignment operator.
const GCOMInstDir & centre(void) const
Return centre of region of interest.
double m_radius
Radius of region of interest.
void free_members(void)
Delete class members.
Abstract interface for the event classes.
virtual GCOMRoi * clone(void) const
Clone region of interest.
COMPTEL region of interest class definition.
std::string centre(const std::string &s, const int &n, const char &c= ' ')
Centre string to achieve a length of n characters.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print region of interest information.
GCOMInstDir m_centre
Centre of RoI in instrument coordinates.
virtual bool contains(const GEvent &event) const
Check if region of interest contains an event.
GCOMRoi(void)
Void constructor.
virtual ~GCOMRoi(void)
Destructor.
void dir(const GSkyDir &dir)
Set event scatter direction.
void init_members(void)
Initialise class members.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print instrument direction information.
Abstract event base class definition.
virtual void clear(void)
Clear region of interest.
double m_phibar_min
Minimum Phibar of region of interest.
void copy_members(const GCOMRoi &roi)
Copy class members.
COMPTEL region of interest class.
void free_members(void)
Delete class members.
double m_phibar_max
Minimum Phibar of region of interest.
virtual void clear(void)
Clear instance.
const double & phibar_max(void) const
Return maximum Phibar of region of interest.
const double & phibar_min(void) const
Return minimum Phibar of region of interest.
void init_members(void)
Initialise class members.
Interface for the region of interest classes.
std::string parformat(const std::string &s, const int &indent=0)
Convert string in parameter format.
const double & radius(void) const
Return radius of region of interest.
GCOMRoi & operator=(const GCOMRoi &roi)
Assignment operator.
Interface for the COMPTEL instrument direction class.
std::string str(const unsigned short int &value)
Convert unsigned short integer value into string.