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

COMPTEL selection set class. More...

#include <GCOMSelection.hpp>

Inheritance diagram for GCOMSelection:
GBase

Public Member Functions

 GCOMSelection (void)
 Void constructor. More...
 
 GCOMSelection (const GCOMSelection &select)
 Copy constructor. More...
 
virtual ~GCOMSelection (void)
 Destructor. More...
 
GCOMSelectionoperator= (const GCOMSelection &select)
 Assignment operator. More...
 
virtual void clear (void)
 Clear COMPTEL selection set. More...
 
virtual GCOMSelectionclone (void) const
 Clone COMPTEL selection set. More...
 
virtual std::string classname (void) const
 Return class name. More...
 
virtual std::string print (const GChatter &chatter=NORMAL) const
 Print COMPTEL selection set. More...
 
void init_statistics (void) const
 Initialise selection statistics. More...
 
bool use_event (const GCOMEventAtom &event) const
 Check if event should be used. 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 GCOMSelection &select)
 Copy class members. More...
 
void free_members (void)
 Delete class members. More...
 

Protected Attributes

double m_e1_min
 Minimum D1 energy deposit (MeV) More...
 
double m_e1_max
 Maximum D1 energy deposit (MeV) More...
 
double m_e2_min
 Minimum D2 energy deposit (MeV) More...
 
double m_e2_max
 Maximum D2 energy deposit (MeV) More...
 
double m_tof_min
 Minimum TOF window. More...
 
double m_tof_max
 Maximum TOF window. More...
 
double m_psd_min
 Minimum PSD window. More...
 
double m_psd_max
 Maximum PSD window. More...
 
double m_zeta_min
 Minimum Earth horizon angle - Phibar window. More...
 
double m_zeta_max
 Maximum Earth horizon angle - Phibar window. More...
 
int m_reflag_min
 Minimum rejection flag. More...
 
int m_reflag_max
 Maximum rejection flag. More...
 
int m_vetoflag_min
 Minimum veto flag. More...
 
int m_vetoflag_max
 Maximum veto flag. More...
 
int m_num_events_checked
 Number of checked events. More...
 
int m_num_events_used
 Number of used events. More...
 
int m_num_events_rejected
 Number of rejected events. More...
 
int m_num_e1_min
 Number of events below E1 threshold. More...
 
int m_num_e1_max
 Number of events above E1 threshold. More...
 
int m_num_e2_min
 Number of events below E2 threshold. More...
 
int m_num_e2_max
 Number of events above E2 threshold. More...
 
int m_num_tof_min
 Number of events below TOF threshold. More...
 
int m_num_tof_max
 Number of events above TOF threshold. More...
 
int m_num_psd_min
 Number of events below PSD threshold. More...
 
int m_num_psd_max
 Number of events above PSD threshold. More...
 
int m_num_zeta_min
 Number of events below Zeta threshold. More...
 
int m_num_zeta_max
 Number of events above Zeta threshold. More...
 
int m_num_reflag_min
 Number of events below rejection flag threshold. More...
 
int m_num_reflag_max
 Number of events above rejection flag threshold. More...
 
int m_num_vetoflag_min
 Number of events below rejection flag threshold. More...
 
int m_num_vetoflag_max
 Number of events above rejection flag threshold. More...
 
int m_num_no_scatter
 Number of events without scatter angle. More...
 
int m_num_invalid_modcom
 Number of events with invalid minitelescopes. More...
 

Detailed Description

COMPTEL selection set class.

This class implements a COMPTEL selection set.

Definition at line 47 of file GCOMSelection.hpp.

Constructor & Destructor Documentation

GCOMSelection::GCOMSelection ( void  )

Void constructor.

Definition at line 53 of file GCOMSelection.cpp.

References init_members().

Referenced by clone().

GCOMSelection::GCOMSelection ( const GCOMSelection select)

Copy constructor.

Parameters
[in]selectCOMPTEL selection set.

Definition at line 68 of file GCOMSelection.cpp.

References copy_members(), and init_members().

GCOMSelection::~GCOMSelection ( void  )
virtual

Destructor.

Definition at line 84 of file GCOMSelection.cpp.

References free_members().

Member Function Documentation

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

Return class name.

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

Implements GBase.

Definition at line 119 of file GCOMSelection.hpp.

void GCOMSelection::clear ( void  )
virtual

Clear COMPTEL selection set.

Implements GBase.

Definition at line 136 of file GCOMSelection.cpp.

