Jpp test-rotations-old
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, 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
 

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

◆ rx_type

Definition at line 190 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:42
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 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
inlineoverridevirtualinherited

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  )
inherited

◆ ClassDefOverride() [2/2]

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

◆ ClassDef()

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

Member Data Documentation

◆ tx

tx_type JACOUSTICS::JSuperEvt::tx
inherited

Definition at line 192 of file JSuperEvt.hh.

◆ rx

rx_type JACOUSTICS::JSuperEvt::rx
inherited

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: