nidas  v1.2-1520
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 ()=0 throw ()
 
void sendHeader (dsm_time_t, SampleOutput *out) throw (nidas::util::IOException)
 Method called to write a header to an SampleOutput. More...
 

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) throw (nidas::util::IOException)
 

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. More...
 
virtual size_t computeDiodeCount (Probe *probe, const unsigned char *record)=0
 Sum occluded diodes along the flight path. More...
 
void setTimeStamp (P2d_rec &record, Sample *samp)
 Decode Sample time tag and place into outgoing record. More...
 
void setTimeStamp (PADS_rec &record, Sample *samp)
 

Protected Attributes

bool outputHeader
 
bool outputDiodeCount
 Whether to output diode count histogram. More...
 
bool outputParticleCount
 Whether to output particle count histogram. More...
 
bool copyAllRecords
 Copy 100% of 2D records from source file to output file, no filtering. More...
 
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_t
newids
 
size_t minNumberParticlesRequired
 

Static Protected Attributes

static bool interrupted = false
 

Constructor & Destructor Documentation

Extract2D::Extract2D ( )

Member Function Documentation

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.

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.

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

Reimplemented in ExtractDMT.

References usage().

Referenced by ExtractFast2D::main().

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

Implemented in ExtractFast2D, and ExtractDMT.

void HeaderSource::sendDefaultHeader ( SampleOutput output)
throw (nidas::util::IOException
)
staticinherited
void Extract2D::sendHeader ( dsm_time_t  ,
SampleOutput output 
)
throw (nidas::util::IOException
)
virtual

Method called to write a header to an SampleOutput.

Derived classes implement as they see fit.

Implements nidas::core::HeaderSource.

void HeaderSource::setDefaults ( SampleInputHeader header)
staticinherited
void Extract2D::setTimeStamp ( P2d_rec record,
Sample samp 
)
protected
void Extract2D::setTimeStamp ( PADS_rec record,
Sample samp 
)
protected
void Extract2D::setupSignals ( )
static

References sigAction().

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

References interrupted.

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

Reimplemented in ExtractDMT.

Member Data Documentation

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

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

set<dsm_sample_id_t> nidas::dynld::raf::Extract2D::excludeIds
protected
SampleInputHeader nidas::dynld::raf::Extract2D::header
protected
set<dsm_sample_id_t> nidas::dynld::raf::Extract2D::includeIds
protected
list<string> nidas::dynld::raf::Extract2D::inputFileNames
protected
bool Extract2D::interrupted = false
staticprotected
size_t nidas::dynld::raf::Extract2D::minNumberParticlesRequired
protected
map<dsm_sample_id_t,dsm_sample_id_t> nidas::dynld::raf::Extract2D::newids
protected
bool nidas::dynld::raf::Extract2D::outputDiodeCount
protected

Whether to output diode count histogram.

int nidas::dynld::raf::Extract2D::outputFileLength
protected
string nidas::dynld::raf::Extract2D::outputFileName
protected
bool nidas::dynld::raf::Extract2D::outputHeader
protected
bool nidas::dynld::raf::Extract2D::outputParticleCount
protected

Whether to output particle count histogram.

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

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