Jpp 19.3.0-rc.3
the software that should make you happy
Loading...
Searching...
No Matches
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::JSuperEvt JACOUSTICS::getEvt JACOUSTICS::getSuperEvt

Classes

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

Public Member Functions

 JEvt ()
 Default constructor.
 
 JEvt (const JHead &header)
 Constructor.
 
virtual ~JEvt ()
 Virtual destructor.
 
virtual JReaderread (JReader &in) override
 Read from input.
 
virtual JWriterwrite (JWriter &out) const override
 Write to output.
 
 ClassDefOverride (JEvt, 9)
 
 ClassDef (JHead, 7)
 

Public Attributes

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 JEvt &event)
 Write event to output.
 

Detailed Description

Acoustic event fit.

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

Constructor & Destructor Documentation

◆ JEvt() [1/2]

JACOUSTICS::JEvt::JEvt ( )
inline

Default constructor.

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

345 :
346 JHead()
347 {}
JHead()
Default constructor.

◆ JEvt() [2/2]

JACOUSTICS::JEvt::JEvt ( const JHead & header)
inline

Constructor.

Parameters
headerheader

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

355 :
356 JHead(header)
357 {}

◆ ~JEvt()

virtual JACOUSTICS::JEvt::~JEvt ( )
inlinevirtual

Virtual destructor.

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

364 {}

Member Function Documentation

◆ read()

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 401 of file JAcoustics/JEvt.hh.

402 {
403 in >> static_cast<JHead&> (*this);
404 in >> static_cast<std::vector<JFit>&>(*this);
405
406 return in;
407 }

◆ write()

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 416 of file JAcoustics/JEvt.hh.

417 {
418 out << static_cast<const JHead&> (*this);
419 out << static_cast<const std::vector<JFit>&>(*this);
420
421 return out;
422 }

◆ ClassDefOverride()

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

◆ ClassDef()

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

Friends And Related Symbol Documentation

◆ operator<<

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

Write event to output.

Parameters
outoutput stream
eventevent
Returns
output stream

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

375 {
376 using namespace std;
377
378 out << event.detid << endl
379 << FIXED(20,5) << event.UNIXTimeStart << endl
380 << FIXED(20,5) << event.UNIXTimeStop << endl
381 << setw(5) << event.nhit << ' '
382 << setw(5) << event.nfit << ' '
383 << setw(4) << event.npar << endl
384 << FIXED(12,3) << event.chi2 << '/'
385 << FIXED(7,1) << event.ndf << endl;
386
387 for (JEvt::const_iterator fit = event.begin(); fit != event.end(); ++fit) {
388 out << *fit << endl;
389 }
390
391 return out;
392 }
Auxiliary data structure for floating point format specification.
Definition JManip.hh:448

Member Data Documentation

◆ 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: