Pulsar::ChannelSubsetMatch Class Reference

Determine if one set of channels is a subset of another. More...

#include <ChannelSubsetMatch.h>

Public Member Functions

 ChannelSubsetMatch ()
 Default constructor.
 ~ChannelSubsetMatch ()
 Default constructor.
bool match (const Archive *super, const Archive *sub)
 Check that Archive sub's channels all exist in super.
bool match (const Database::StaticEntry *super, const Database::StaticEntry *sub)
 Same test for Database::StaticEntry objects.
int super_channel (const Archive *super, const Archive *sub, int subchan)
int sub_channel (const Archive *super, const Archive *sub, int superchan)
std::string get_reason () const
 Get reason for match failure.
template<class Container>
unsigned match_channel (const Container *container, double frequency, double tolerance=0.0)

Protected Attributes

std::string reason
 Match failure reason.
double freq_tol
 Fractional freq matching tolerance.
double bw_tol
 Fractional BW matching tolerance.

Detailed Description

Determine if one set of channels is a subset of another.

Member Function Documentation

◆ sub_channel()

int ChannelSubsetMatch::sub_channel ( const Archive * super,
const Archive * sub,
int superchan )

Return channel in sub matching the given channel in super -1 == no match

References Pulsar::Integration::get_centre_frequency(), and Pulsar::IntegrationManager::get_Integration().

◆ super_channel()

int ChannelSubsetMatch::super_channel ( const Archive * super,
const Archive * sub,
int subchan )

Return channel in super matching the given channel in sub -1 == no match

References Pulsar::Integration::get_centre_frequency(), and Pulsar::IntegrationManager::get_Integration().


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

Generated using doxygen 1.14.0