References free_members(), and init_members().

Referenced by GCOMDri::init_members().

GCOMSelection * GCOMSelection::clone ( void  ) const
virtual

Clone COMPTEL selection set.

Returns
Pointer to deep copy of COMPTEL selection set.

Implements GBase.

Definition at line 154 of file GCOMSelection.cpp.

References GCOMSelection().

void GCOMSelection::free_members ( void  )
protected

Delete class members.

Definition at line 466 of file GCOMSelection.cpp.

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

void GCOMSelection::init_members ( void  )
protected

Initialise class members.

< Minimum D1 energy deposit (MeV)

< Maximum D1 energy deposit (MeV)

< Minimum D2 energy deposit (MeV)

< Maximum D2 energy deposit (MeV)

< Minimum TOF window

< Maximum TOF window

< Minimum PSD window

< Maximum PSD window

< Minimum Earth horizon angle - Phibar window

< Maximum Earth horizon angle - Phibar window

< Minimum rejection flag

< Maximum rejection flag

< Minimum veto flag

< Maximum veto flag

Definition at line 388 of file GCOMSelection.cpp.

References init_statistics(), m_e1_max, m_e1_min, m_e2_max, m_e2_min, m_psd_max, m_psd_min, m_reflag_max, m_reflag_min, m_tof_max, m_tof_min, m_vetoflag_max, m_vetoflag_min, m_zeta_max, and m_zeta_min.

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

GCOMSelection & GCOMSelection::operator= ( const GCOMSelection select)

Assignment operator.

Parameters
[in]selectCOMPTEL selection set.
Returns
COMPTEL selection set.

Definition at line 106 of file GCOMSelection.cpp.

References copy_members(), free_members(), and init_members().

Member Data Documentation

double GCOMSelection::m_e1_max
protected

Maximum D1 energy deposit (MeV)

Definition at line 76 of file GCOMSelection.hpp.

Referenced by copy_members(), init_members(), print(), and use_event().

double GCOMSelection::m_e1_min
protected

Minimum D1 energy deposit (MeV)

Definition at line 75 of file GCOMSelection.hpp.

Referenced by copy_members(), init_members(), print(), and use_event().

double GCOMSelection::m_e2_max
protected

Maximum D2 energy deposit (MeV)

Definition at line 78 of file GCOMSelection.hpp.

Referenced by copy_members(), init_members(), print(), and use_event().

double GCOMSelection::m_e2_min
protected

Minimum D2 energy deposit (MeV)

Definition at line 77 of file GCOMSelection.hpp.

Referenced by copy_members(), init_members(), print(), and use_event().

int GCOMSelection::m_num_e1_max
mutableprotected

Number of events above E1 threshold.

Definition at line 95 of file GCOMSelection.hpp.

Referenced by copy_members(), init_statistics(), print(), and use_event().

int GCOMSelection::m_num_e1_min
mutableprotected

Number of events below E1 threshold.

Definition at line 94 of file GCOMSelection.hpp.

Referenced by copy_members(), init_statistics(), print(), and use_event().

int GCOMSelection::m_num_e2_max
mutableprotected

Number of events above E2 threshold.

Definition at line 97 of file GCOMSelection.hpp.

Referenced by copy_members(), init_statistics(), print(), and use_event().

int GCOMSelection::m_num_e2_min
mutableprotected

Number of events below E2 threshold.

Definition at line 96 of file GCOMSelection.hpp.

Referenced by copy_members(), init_statistics(), print(), and use_event().

int GCOMSelection::m_num_events_checked
mutableprotected

Number of checked events.

Definition at line 91 of file GCOMSelection.hpp.

Referenced by copy_members(), init_statistics(), print(), and use_event().

int GCOMSelection::m_num_events_rejected
mutableprotected

Number of rejected events.

Definition at line 93 of file GCOMSelection.hpp.

Referenced by copy_members(), init_statistics(), print(), and use_event().

int GCOMSelection::m_num_events_used
mutableprotected

Number of used events.

Definition at line 92 of file GCOMSelection.hpp.

Referenced by copy_members(), init_statistics(), print(), and use_event().

int GCOMSelection::m_num_invalid_modcom
mutableprotected

Number of events with invalid minitelescopes.

Definition at line 109 of file GCOMSelection.hpp.

Referenced by copy_members(), init_statistics(), print(), and use_event().

int GCOMSelection::m_num_no_scatter
mutableprotected

