Pulsar::DigitiserCounts Class Reference

Stores digitizer histograms. More...

#include <DigitiserCounts.h>

Inheritance diagram for Pulsar::DigitiserCounts:
Pulsar::Archive::Extension Reference::Able Reference::HeapTracked

Classes

class  SubintCounts
 Class representing an array of digitiser counts for a subint. More...
 

Public Member Functions

 DigitiserCounts (const Pulsar::DigitiserCounts &extension)
 
const DigitiserCountsoperator= (const DigitiserCounts &extension)
 
void Append (const DigitiserCounts &src)
 Append the counts from another DigitiserCounts to this one. More...
 
void Accumulate (const DigitiserCounts &src)
 Accumulate the counts from another DigitiserCounts onto this one. More...
 
void frequency_append (Archive *to, const Archive *from)
 Accumulate DigitiserCounts from another archive.
 
DigitiserCountsclone () const
 Clone method.
 
void CombineSubints (const unsigned subint, const unsigned start, const unsigned stop)
 Combine, by adding, multiple subints into one. More...
 
TextInterface::Parserget_interface ()
 Get the text interface.
 
void resize (unsigned nsubint, unsigned npol=0, unsigned nchan=0, unsigned nbin=0)
 Resize the extension.
 
void insert (unsigned isub)
 Insert a new zeroed subint at the given location.
 
void set_dig_mode (string s_dig_mode)
 
void set_nlev (int s_nlev)
 
void set_npthist (int s_npthist)
 
void set_diglev (string s_diglev)
 
void set_ndigr (int s_ndigr)
 
void set_dyn_levt (float s_dyn_levt)
 
string get_dig_mode (void) const
 
int get_nlev (void) const
 
int get_npthist (void) const
 
string get_diglev (void) const
 
int get_ndigr (void) const
 
float get_dyn_levt (void) const
 
- Public Member Functions inherited from Pulsar::Archive::Extension
 Extension (const char *name)
 Construct with a name.
 
virtual ~Extension ()
 Destructor.
 
std::string get_extension_name () const
 Return the name of the Extension.
 
virtual std::string get_short_name () const
 Return an abbreviated name that can be typed relatively quickly.
 
virtual bool has_data () const
 Returns true if the Extension contains useful data.
 
- Public Member Functions inherited from Reference::Able
 Able (const Able &)
 
Ableoperator= (const Able &)
 
unsigned get_reference_count () const
 
- Public Member Functions inherited from Reference::HeapTracked
 HeapTracked (const HeapTracked &)
 
HeapTrackedoperator= (const HeapTracked &)
 
bool __is_on_heap () const
 

Public Attributes

vector< SubintCountssubints
 

Additional Inherited Members

- Static Public Member Functions inherited from Pulsar::Archive::Extension
static Extensionfactory (const std::string &name)
 Derived type factory.
 
- Static Public Member Functions inherited from Reference::Able
static size_t get_instance_count ()
 
- Static Public Member Functions inherited from Reference::HeapTracked
static void * operator new (size_t size, void *ptr=0)
 
static void operator delete (void *location, void *ptr)
 
static void operator delete (void *location)
 
static size_t get_heap_queue_size ()
 
- Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
 
void __dereference (bool auto_delete=true) const
 
- Protected Attributes inherited from Pulsar::Archive::Extension
std::string extension_name
 Extension name - useful when debugging.
 

Detailed Description

Stores digitizer histograms.

Member Function Documentation

◆ Accumulate()

void DigitiserCounts::Accumulate ( const DigitiserCounts src)

Accumulate the counts from another DigitiserCounts onto this one.

Accumulate Add the count values together with those from the source given.

Parameters
srcThe DigitiserCounts extension to add to this one.
Exceptions
InvalidStateIf the number of subints or counts int the source differs from ours

Referenced by frequency_append().

◆ Append()

void DigitiserCounts::Append ( const DigitiserCounts src)

Append the counts from another DigitiserCounts to this one.

Append Append the counts for the subints from the source to our subints vector.

Parameters
srcThe DigitiserCounts extension to append to this one.
Exceptions
InvalidStateIf the number of subints in the source does not match ours

References Pulsar::IntegrationManager::verbose.

Referenced by Pulsar::TimeAppend::combine().

◆ CombineSubints()

void DigitiserCounts::CombineSubints ( const unsigned  subint,
const unsigned  start,
const unsigned  stop 
)

Combine, by adding, multiple subints into one.

CombineSubints Add the count values between two subints to a target subint.

Parameters
subintThe target subint which the values will be added to.
startThe beginning of the range.
stopThe end of the range.
Exceptions
InvalidRangeIf the start subint is > the stop subint.
InvalidRangeIf the target subint index is greater than or equal to the number of existing subints.

References Pulsar::IntegrationManager::verbose.

Referenced by Pulsar::TimeIntegrate::transform().


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

Generated using doxygen 1.8.17