Jpp  19.1.0
the software that should make you happy
Public Member Functions | Public Attributes | Friends | List of all members
JACOUSTICS::JHead Struct Reference

Acoustic event header. More...

#include <JEvt.hh>

Inheritance diagram for JACOUSTICS::JHead:
JACOUSTICS::JEvt JACOUSTICS::JSuperEvt JACOUSTICS::getEvt JACOUSTICS::getSuperEvt

Public Member Functions

 JHead ()
 Default constructor. More...
 
 JHead (const int detid, const JTimeRange &range, const int nhit, const int nfit, const int npar, const double ndf, const double chi2)
 Constructor. More...
 
virtual ~JHead ()
 Virtual destructor. More...
 
 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

JReaderoperator>> (JReader &in, JHead &object)
 Read head from input. More...
 
JWriteroperator<< (JWriter &out, const JHead &object)
 Write head to output. More...
 

Detailed Description

Acoustic event header.

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

Constructor & Destructor Documentation

◆ JHead() [1/2]

JACOUSTICS::JHead::JHead ( )
inline

Default constructor.

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

162  :
163  detid(),
164  UNIXTimeStart(0.0),
165  UNIXTimeStop (0.0),
166  nhit(0),
167  nfit(0),
168  npar(0),
169  ndf (0.0),
170  chi2(0.0)
171  {}
int nhit
number of hits
double UNIXTimeStop
stop time
double ndf
weighed number of degrees of freedom
int detid
detector identifier
int nfit
number of hits used in fit (after outlier removal)
int npar
number of fit parameters
double UNIXTimeStart
start time

◆ JHead() [2/2]

JACOUSTICS::JHead::JHead ( const int  detid,
const JTimeRange range,
const int  nhit,
const int  nfit,
const int  npar,
const double  ndf,
const double  chi2 
)
inline

Constructor.

Parameters
detiddetector identifer
rangeUNIX start and stop time [s]
nhitnumber of hits
nfitnumber of hits used in fit (after outlier removal)
nparnumber of fit parameters
ndfweighed number of degrees of freedom
chi2chi2

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

191  :
192  detid(detid),
193  UNIXTimeStart(range.getLowerLimit()),
194  UNIXTimeStop (range.getUpperLimit()),
195  nhit(nhit),
196  nfit(nfit),
197  npar(npar),
198  ndf (ndf),
199  chi2(chi2)
200  {}
T getLowerLimit() const
Get lower limit.
Definition: JRange.hh:202
T getUpperLimit() const
Get upper limit.
Definition: JRange.hh:213

◆ ~JHead()

virtual JACOUSTICS::JHead::~JHead ( )
inlinevirtual

Virtual destructor.

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

207  {}

Member Function Documentation

◆ ClassDef()

JACOUSTICS::JHead::ClassDef ( JHead  ,
 
)

Friends And Related Function Documentation

◆ operator>>

JReader& operator>> ( JReader in,
JHead object 
)
friend

Read head from input.

Parameters
inreader
objecthead
Returns
reader

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

218  {
219  in >> object.detid;
220  in >> object.UNIXTimeStart;
221  in >> object.UNIXTimeStop;
222  in >> object.nhit;
223  in >> object.nfit;
224  in >> object.npar;
225  in >> object.ndf;
226  in >> object.chi2;
227 
228  return in;
229  }

◆ operator<<

JWriter& operator<< ( JWriter out,
const JHead object 
)
friend

Write head to output.

Parameters
outwriter
objecthead
Returns
writer

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

240  {
241  out << object.detid;
242  out << object.UNIXTimeStart;
243  out << object.UNIXTimeStop;
244  out << object.nhit;
245  out << object.nfit;
246  out << object.npar;
247  out << object.ndf;
248  out << object.chi2;
249 
250  return out;
251  }

Member Data Documentation

◆ detid

int JACOUSTICS::JHead::detid

detector identifier

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

◆ UNIXTimeStart

double JACOUSTICS::JHead::UNIXTimeStart

start time

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

◆ UNIXTimeStop

double JACOUSTICS::JHead::UNIXTimeStop

stop time

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

◆ nhit

int JACOUSTICS::JHead::nhit

number of hits

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

◆ nfit

int JACOUSTICS::JHead::nfit

number of hits used in fit (after outlier removal)

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

◆ npar

int JACOUSTICS::JHead::npar

number of fit parameters

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

◆ ndf

double JACOUSTICS::JHead::ndf

weighed number of degrees of freedom

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

◆ chi2

double JACOUSTICS::JHead::chi2

chi2

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


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