PacMaster 2.0(r200)
Controls digital PAC measurements and collects the results
Public Member Functions | Static Public Member Functions

PacEvent Class Reference

Class encapsulating a single event on one of the detectors. More...

#include <PacEvent.h>

List of all members.

Public Member Functions

 PacEvent (unsigned int nodeid, qulonglong time=0, qreal energy=0.0)
 PacEvent (unsigned int nodeid, QByteArray data)
 ~PacEvent ()
qreal energy () const
qulonglong time () const
unsigned int nodeid () const
qulonglong eventid () const
void setEventId (qulonglong eventid)
void setCorrelated (bool corr)
bool correlated () const
const QByteArray toByteArray () const
 Gibt Daten als QByteArray zurück zum binären abspeichern. Length: 17byte. 1byte/uint8/nid, 8byte/uint64/time, 8byte/double/energy.
bool operator<= (PacEvent ev) const
bool operator>= (PacEvent ev) const
bool operator< (PacEvent ev) const
bool operator> (PacEvent ev) const
bool operator< (qulonglong time) const
bool operator<= (qulonglong time) const

Static Public Member Functions

static qint32 byteArrayLength ()
static QList
< Pac::DataFileColumns
getColumnContents ()
static QList
< Pac::DataFileColumType
getColumnTypes ()

Detailed Description

Class encapsulating a single event on one of the detectors.

Author:
Matthias Nagl <mnagl@uni-goettingen.de>

Constructor & Destructor Documentation

PacEvent::PacEvent ( unsigned int  nodeid,
qulonglong  time = 0,
qreal  energy = 0.0 
)
PacEvent::PacEvent ( unsigned int  nodeid,
QByteArray  data 
)
PacEvent::~PacEvent ( )

Member Function Documentation

static qint32 PacEvent::byteArrayLength ( ) [inline, static]
bool PacEvent::correlated ( ) const [inline]
qreal PacEvent::energy ( ) const [inline]
qulonglong PacEvent::eventid ( ) const [inline]
QList< Pac::DataFileColumns > PacEvent::getColumnContents ( ) [static]
QList< Pac::DataFileColumType > PacEvent::getColumnTypes ( ) [static]
unsigned int PacEvent::nodeid ( ) const [inline]
bool PacEvent::operator< ( qulonglong  time) const [inline]
bool PacEvent::operator< ( PacEvent  ev) const [inline]
bool PacEvent::operator<= ( qulonglong  time) const [inline]
bool PacEvent::operator<= ( PacEvent  ev) const [inline]
bool PacEvent::operator> ( PacEvent  ev) const [inline]
bool PacEvent::operator>= ( PacEvent  ev) const [inline]
void PacEvent::setCorrelated ( bool  corr) [inline]
void PacEvent::setEventId ( qulonglong  eventid) [inline]
qulonglong PacEvent::time ( ) const [inline]
const QByteArray PacEvent::toByteArray ( ) const

Gibt Daten als QByteArray zurück zum binären abspeichern. Length: 17byte. 1byte/uint8/nid, 8byte/uint64/time, 8byte/double/energy.

WARNING: If the output length of this method is changed byteArrayLength() must be updated!!


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends Defines