Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
KM3NETDAQ::JDAQKeyHit Class Reference

DAQ key hit. More...

#include <JDAQKeyHit.hh>

Inheritance diagram for KM3NETDAQ::JDAQKeyHit:
KM3NETDAQ::JDAQModuleIdentifier KM3NETDAQ::JDAQHit KM3NETDAQ::JDAQTriggeredHit

Public Types

typedef unsigned char JPMT_t
 PMT channel in FPGA.
 
typedef unsigned int JTDC_t
 leading edge [ns]
 
typedef unsigned char JTOT_t
 time over threshold [ns]
 

Public Member Functions

 JDAQKeyHit ()
 Default constructor.
 
 JDAQKeyHit (const JDAQModuleIdentifier &id, const JDAQHit &hit)
 Constructor.
 
virtual ~JDAQKeyHit ()
 Virtual destructor.
 
 operator JDAQPMTIdentifier () const
 Type conversion operator.
 
 ClassDef (JDAQKeyHit, 1)
 
const JDAQModuleIdentifiergetModuleIdentifier () const
 Get Module identifier.
 
void setModuleIdentifier (const JDAQModuleIdentifier &module)
 Set Module identifier.
 
int getModuleID () const
 Get module identifier.
 
 ClassDefNV (JDAQModuleIdentifier, 1)
 
JPMT_t getPMT () const
 Get PMT.
 
JTDC_t getT () const
 Get time.
 
JTOT_t getToT () const
 Get time-over-threshold.
 
 ClassDefNV (JDAQHit, 2)
 

Static Public Member Functions

static JTOT_t getMaximalToT ()
 Get maximal time-over-threshold.
 

Protected Attributes

int id
 
JPMT_t pmt
 PMT readout channel in FPGA.
 
JTDC_t tdc
 leading edge [ns]
 
JTOT_t tot
 time over threshold [ns]
 

Friends

size_t getSizeof ()
 Definition of method to get size of data type.
 
JReaderoperator>> (JReader &in, JDAQKeyHit &hit)
 Read JDAQKeyHit from input.
 
JWriteroperator<< (JWriter &out, const JDAQKeyHit &hit)
 Write JDAQKeyHit to output.
 

Detailed Description

DAQ key hit.

Definition at line 19 of file JDAQKeyHit.hh.

Member Typedef Documentation

◆ JPMT_t

unsigned char KM3NETDAQ::JDAQHit::JPMT_t
inherited

PMT channel in FPGA.

Definition at line 38 of file JDAQHit.hh.

◆ JTDC_t

unsigned int KM3NETDAQ::JDAQHit::JTDC_t
inherited

leading edge [ns]

Definition at line 39 of file JDAQHit.hh.

◆ JTOT_t

unsigned char KM3NETDAQ::JDAQHit::JTOT_t
inherited

time over threshold [ns]

Definition at line 40 of file JDAQHit.hh.

Constructor & Destructor Documentation

◆ JDAQKeyHit() [1/2]

KM3NETDAQ::JDAQKeyHit::JDAQKeyHit ( )
inline

Default constructor.

Definition at line 32 of file JDAQKeyHit.hh.

32 :
34 JDAQHit()
35 {}
JDAQHit()
Default constructor.
Definition JDAQHit.hh:49
JDAQModuleIdentifier()
Default constructor.

◆ JDAQKeyHit() [2/2]

KM3NETDAQ::JDAQKeyHit::JDAQKeyHit ( const JDAQModuleIdentifier & id,
const JDAQHit & hit )
inline

Constructor.

Parameters
idmodule identifier
hitPMT hit

Definition at line 44 of file JDAQKeyHit.hh.

45 :
47 JDAQHit(hit)
48 {}

◆ ~JDAQKeyHit()

virtual KM3NETDAQ::JDAQKeyHit::~JDAQKeyHit ( )
inlinevirtual

Virtual destructor.

Definition at line 54 of file JDAQKeyHit.hh.

55 {}

Member Function Documentation

◆ operator JDAQPMTIdentifier()

KM3NETDAQ::JDAQKeyHit::operator JDAQPMTIdentifier ( ) const
inline

Type conversion operator.

Returns
axis

Definition at line 63 of file JDAQKeyHit.hh.

64 {
65 return JDAQPMTIdentifier(this->getModuleID(), this->getPMT());
66 }
JPMT_t getPMT() const
Get PMT.
Definition JDAQHit.hh:75
int getModuleID() const
Get module identifier.

◆ ClassDef()

KM3NETDAQ::JDAQKeyHit::ClassDef ( JDAQKeyHit ,
1  )