Number of events without scatter angle.

Definition at line 108 of file GCOMSelection.hpp.

Referenced by copy_members(), init_statistics(), print(), and use_event().

int GCOMSelection::m_num_psd_max
mutableprotected

Number of events above PSD threshold.

Definition at line 101 of file GCOMSelection.hpp.

Referenced by copy_members(), init_statistics(), print(), and use_event().

int GCOMSelection::m_num_psd_min
mutableprotected

Number of events below PSD threshold.

Definition at line 100 of file GCOMSelection.hpp.

Referenced by copy_members(), init_statistics(), print(), and use_event().

int GCOMSelection::m_num_reflag_max
mutableprotected

Number of events above rejection flag threshold.

Definition at line 105 of file GCOMSelection.hpp.

Referenced by copy_members(), init_statistics(), print(), and use_event().

int GCOMSelection::m_num_reflag_min
mutableprotected

Number of events below rejection flag threshold.

Definition at line 104 of file GCOMSelection.hpp.

Referenced by copy_members(), init_statistics(), print(), and use_event().

int GCOMSelection::m_num_tof_max
mutableprotected

Number of events above TOF threshold.

Definition at line 99 of file GCOMSelection.hpp.

Referenced by copy_members(), init_statistics(), print(), and use_event().

int GCOMSelection::m_num_tof_min
mutableprotected

Number of events below TOF threshold.

Definition at line 98 of file GCOMSelection.hpp.

Referenced by copy_members(), init_statistics(), print(), and use_event().

int GCOMSelection::m_num_vetoflag_max
mutableprotected

Number of events above rejection flag threshold.

Definition at line 107 of file GCOMSelection.hpp.

Referenced by copy_members(), init_statistics(), print(), and use_event().

int GCOMSelection::m_num_vetoflag_min
mutableprotected

Number of events below rejection flag threshold.

Definition at line 106 of file GCOMSelection.hpp.

Referenced by copy_members(), init_statistics(), print(), and use_event().

int GCOMSelection::m_num_zeta_max
mutableprotected

Number of events above Zeta threshold.

Definition at line 103 of file GCOMSelection.hpp.

Referenced by copy_members(), init_statistics(), print(), and use_event().

int GCOMSelection::m_num_zeta_min
mutableprotected

Number of events below Zeta threshold.

Definition at line 102 of file GCOMSelection.hpp.

Referenced by copy_members(), init_statistics(), print(), and use_event().

double GCOMSelection::m_psd_max
protected

Maximum PSD window.

Definition at line 82 of file GCOMSelection.hpp.

Referenced by copy_members(), init_members(), print(), and use_event().

double GCOMSelection::m_psd_min
protected

Minimum PSD window.

Definition at line 81 of file GCOMSelection.hpp.

Referenced by copy_members(), init_members(), print(), and use_event().

int GCOMSelection::m_reflag_max
protected

Maximum rejection flag.

Definition at line 86 of file GCOMSelection.hpp.

Referenced by copy_members(), init_members(), print(), and use_event().

int GCOMSelection::m_reflag_min
protected

Minimum rejection flag.

Definition at line 85 of file GCOMSelection.hpp.

Referenced by copy_members(), init_members(), print(), and use_event().

double GCOMSelection::m_tof_max
protected

Maximum TOF window.

Definition at line 80 of file GCOMSelection.hpp.

Referenced by copy_members(), init_members(), print(), and use_event().

double GCOMSelection::m_tof_min
protected

Minimum TOF window.

Definition at line 79 of file GCOMSelection.hpp.

Referenced by copy_members(), init_members(), print(), and use_event().

int GCOMSelection::m_vetoflag_max
protected

Maximum veto flag.

Definition at line 88 of file GCOMSelection.hpp.

Referenced by copy_members(), init_members(), print(), and use_event().

int GCOMSelection::m_vetoflag_min
protected

Minimum veto flag.

Definition at line 87 of file GCOMSelection.hpp.

Referenced by copy_members(), init_members(), print(), and use_event().

double GCOMSelection::m_zeta_max
protected

Maximum Earth horizon angle - Phibar window.

Definition at line 84 of file GCOMSelection.hpp.

Referenced by copy_members(), init_members(), print(), and use_event().

double GCOMSelection::m_zeta_min
protected

Minimum Earth horizon angle - Phibar window.

Definition at line 83 of file GCOMSelection.hpp.

Referenced by copy_members(), init_members(), print(), and use_event().


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