Jpp  18.0.1-rc.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
JACOUSTICS::getEvt Struct Reference

Auxiliary data structure to convert model to event. More...

#include <JEvtToolkit.hh>

Inheritance diagram for JACOUSTICS::getEvt:
JACOUSTICS::JEvt JIO::JSerialisable JACOUSTICS::JHead std::vector< JFit > TObject

Public Member Functions

 getEvt (const JHead &header, const JModel &model)
 Constructor. More...
 
virtual JReaderread (JReader &in) override
 Read from input. More...
 
virtual JWriterwrite (JWriter &out) const override
 Write to output. More...
 
 ClassDefOverride (JEvt, 7)
 
 ClassDef (JHead, 5)
 

Public Attributes

std::string oid
 detector identifier More...
 
double UNIXTimeStart
 start time More...
 
double UNIXTimeStop
 stop time More...
 
int nhit
 number of hits More...
 
int nfit
 number of hits used in fit (after outlier removal) More...
 
int npar
 number of fit parameters More...
 
double ndf
 weighed number of degrees of freedom More...
 
double chi2
 chi2 More...
 

Detailed Description

Auxiliary data structure to convert model to event.

Definition at line 114 of file JAcoustics/JEvtToolkit.hh.

Constructor & Destructor Documentation

JACOUSTICS::getEvt::getEvt ( const JHead header,
const JModel model 
)
inline

Constructor.

Parameters
headerheader
modelmodel

Definition at line 123 of file JAcoustics/JEvtToolkit.hh.

124  :
125  JEvt(header)
126  {
127  for (JModel::string_type::const_iterator i = model.string.begin(); i != model.string.end(); ++i) {
128  this->push_back(getFit(i->first, i->second));
129  }
130  }
JACOUSTICS::JModel::string_type string
JFit getFit(const int id, const JMODEL::JString &string)
Get fit parameters of string.
container_type::const_iterator const_iterator
Definition: JHashMap.hh:86
JEvt()
Default constructor.

Member Function Documentation

virtual JReader& JACOUSTICS::JEvt::read ( JReader in)
inlineoverridevirtualinherited

Read from input.

Parameters
inreader
Returns
reader

Implements JIO::JSerialisable.

Reimplemented in JACOUSTICS::JSuperEvt.

Definition at line 389 of file JAcoustics/JEvt.hh.

390  {
391  in >> static_cast<JHead&> (*this);
392  in >> static_cast<std::vector<JFit>&>(*this);
393 
394  return in;
395  }
Acoustic event header.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Definition: JCanberra.sh:46
virtual JWriter& JACOUSTICS::JEvt::write ( JWriter out) const
inlineoverridevirtualinherited

Write to output.

Parameters
outwriter
Returns
writer

Implements JIO::JSerialisable.

Reimplemented in JACOUSTICS::JSuperEvt.

Definition at line 404 of file JAcoustics/JEvt.hh.

405  {
406  out << static_cast<const JHead&> (*this);
407  out << static_cast<const std::vector<JFit>&>(*this);
408 
409  return out;
410  }
JACOUSTICS::JEvt::ClassDefOverride ( JEvt  ,
 
)
inherited
JACOUSTICS::JHead::ClassDef ( JHead  ,
 
)
inherited

Member Data Documentation

std::string JACOUSTICS::JHead::oid
inherited

detector identifier

Definition at line 255 of file JAcoustics/JEvt.hh.

double JACOUSTICS::JHead::UNIXTimeStart
inherited

start time

Definition at line 256 of file JAcoustics/JEvt.hh.

double JACOUSTICS::JHead::UNIXTimeStop
inherited

stop time

Definition at line 257 of file JAcoustics/JEvt.hh.

int JACOUSTICS::JHead::nhit
inherited

number of hits

Definition at line 258 of file JAcoustics/JEvt.hh.

int JACOUSTICS::JHead::nfit
inherited

number of hits used in fit (after outlier removal)

Definition at line 259 of file JAcoustics/JEvt.hh.

int JACOUSTICS::JHead::npar
inherited

number of fit parameters

Definition at line 260 of file JAcoustics/JEvt.hh.

double JACOUSTICS::JHead::ndf
inherited

weighed number of degrees of freedom

Definition at line 261 of file JAcoustics/JEvt.hh.

double JACOUSTICS::JHead::chi2
inherited

chi2

Definition at line 262 of file JAcoustics/JEvt.hh.


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