◆ getModuleIdentifier()

const JDAQModuleIdentifier & KM3NETDAQ::JDAQModuleIdentifier::getModuleIdentifier ( ) const
inlineinherited

Get Module identifier.

Returns
Module identifier

Definition at line 50 of file JDAQModuleIdentifier.hh.

51 {
52 return *this;
53 }

◆ setModuleIdentifier()

void KM3NETDAQ::JDAQModuleIdentifier::setModuleIdentifier ( const JDAQModuleIdentifier & module)
inlineinherited

Set Module identifier.

Parameters
moduleModule identifier

Definition at line 61 of file JDAQModuleIdentifier.hh.

62 {
63 *this = module;
64 }

◆ getModuleID()

int KM3NETDAQ::JDAQModuleIdentifier::getModuleID ( ) const
inlineinherited

Get module identifier.

Returns
module identifier

Definition at line 72 of file JDAQModuleIdentifier.hh.

◆ ClassDefNV() [1/2]

KM3NETDAQ::JDAQModuleIdentifier::ClassDefNV ( JDAQModuleIdentifier ,
1  )
inherited

◆ getPMT()

JPMT_t KM3NETDAQ::JDAQHit::getPMT ( ) const
inlineinherited

Get PMT.

Returns
PMT

Definition at line 75 of file JDAQHit.hh.

76 {
77 return pmt;
78 }
JPMT_t pmt
PMT readout channel in FPGA.
Definition JDAQHit.hh:158

◆ getT()

JTDC_t KM3NETDAQ::JDAQHit::getT ( ) const
inlineinherited

Get time.

Returns
time [ns]

Definition at line 86 of file JDAQHit.hh.

87 {
88 return ntohl(tdc);
89 }
JTDC_t tdc
leading edge [ns]
Definition JDAQHit.hh:159

◆ getToT()

JTOT_t KM3NETDAQ::JDAQHit::getToT ( ) const
inlineinherited

Get time-over-threshold.

Returns
time-over-threshold [ns]

Definition at line 97 of file JDAQHit.hh.

98 {
99 return tot;
100 }
JTOT_t tot
time over threshold [ns]
Definition JDAQHit.hh:160

◆ getMaximalToT()

static JTOT_t KM3NETDAQ::JDAQHit::getMaximalToT ( )
inlinestaticinherited

Get maximal time-over-threshold.

Returns
time-over-threshold [ns]

Definition at line 108 of file JDAQHit.hh.

109 {
110 return 0xFF;
111 }

◆ ClassDefNV() [2/2]

KM3NETDAQ::JDAQHit::ClassDefNV ( JDAQHit ,
2  )
inherited

Friends And Related Symbol Documentation

◆ getSizeof

size_t getSizeof ( )
friend

Definition of method to get size of data type.

This method should be specialised for each desired data type with fixed length.

Returns
number of bytes

◆ operator>>

JReader & operator>> ( JReader & in,
JDAQKeyHit & hit )
friend

Read JDAQKeyHit from input.

Parameters
inJReader
hitJDAQKeyHit
Returns
JReader

Definition at line 36 of file JDAQKeyHitIO.hh.

37 {
38 in >> static_cast<JDAQModuleIdentifier&>(hit);
39 in >> static_cast<JDAQHit&> (hit);
40
41 return in;
42 }
Hit data structure.
Definition JDAQHit.hh:35

◆ operator<<

JWriter & operator<< ( JWriter & out,
const JDAQKeyHit & hit )
friend

Write JDAQKeyHit to output.

Parameters
outJWriter
hitJDAQKeyHit
Returns
JWriter

Definition at line 52 of file JDAQKeyHitIO.hh.

53 {
54 out << static_cast<const JDAQModuleIdentifier&>(hit);
55 out << static_cast<const JDAQHit&> (hit);
56
57 return out;
58 }

Member Data Documentation

◆ id

int KM3NETDAQ::JDAQModuleIdentifier::id
protectedinherited

Definition at line 112 of file JDAQModuleIdentifier.hh.

◆ pmt

JPMT_t KM3NETDAQ::JDAQHit::pmt
protectedinherited

PMT readout channel in FPGA.

Definition at line 158 of file JDAQHit.hh.

◆ tdc

JTDC_t KM3NETDAQ::JDAQHit::tdc
protectedinherited

leading edge [ns]

Definition at line 159 of file JDAQHit.hh.

◆ tot

JTOT_t KM3NETDAQ::JDAQHit::tot
protectedinherited

time over threshold [ns]

Definition at line 160 of file JDAQHit.hh.


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