Jpp 19.3.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
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.
 
 JSuperEvt (const JEvt &event)
 Constructor.
 
virtual JReaderread (JReader &in) override
 Read from input.
 
virtual JWriterwrite (JWriter &out) const override
 Write to output.
 
 ClassDefOverride (JSuperEvt, 1)
 
 ClassDefOverride (JEvt, 9)
 
 ClassDef (JHead, 7)
 

Public Attributes

tx_type tx
 
rx_type rx
 
int detid
 detector identifier
 
double UNIXTimeStart
 start time
 
double UNIXTimeStop
 stop time
 
int nhit
 number of hits
 
int nfit
 number of hits used in fit (after outlier removal)
 
int npar
 number of fit parameters
 
double ndf
 weighed number of degrees of freedom
 
double chi2
 chi2
 
int numberOfIterations
 number of iterations
 

Friends

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

Detailed Description

Acoustic super event fit.

Definition at line 35 of file JSuperEvt.hh.

Member Typedef Documentation

◆ tx_type

◆ rx_type

Constructor & Destructor Documentation

◆ JSuperEvt() [1/2]

JACOUSTICS::JSuperEvt::JSuperEvt ( )
inline

Default constructor.

Definition at line 42 of file JSuperEvt.hh.

42 :
43 JEvt()
44 {}
JEvt()
Default constructor.

◆ JSuperEvt() [2/2]

JACOUSTICS::JSuperEvt::JSuperEvt ( const JEvt & event)
inline

Constructor.

Parameters
eventevent

Definition at line 52 of file JSuperEvt.hh.

52 :
53 JEvt(event)
54 {}

Member Function Documentation

◆ read()

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

Read from input.

Parameters
inreader
Returns
reader

Implements JIO::JSerialisable.

Definition at line 233 of file JSuperEvt.hh.

234 {
235 JEvt::read(in);
236
237 in >> this->rx;
238 in >> this->tx;
239
240 return in;
241 }
virtual JReader & read(JReader &in) override
Read from input.

◆ write()

virtual JWriter & JACOUSTICS::JSuperEvt::write ( JWriter & out) const
inlineoverridevirtual

Write to output.

Parameters
outwriter
Returns
writer

Implements JIO::JSerialisable.

Definition at line 250 of file JSuperEvt.hh.

251 {
252 JEvt::write(out);
253
254 out << this->rx;
255 out << this->tx;
256
257 return out;
258 }
virtual JWriter & write(JWriter &out) const override
Write to output.

◆ ClassDefOverride() [1/2]

JACOUSTICS::JSuperEvt::ClassDefOverride ( JSuperEvt ,
1  )

◆ ClassDefOverride() [2/2]

JACOUSTICS::JEvt::ClassDefOverride ( JEvt ,
9  )
inherited

◆ ClassDef()

JACOUSTICS::JHead::ClassDef ( JHead ,
7  )
inherited

Friends And Related Symbol Documentation

◆ operator<<

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 202 of file JSuperEvt.hh.

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

Member Data Documentation

◆ tx

tx_type JACOUSTICS::JSuperEvt::tx

Definition at line 192 of file JSuperEvt.hh.

◆ rx

rx_type JACOUSTICS::JSuperEvt::rx

Definition at line 193 of file JSuperEvt.hh.

◆ detid

int JACOUSTICS::JHead::detid
inherited

detector identifier

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

◆ UNIXTimeStart

double JACOUSTICS::JHead::UNIXTimeStart
inherited

start time

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

◆ UNIXTimeStop

double JACOUSTICS::JHead::UNIXTimeStop
inherited

stop time

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

◆ nhit

int JACOUSTICS::JHead::nhit
inherited

number of hits

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

◆ nfit

int JACOUSTICS::JHead::nfit
inherited

number of hits used in fit (after outlier removal)

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

◆ npar

int JACOUSTICS::JHead::npar
inherited

number of fit parameters

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

◆ ndf

double JACOUSTICS::JHead::ndf
inherited

weighed number of degrees of freedom

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

◆ chi2

double JACOUSTICS::JHead::chi2
inherited

chi2

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

◆ numberOfIterations

int JACOUSTICS::JHead::numberOfIterations
inherited

number of iterations

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


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