nidas v1.2.3
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions | List of all members
ExtractDMT Class Reference
Inheritance diagram for ExtractDMT:
Inheritance graph
[legend]

Public Member Functions

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

Static Public Member Functions

static int main (int argc, char **argv) throw ()
 
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

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
 

Private Member Functions

size_t countParticles (Probe *probe, const unsigned char *record)
 Count number of particles in a record, also report miss-aligned data.
 
size_t computeDiodeCount (Probe *probe, const unsigned char *record)
 Sum occluded diodes along the flight path.
 

Constructor & Destructor Documentation

◆ ExtractDMT()

ExtractDMT::ExtractDMT ( )

Member Function Documentation

◆ computeDiodeCount()

size_t ExtractDMT::computeDiodeCount ( Probe * probe,
const unsigned char * record )
privatevirtual

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.

Implements nidas::dynld::raf::Extract2D.

References nidas::core::getSample(), P2D_DATA, and syncStr.

Referenced by run().

◆ countParticles()

size_t ExtractDMT::countParticles ( Probe * probe,
const unsigned char * record )
privatevirtual

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

Implements nidas::dynld::raf::Extract2D.

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

Referenced by run().

◆ main()

int ExtractDMT::main ( int argc,
char ** argv )
throw ( )
static

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

Referenced by main().

◆ parseRunstring()

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

Reimplemented from nidas::dynld::raf::Extract2D.

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

◆ run()

int ExtractDMT::run ( )
throw ( )
virtual

◆ sendDefaultHeader()

void HeaderSource::sendDefaultHeader ( SampleOutput * output)
staticinherited

◆ sendHeader()

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

◆ setDefaults()

void HeaderSource::setDefaults ( SampleInputHeader & header)
staticinherited

◆ setTimeStamp() [1/2]

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

Decode Sample time tag and place into outgoing record.

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

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

◆ setTimeStamp() [2/2]

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

◆ setupSignals()

void Extract2D::setupSignals ( )
staticinherited

◆ sigAction()

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

◆ usage()

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

Reimplemented from nidas::dynld::raf::Extract2D.

References nidas::core::getSample().

Member Data Documentation

◆ copyAllRecords

bool nidas::dynld::raf::Extract2D::copyAllRecords
protectedinherited

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

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

◆ excludeIds

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

◆ header

SampleInputHeader nidas::dynld::raf::Extract2D::header
protectedinherited

◆ includeIds

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

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

◆ inputFileNames

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

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

◆ interrupted

bool Extract2D::interrupted = false
staticprotectedinherited

◆ minNumberParticlesRequired

size_t nidas::dynld::raf::Extract2D::minNumberParticlesRequired
protectedinherited

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

◆ newids

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

◆ outputDiodeCount

bool nidas::dynld::raf::Extract2D::outputDiodeCount
protectedinherited

Whether to output diode count histogram.

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

◆ outputFileLength

int nidas::dynld::raf::Extract2D::outputFileLength
protectedinherited

◆ outputFileName

string nidas::dynld::raf::Extract2D::outputFileName
protectedinherited

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

◆ outputHeader

bool nidas::dynld::raf::Extract2D::outputHeader
protectedinherited

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

◆ outputParticleCount

bool nidas::dynld::raf::Extract2D::outputParticleCount
protectedinherited

Whether to output particle count histogram.

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

◆ xmlFileName

string nidas::dynld::raf::Extract2D::xmlFileName
protectedinherited

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


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