Jpp  18.0.0-rc.3
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | Friends | List of all members
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. More...
 
typedef unsigned int JTDC_t
 leading edge [ns] More...
 
typedef unsigned char JTOT_t
 time over threshold [ns] More...
 

Public Member Functions

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

Static Public Member Functions

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

Protected Attributes

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

Friends

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

Detailed Description

DAQ key hit.

Definition at line 19 of file JDAQKeyHit.hh.

Member Typedef Documentation

typedef unsigned char KM3NETDAQ::JDAQHit::JPMT_t
inherited

PMT channel in FPGA.

Definition at line 38 of file JDAQHit.hh.

typedef unsigned int KM3NETDAQ::JDAQHit::JTDC_t
inherited

leading edge [ns]

Definition at line 39 of file JDAQHit.hh.

typedef unsigned char KM3NETDAQ::JDAQHit::JTOT_t
inherited

time over threshold [ns]

Definition at line 40 of file JDAQHit.hh.

Constructor & Destructor Documentation

KM3NETDAQ::JDAQKeyHit::JDAQKeyHit ( )
inline

Default constructor.

Definition at line 32 of file JDAQKeyHit.hh.

32  :
34  JDAQHit()
35  {}
JDAQModuleIdentifier()
Default constructor.
JDAQHit()
Default constructor.
Definition: JDAQHit.hh:49
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  {}
JDAQModuleIdentifier()
Default constructor.
JDAQHit()
Default constructor.
Definition: JDAQHit.hh:49
virtual KM3NETDAQ::JDAQKeyHit::~JDAQKeyHit ( )
inlinevirtual

Virtual destructor.

Definition at line 54 of file JDAQKeyHit.hh.

55  {}

Member Function Documentation

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  }
int getModuleID() const
Get module identifier.
JPMT_t getPMT() const
Get PMT.
Definition: JDAQHit.hh:75
KM3NETDAQ::JDAQKeyHit::ClassDef ( JDAQKeyHit  ,
 
)
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  }
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  }
int KM3NETDAQ::JDAQModuleIdentifier::getModuleID ( ) const
inlineinherited

Get module identifier.

Returns
module identifier

Definition at line 72 of file JDAQModuleIdentifier.hh.

73  {
74  return id;
75  }
KM3NETDAQ::JDAQModuleIdentifier::ClassDefNV ( JDAQModuleIdentifier  ,
 
)
inherited
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
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
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
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  }
KM3NETDAQ::JDAQHit::ClassDefNV ( JDAQHit  ,
 
)
inherited

Friends And Related Function Documentation

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
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:34
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Definition: JCanberra.sh:46
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

int KM3NETDAQ::JDAQModuleIdentifier::id
protectedinherited

Definition at line 112 of file JDAQModuleIdentifier.hh.

JPMT_t KM3NETDAQ::JDAQHit::pmt
protectedinherited

PMT readout channel in FPGA.

Definition at line 158 of file JDAQHit.hh.

JTDC_t KM3NETDAQ::JDAQHit::tdc
protectedinherited

leading edge [ns]

Definition at line 159 of file JDAQHit.hh.

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: