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

Acoustic event fit. More...

#include <JEvt.hh>

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

Classes

struct  JEvaluator
 Auxiliary class to determine value of acoustic events. More...
 

Public Member Functions

 JEvt ()
 Default constructor. More...
 
 JEvt (const JHead &header)
 Constructor. More...
 
virtual ~JEvt ()
 Virtual destructor. 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...
 

Friends

std::ostream & operator<< (std::ostream &out, const JEvt &event)
 Write event to output. More...
 

Detailed Description

Acoustic event fit.

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

Constructor & Destructor Documentation

JACOUSTICS::JEvt::JEvt ( )
inline

Default constructor.

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

333  :
334  JHead()
335  {}
JHead()
Default constructor.
JACOUSTICS::JEvt::JEvt ( const JHead header)
inline

Constructor.

Parameters
headerheader

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

343  :
344  JHead(header)
345  {}
JHead()
Default constructor.
virtual JACOUSTICS::JEvt::~JEvt ( )
inlinevirtual

Virtual destructor.

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

352  {}

Member Function Documentation

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

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
inlineoverridevirtual

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  ,
 
)
JACOUSTICS::JHead::ClassDef ( JHead  ,
 
)
inherited

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const JEvt event 
)
friend

Write event to output.

Parameters
outoutput stream
eventevent
Returns
output stream

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

363  {
364  using namespace std;
365 
366  out << event.oid << endl
367  << FIXED(20,5) << event.UNIXTimeStart << endl
368  << FIXED(20,5) << event.UNIXTimeStop << endl
369  << setw(5) << event.nhit << ' '
370  << setw(5) << event.nfit << ' '
371  << setw(4) << event.npar << endl
372  << FIXED(12,3) << event.chi2 << '/'
373  << FIXED(7,1) << event.ndf << endl;
374 
375  for (JEvt::const_iterator fit = event.begin(); fit != event.end(); ++fit) {
376  out << *fit << endl;
377  }
378 
379  return out;
380  }
Auxiliary data structure for floating point format specification.
Definition: JManip.hh:446

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: