Jpp  master_rocky-40-g5f0272dcd
the software that should make you happy
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::JSuperEvt JACOUSTICS::getEvt 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, 8)
 
 ClassDef (JHead, 6)
 

Public Attributes

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

Detailed Description

Acoustic event fit.

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

Constructor & Destructor Documentation

◆ JEvt() [1/2]

JACOUSTICS::JEvt::JEvt ( )
inline

Default constructor.

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

339  :
340  JHead()
341  {}
JHead()
Default constructor.

◆ JEvt() [2/2]

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

Constructor.

Parameters
headerheader

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

349  :
350  JHead(header)
351  {}

◆ ~JEvt()

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

Virtual destructor.

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

358  {}

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

396  {
397  in >> static_cast<JHead&> (*this);
398  in >> static_cast<std::vector<JFit>&>(*this);
399 
400  return in;
401  }
Acoustic event header.

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

411  {
412  out << static_cast<const JHead&> (*this);
413  out << static_cast<const std::vector<JFit>&>(*this);
414 
415  return out;
416  }

◆ ClassDefOverride()

JACOUSTICS::JEvt::ClassDefOverride ( JEvt  ,
 
)

◆ ClassDef()

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

Friends And Related Function 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 368 of file JAcoustics/JEvt.hh.

369  {
370  using namespace std;
371 
372  out << event.detid << endl
373  << FIXED(20,5) << event.UNIXTimeStart << endl
374  << FIXED(20,5) << event.UNIXTimeStop << endl
375  << setw(5) << event.nhit << ' '
376  << setw(5) << event.nfit << ' '
377  << setw(4) << event.npar << endl
378  << FIXED(12,3) << event.chi2 << '/'
379  << FIXED(7,1) << event.ndf << endl;
380 
381  for (JEvt::const_iterator fit = event.begin(); fit != event.end(); ++fit) {
382  out << *fit << endl;
383  }
384 
385  return out;
386  }
Definition: JSTDTypes.hh:14
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 255 of file JAcoustics/JEvt.hh.

◆ UNIXTimeStart

double JACOUSTICS::JHead::UNIXTimeStart
inherited

start time

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

◆ UNIXTimeStop

double JACOUSTICS::JHead::UNIXTimeStop
inherited

stop time

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

◆ nhit

int JACOUSTICS::JHead::nhit
inherited

number of hits

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

◆ nfit

int JACOUSTICS::JHead::nfit
inherited

number of hits used in fit (after outlier removal)

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

◆ npar

int JACOUSTICS::JHead::npar
inherited

number of fit parameters

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

◆ ndf

double JACOUSTICS::JHead::ndf
inherited

weighed number of degrees of freedom

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

◆ chi2

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: