34 #define CTBIN_NAME "ctbin"
73 explicit ctbin(
const GObservations&
obs);
74 ctbin(
int argc,
char *argv[]);
84 int cubes(
void)
const;
85 const GCTAEventCube&
cube(
const int& index = 0)
const;
87 void publish(
const std::string& name =
"");
97 void fill_cube(
const GCTAObservation* obs, GSkyMap& counts);
98 void set_weights(
const GCTAObservation* obs, GSkyMap& weights);
void init_members(void)
Initialise class members.
void clear(void)
Clear event binning tool.
GEbounds m_ebounds
Energy boundaries.
virtual ~ctbin(void)
Destructor.
const GObservations & obs(void) const
Return observation container.
std::vector< GSkyDir > m_dirs
Cached GSkyDir for all pixels.
void free_members(void)
Delete class members.
ctbin(void)
Void constructor.
bool m_stack
Output one stacked cube or multiple cubes.
void set_weights(const GCTAObservation *obs, GSkyMap &weights)
Set counts cube weights for a given observation.
std::vector< GCTAEventCube > m_cubes
Event cubes.
Observation tool base class interface definition.
Base class for observation tools.
void copy_members(const ctbin &app)
Copy class members.
ctbin & operator=(const ctbin &app)
Assignment operator.
GSkyDir m_mean_pnt
Mean pointing.
const GCTAEventCube & cube(const int &index=0) const
Return event cube at index.
void save(void)
Save counts cube.
std::vector< GSkyMap > m_weights
List of event cube weights.
GGti m_gti
Stacked Good time intervals.
void init_sky_dir_cache(void)
Initialise sky direction cache for cube stack.
bool m_publish
Publish counts cube?
int cubes(void) const
Return number of event cubes.
void get_parameters(void)
Get application parameters.
void fill_cube(const GCTAObservation *obs, GSkyMap &counts)
Fill events into counts cube.
double m_ontime
Total ontime.
void publish(const std::string &name="")
Publish counts cube.
void obs_cube_stacked(void)
Create output observation container.
std::vector< GSkyMap > m_counts
List of event cube counts.
void process(void)
Process the event binning tool.
double m_livetime
Total livetime.
GChatter m_chatter
Chattiness.
GSkyMap create_cube(const GCTAObservation *obs)
Create counts cube sky map for current observation.
std::string m_prefix
Prefix for multiple cubes.