Jpp master_rocky-44-g75b7c4f75
the software that should make you happy
Loading...
Searching...
No Matches
JACOUSTICS::getSuperEvt Struct Reference

Auxiliary data structure to convert model to super event. More...

#include <JSuperEvtToolkit.hh>

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

Public Types

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

Public Member Functions

template<class T >
 getSuperEvt (const JHead &header, const JModel &model, T begin, T end)
 Constructor.
 
virtual JReaderread (JReader &in) override
 Read from input.
 
virtual JWriterwrite (JWriter &out) const override
 Write to output.
 
 ClassDefOverride (JSuperEvt, 1)
 
 ClassDefOverride (JEvt, 8)
 
 ClassDef (JHead, 6)
 

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
 

Detailed Description

Auxiliary data structure to convert model to super event.

Definition at line 41 of file JSuperEvtToolkit.hh.

Member Typedef Documentation

◆ tx_type

Definition at line 190 of file JSuperEvt.hh.

◆ rx_type

Definition at line 191 of file JSuperEvt.hh.

Constructor & Destructor Documentation

◆ getSuperEvt()

template<class T >
JACOUSTICS::getSuperEvt::getSuperEvt ( const JHead & header,
const JModel & model,
T begin,
T end )
inline

Constructor.

Parameters
headerheader
modelmodel
beginbegin of hit data
endend of hit data

Definition at line 53 of file JSuperEvtToolkit.hh.

56 :
57 JSuperEvt(getEvt(header, model))
58 {
59 for (JModel::emission_type::const_iterator i = model.emission.begin(); i != model.emission.end(); ++i) {
60 this->tx.push_back(JSuperEvt::tx_t(i->first.getID(), i->first.getCounter(), i->second.t1));
61 }
62
63 for (T i = begin; i != end; ++i) {
64 this->rx.push_back(JSuperEvt::rx_t(i->getID(), i->getCounter(), i->getString(), i->getFloor(), i->getValue(), i->getWeight()));
65 }
66 }
JEvt getEvt(const JHead &header, const JModel &model)
Get event.
JSuperEvt()
Default constructor.
Definition JSuperEvt.hh:43
container_type::const_iterator const_iterator
Definition JHashMap.hh:86

Member Function Documentation

◆ read()

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

Read from input.

Parameters
inreader
Returns
reader

Implements JIO::JSerialisable.

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 }
virtual JReader & read(JReader &in) override
Read from input.

◆ write()

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

Write to output.

Parameters
outwriter
Returns
writer

Implements JIO::JSerialisable.

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.

◆ ClassDefOverride() [1/2]

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

◆ ClassDefOverride() [2/2]

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

◆ ClassDef()

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

Member Data Documentation

◆ tx

tx_type JACOUSTICS::JSuperEvt::tx
inherited

Definition at line 193 of file JSuperEvt.hh.

◆ rx

rx_type JACOUSTICS::JSuperEvt::rx
inherited

Definition at line 194 of file JSuperEvt.hh.

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