Jpp  18.5.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | List of all members
JACOUSTICS::getSuperEvt Struct Reference

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

#include <JSuperEvtToolkit.hh>

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

Public Types

typedef std::vector< tx_ttx_type
 
typedef std::vector< rx_trx_type
 

Public Member Functions

template<class T >
 getSuperEvt (const JHead &header, const JModel &model, T begin, T end)
 Constructor. More...
 
virtual JReaderread (JReader &in) override
 Read from input. More...
 
virtual JWriterwrite (JWriter &out) const override
 Write to output. More...
 
 ClassDefOverride (JSuperEvt, 1)
 
 ClassDefOverride (JEvt, 7)
 
 ClassDef (JHead, 5)
 

Public Attributes

tx_type tx
 
rx_type rx
 
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 super event.

Definition at line 41 of file JSuperEvtToolkit.hh.

Member Typedef Documentation

Definition at line 190 of file JSuperEvt.hh.

Definition at line 191 of file JSuperEvt.hh.

Constructor & Destructor Documentation

template<class T >
JACOUSTICS::getSuperEvt::getSuperEvt ( const JHead header,
const JModel model,
T  begin,
T  end 
)
inline

Constructor.

Parameters
headerheader
modelmodel
beginbegin of hit data
endend of hit data

Definition at line 53 of file JSuperEvtToolkit.hh.

56  :
57  JSuperEvt(getEvt(header, model))
58  {
59  for (JModel::emission_type::const_iterator i = model.emission.begin(); i != model.emission.end(); ++i) {
60  this->tx.push_back(JSuperEvt::tx_t(i->first.getID(), i->first.getCounter(), i->second.t1));
61  }
62 
63  for (T i = begin; i != end; ++i) {
64  this->rx.push_back(JSuperEvt::rx_t(i->getID(), i->getCounter(), i->getString(), i->getFloor(), i->getValue(), i->getWeight()));
65  }
66  }
Acoustics transmission.
Definition: JSuperEvt.hh:118
do set_variable OUTPUT_DIRECTORY $WORKDIR T
JACOUSTICS::JModel::emission_type emission
JSuperEvt()
Default constructor.
Definition: JSuperEvt.hh:43
JEvt getEvt(const JHead &header, const JModel &model)
Get event.
Acoustics emission.
Definition: JSuperEvt.hh:61
container_type::const_iterator const_iterator
Definition: JHashMap.hh:86

Member Function Documentation

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

Read from input.

Parameters
inreader
Returns
reader

Reimplemented from JACOUSTICS::JEvt.

Definition at line 234 of file JSuperEvt.hh.

235  {
236  JEvt::read(in);
237 
238  in >> this->rx;
239  in >> this->tx;
240 
241  return in;
242  }
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:48
virtual JReader & read(JReader &in) override
Read from input.
virtual JWriter& JACOUSTICS::JSuperEvt::write ( JWriter out) const
inlineoverridevirtualinherited

Write to output.

Parameters
outwriter
Returns
writer

Reimplemented from JACOUSTICS::JEvt.

Definition at line 251 of file JSuperEvt.hh.

252  {
253  JEvt::write(out);
254 
255  out << this->rx;
256  out << this->tx;
257 
258  return out;
259  }
virtual JWriter & write(JWriter &out) const override
Write to output.
JACOUSTICS::JSuperEvt::ClassDefOverride ( JSuperEvt  ,
 
)
inherited
JACOUSTICS::JEvt::ClassDefOverride ( JEvt  ,
 
)
inherited
JACOUSTICS::JHead::ClassDef ( JHead  ,
 
)
inherited

Member Data Documentation

tx_type JACOUSTICS::JSuperEvt::tx
inherited

Definition at line 193 of file JSuperEvt.hh.

rx_type JACOUSTICS::JSuperEvt::rx
inherited

Definition at line 194 of file JSuperEvt.hh.

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: