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

Acoustic super event fit. More...

#include <JSuperEvt.hh>

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

Classes

struct  rx_t
 Acoustics transmission. More...
 
struct  tx_t
 Acoustics emission. More...
 

Public Types

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

Public Member Functions

 JSuperEvt ()
 Default constructor. More...
 
 JSuperEvt (const JEvt &event)
 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, 8)
 
 ClassDef (JHead, 6)
 

Public Attributes

tx_type tx
 
rx_type rx
 
int detid
 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 JSuperEvt &event)
 Write super event to output. More...
 

Detailed Description

Acoustic super event fit.

Definition at line 36 of file JSuperEvt.hh.

Member Typedef Documentation

Definition at line 190 of file JSuperEvt.hh.

Definition at line 191 of file JSuperEvt.hh.

Constructor & Destructor Documentation

JACOUSTICS::JSuperEvt::JSuperEvt ( )
inline

Default constructor.

Definition at line 43 of file JSuperEvt.hh.

43  :
44  JEvt()
45  {}
JEvt()
Default constructor.
JACOUSTICS::JSuperEvt::JSuperEvt ( const JEvt event)
inline

Constructor.

Parameters
eventevent

Definition at line 53 of file JSuperEvt.hh.

53  :
54  JEvt(event)
55  {}
JEvt()
Default constructor.

Member Function Documentation

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

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 The output file must have the wildcard in the e g root fi 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
inlineoverridevirtual

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

Friends And Related Function Documentation

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

Write super event to output.

Parameters
outoutput stream
eventsuper event
Returns
output stream

Definition at line 203 of file JSuperEvt.hh.

204  {
205  using namespace std;
206 
207  out << static_cast<const JEvt&>(event);
208 
209  for (JSuperEvt::tx_type::const_iterator i = event.tx.begin(); i != event.tx.end(); ++i) {
210  out << setw(2) << i->id << ' '
211  << setw(6) << i->counter << ' '
212  << FIXED(20,6) << i->toe << endl;
213  }
214 
215  for (JSuperEvt::rx_type::const_iterator i = event.rx.begin(); i != event.rx.end(); ++i) {
216  out << setw(2) << i->id << ' '
217  << setw(6) << i->counter << ' '
218  << setw(4) << i->string << ' '
219  << setw(2) << i->floor << ' '
220  << FIXED(20,6) << i->toa << ' '
221  << FIXED( 5,2) << i->weight << endl;
222  }
223 
224  return out;
225  }
Auxiliary data structure for floating point format specification.
Definition: JManip.hh:446

Member Data Documentation

tx_type JACOUSTICS::JSuperEvt::tx

Definition at line 193 of file JSuperEvt.hh.

rx_type JACOUSTICS::JSuperEvt::rx

Definition at line 194 of file JSuperEvt.hh.

int JACOUSTICS::JHead::detid
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: