GammaLib  1.7.0.dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GLATInstDir Class Reference

Fermi/LAT instrument direction class. More...

#include <GLATInstDir.hpp>

Inheritance diagram for GLATInstDir:
GInstDir GBase

Public Member Functions

 GLATInstDir (void)
 Void constructor. More...
 
 GLATInstDir (const GSkyDir &dir)
 GSkyDir constructor. More...
 
 GLATInstDir (const GLATInstDir &dir)
 Copy constructor. More...
 
virtual ~GLATInstDir (void)
 Destructor. More...
 
GLATInstDiroperator= (const GLATInstDir &dir)
 Assignment operator. More...
 
virtual void clear (void)
 Clear Fermi/LAT instrument direction. More...
 
virtual GLATInstDirclone (void) const
 Clone Fermi/LAT instrument direction. More...
 
virtual std::string classname (void) const
 Return class name. More...
 
virtual std::string print (const GChatter &chatter=NORMAL) const
 Print instrument direction information. More...
 
void dir (const GSkyDir &dir)
 Set sky direction. More...
 
GSkyDirdir (void)
 Returns reference to sky direction. More...
 
const GSkyDirdir (void) const
 Returns reference to sky direction (const version) More...
 
- Public Member Functions inherited from GInstDir
 GInstDir (void)
 Void constructor. More...
 
 GInstDir (const GInstDir &dir)
 Copy constructor. More...
 
virtual ~GInstDir (void)
 Destructor. More...
 
virtual GInstDiroperator= (const GInstDir &dir)
 Assignment operator. More...
 
- Public Member Functions inherited from GBase
virtual ~GBase (void)
 Destructor. More...
 

Protected Member Functions

void init_members (void)
 Initialise class members. More...
 
void copy_members (const GLATInstDir &dir)
 Copy class members. More...
 
void free_members (void)
 Delete class members. More...
 
- Protected Member Functions inherited from GInstDir
void init_members (void)
 Initialise class members. More...
 
void copy_members (const GInstDir &dir)
 Copy class members. More...
 
void free_members (void)
 Delete class members. More...
 

Protected Attributes

GSkyDir m_dir
 Observed incident direction of event. More...
 

Detailed Description

Fermi/LAT instrument direction class.

The LAT instrument direction is an encapsulation of a sky direction as LAT is an imaging device.

Definition at line 44 of file GLATInstDir.hpp.

Constructor & Destructor Documentation

GLATInstDir::GLATInstDir ( void  )

Void constructor.

Definition at line 54 of file GLATInstDir.cpp.

References init_members().

Referenced by clone().

GLATInstDir::GLATInstDir ( const GSkyDir dir)
explicit

GSkyDir constructor.

Parameters
[in]dirSky direction.

Construct LAT instrument direction from sky direction.

Definition at line 71 of file GLATInstDir.cpp.

References dir(), init_members(), and m_dir.

GLATInstDir::GLATInstDir ( const GLATInstDir dir)

Copy constructor.

Parameters
[in]dirInstrument direction.

Definition at line 89 of file GLATInstDir.cpp.

References copy_members(), and init_members().

GLATInstDir::~GLATInstDir ( void  )
virtual

Destructor.

Definition at line 105 of file GLATInstDir.cpp.

References free_members().

Member Function Documentation

std::string GLATInstDir::classname ( void  ) const
inlinevirtual

Return class name.

Returns
String containing the class name ("GLATInstDir").

Implements GInstDir.

Definition at line 84 of file GLATInstDir.hpp.

void GLATInstDir::clear ( void  )
virtual

Clear Fermi/LAT instrument direction.

Implements GInstDir.

Definition at line 160 of file GLATInstDir.cpp.

References GInstDir::free_members(), free_members(), GInstDir::init_members(), and init_members().

Referenced by GLATEventAtom::init_members(), and GLATRoi::init_members().

GLATInstDir * GLATInstDir::clone ( void  ) const
virtual

Clone Fermi/LAT instrument direction.

Returns
Pointer to deep copy of Fermi/LAT instrument direction.

Implements GInstDir.

Definition at line 180 of file GLATInstDir.cpp.

References GLATInstDir().

void GLATInstDir::copy_members ( const GLATInstDir dir)
protected

Copy class members.

Parameters
[in]dirInstrument direction.

Definition at line 235 of file GLATInstDir.cpp.

References m_dir.

Referenced by GLATInstDir(), and operator=().

void GLATInstDir::dir ( const GSkyDir dir)
inline

Set sky direction.

Parameters
[in]dirSky direction.

Set the sky direction.

Definition at line 126 of file GLATInstDir.hpp.

References dir(), and m_dir.

Referenced by GLATRoi::contains(), and GLATResponse::irf().

GSkyDir & GLATInstDir::dir ( void  )
inline

Returns reference to sky direction.

Returns
Reference to sky direction.

Returns reference to the sky direction.

Definition at line 98 of file GLATInstDir.hpp.

References m_dir.

Referenced by dir(), GLATInstDir(), and print().

const GSkyDir & GLATInstDir::dir ( void  ) const
inline

Returns reference to sky direction (const version)

Returns
Reference to sky direction.

Returns reference to the sky direction.

Definition at line 112 of file GLATInstDir.hpp.

References m_dir.

void GLATInstDir::free_members ( void  )
protected

Delete class members.

Definition at line 248 of file GLATInstDir.cpp.

Referenced by clear(), operator=(), and ~GLATInstDir().

void GLATInstDir::init_members ( void  )
protected

Initialise class members.

Definition at line 220 of file GLATInstDir.cpp.

References GSkyDir::clear(), and m_dir.

Referenced by clear(), GLATInstDir(), and operator=().

GLATInstDir & GLATInstDir::operator= ( const GLATInstDir dir)

Assignment operator.

Parameters
[in]dirInstrument direction.
Returns
Instrument direction.

Definition at line 127 of file GLATInstDir.cpp.

References copy_members(), free_members(), init_members(), and GInstDir::operator=().

std::string GLATInstDir::print ( const GChatter chatter = NORMAL) const
virtual

Print instrument direction information.

Parameters
[in]chatterChattiness (defaults to NORMAL).
Returns
String containing instrument direction information.

Implements GInstDir.

Definition at line 192 of file GLATInstDir.cpp.

References dir(), SILENT, and gammalib::str().

Referenced by GLATRoi::print(), and GLATEventAtom::print().

Member Data Documentation

GSkyDir GLATInstDir::m_dir
protected

Observed incident direction of event.

Definition at line 74 of file GLATInstDir.hpp.

Referenced by copy_members(), dir(), GLATInstDir(), and init_members().


The documentation for this class was generated from the following files: