nidas v1.2.3
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
nidas::dynld::raf::Extract2D Class Referenceabstract

#include <Extract2D.h>

Inheritance diagram for nidas::dynld::raf::Extract2D:
Inheritance graph
[legend]

Public Member Functions

 Extract2D ()
 
virtual int parseRunstring (int argc, char **argv) throw ()
 
virtual int usage (const char *argv0)
 
virtual int run () throw () =0
 
void sendHeader (dsm_time_t, SampleOutput *out)
 

Static Public Member Functions

static void sigAction (int sig, siginfo_t *siginfo, void *)
 
static void setupSignals ()
 
static void setDefaults (SampleInputHeader &header)
 
static void sendDefaultHeader (SampleOutput *output)
 

Protected Member Functions

virtual size_t countParticles (Probe *probe, const unsigned char *record)=0
 Count number of particles in a record, also report miss-aligned data.
 
virtual size_t computeDiodeCount (Probe *probe, const unsigned char *record)=0
 Sum occluded diodes along the flight path.
 
void setTimeStamp (P2d_rec &record, Sample *samp)
 Decode Sample time tag and place into outgoing record.
 
void setTimeStamp (PADS_rec &record, Sample *samp)
 

Protected Attributes

bool outputHeader
 
bool outputDiodeCount
 Whether to output diode count histogram.
 
bool outputParticleCount
 Whether to output particle count histogram.
 
bool copyAllRecords
 Copy 100% of 2D records from source file to output file, no filtering.
 
string xmlFileName
 
list< string > inputFileNames
 
string outputFileName
 
int outputFileLength
 
SampleInputHeader header
 
set< dsm_sample_id_tincludeIds
 
set< dsm_sample_id_texcludeIds
 
map< dsm_sample_id_t, dsm_sample_id_tnewids
 
size_t minNumberParticlesRequired
 

Static Protected Attributes

static bool interrupted = false
 

Constructor & Destructor Documentation

◆ Extract2D()

Extract2D::Extract2D ( )

Member Function Documentation

◆ computeDiodeCount()

virtual size_t nidas::dynld::raf::Extract2D::computeDiodeCount ( Probe * probe,
const unsigned char * record )
protectedpure virtual

Sum occluded diodes along the flight path.

This increments for the whole flight. Help find stuck bits.

Returns
the number of diodes that had positives in the record.

Implemented in ExtractFast2D, and ExtractDMT.

◆ countParticles()

virtual size_t nidas::dynld::raf::Extract2D::countParticles ( Probe * probe,
const unsigned char * record )
protectedpure virtual

Count number of particles in a record, also report miss-aligned data.

Implemented in ExtractFast2D, and ExtractDMT.

◆ parseRunstring()

int Extract2D::parseRunstring ( int argc,
char ** argv )
throw ( )
virtual

Reimplemented in ExtractDMT.

References nidas::core::getSample(), and usage().

◆ run()

virtual int nidas::dynld::raf::Extract2D::run ( )
throw ( )
pure virtual

Implemented in ExtractFast2D, and ExtractDMT.

◆ sendDefaultHeader()

void HeaderSource::sendDefaultHeader ( SampleOutput * output)
staticinherited

◆ sendHeader()

void Extract2D::sendHeader ( dsm_time_t ,
SampleOutput * out )
virtual

◆ setDefaults()

void HeaderSource::setDefaults ( SampleInputHeader & header)
staticinherited

◆ setTimeStamp() [1/2]

void Extract2D::setTimeStamp ( P2d_rec & record,
Sample * samp )
protected

Decode Sample time tag and place into outgoing record.

References nidas::core::getSample(), and nidas::core::Sample::getTimeTag().

Referenced by ExtractFast2D::run(), and ExtractDMT::run().

◆ setTimeStamp() [2/2]

void Extract2D::setTimeStamp ( PADS_rec & record,
Sample * samp )
protected

◆ setupSignals()

void Extract2D::setupSignals ( )
static

◆ sigAction()

void Extract2D::sigAction ( int sig,
siginfo_t * siginfo,
void *  )
static

References nidas::core::getSample(), and interrupted.

Referenced by setupSignals().

◆ usage()

int Extract2D::usage ( const char * argv0)
virtual

Reimplemented in ExtractDMT.

References nidas::core::getSample().

Member Data Documentation

◆ copyAllRecords

bool nidas::dynld::raf::Extract2D::copyAllRecords
protected

Copy 100% of 2D records from source file to output file, no filtering.

Referenced by ExtractFast2D::run(), and ExtractDMT::run().

◆ excludeIds

set<dsm_sample_id_t> nidas::dynld::raf::Extract2D::excludeIds
protected

◆ header

SampleInputHeader nidas::dynld::raf::Extract2D::header
protected

◆ includeIds

set<dsm_sample_id_t> nidas::dynld::raf::Extract2D::includeIds
protected

◆ inputFileNames

list<string> nidas::dynld::raf::Extract2D::inputFileNames
protected

◆ interrupted

bool Extract2D::interrupted = false
staticprotected

◆ minNumberParticlesRequired

size_t nidas::dynld::raf::Extract2D::minNumberParticlesRequired
protected

◆ newids

map<dsm_sample_id_t,dsm_sample_id_t> nidas::dynld::raf::Extract2D::newids
protected

◆ outputDiodeCount

bool nidas::dynld::raf::Extract2D::outputDiodeCount
protected

Whether to output diode count histogram.

Referenced by ExtractFast2D::run(), and ExtractDMT::run().

◆ outputFileLength

int nidas::dynld::raf::Extract2D::outputFileLength
protected

◆ outputFileName

string nidas::dynld::raf::Extract2D::outputFileName
protected

◆ outputHeader

bool nidas::dynld::raf::Extract2D::outputHeader
protected

◆ outputParticleCount

bool nidas::dynld::raf::Extract2D::outputParticleCount
protected

Whether to output particle count histogram.

Referenced by ExtractFast2D::run(), and ExtractDMT::run().

◆ xmlFileName

string nidas::dynld::raf::Extract2D::xmlFileName
protected

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