A BMON hit.
More...
#include <Hit.h>
|
| Hit (uint32_t address, const CbmBmonDigi &digi) |
| Constructor from a single digi.
|
|
| Hit (uint32_t address, const CbmBmonDigi &digiL, const CbmBmonDigi &digiR) |
| Constructor from two digis.
|
|
| Hit (uint32_t address, double time, double timeError, uint8_t nChannels) |
| Constructor.
|
|
uint32_t | GetAddress () const |
| Gets hardware address.
|
|
uint8_t | GetNofChannels () const |
| Gets number of channels.
|
|
double | GetTime () const |
| Gets time [ns].
|
|
double | GetTimeError () const |
| Gets time error [ns].
|
|
void | SetAddress (uint32_t address) |
| Sets address.
|
|
void | SetNofChannels (uint8_t nofChannels) |
| Sets number of channels.
|
|
void | SetTime (double time) |
| Sets time.
|
|
void | SetTimeError (double timeError) |
| Sets time error.
|
|
|
template<class Archive > |
void | serialize (Archive &ar, unsigned int) |
|
A BMON hit.
Definition at line 23 of file detectors/bmon/Hit.h.
◆ Hit() [1/3]
cbm::algo::bmon::Hit::Hit |
( |
uint32_t | address, |
|
|
const CbmBmonDigi & | digi ) |
|
inline |
◆ Hit() [2/3]
◆ Hit() [3/3]
cbm::algo::bmon::Hit::Hit |
( |
uint32_t | address, |
|
|
double | time, |
|
|
double | timeError, |
|
|
uint8_t | nChannels ) |
|
inline |
Constructor.
- Parameters
-
address | Address of diamond (the channel is not stored) |
time | Time of the hit [ns] |
timeError | Time error of the hit [ns] |
nChannels | Number of channels used (either one or two) |
Definition at line 50 of file detectors/bmon/Hit.h.
◆ GetAddress()
uint32_t cbm::algo::bmon::Hit::GetAddress |
( |
| ) |
const |
|
inline |
◆ GetNofChannels()
uint8_t cbm::algo::bmon::Hit::GetNofChannels |
( |
| ) |
const |
|
inline |
◆ GetTime()
double cbm::algo::bmon::Hit::GetTime |
( |
| ) |
const |
|
inline |
◆ GetTimeError()
double cbm::algo::bmon::Hit::GetTimeError |
( |
| ) |
const |
|
inline |
◆ serialize()
template<class Archive >
void cbm::algo::bmon::Hit::serialize |
( |
Archive & | ar, |
|
|
unsigned int | ) |
|
inlineprivate |
◆ SetAddress()
void cbm::algo::bmon::Hit::SetAddress |
( |
uint32_t | address | ) |
|
|
inline |
◆ SetNofChannels()
void cbm::algo::bmon::Hit::SetNofChannels |
( |
uint8_t | nofChannels | ) |
|
|
inline |
Sets number of channels.
- Parameters
-
nofChannels | Number of channels (digis), used to create a hit |
Definition at line 76 of file detectors/bmon/Hit.h.
References fNofChannels.
◆ SetTime()
void cbm::algo::bmon::Hit::SetTime |
( |
double | time | ) |
|
|
inline |
◆ SetTimeError()
void cbm::algo::bmon::Hit::SetTimeError |
( |
double | timeError | ) |
|
|
inline |
◆ boost::serialization::access
friend class boost::serialization::access |
|
friend |
◆ fAddress
uint32_t cbm::algo::bmon::Hit::fAddress {0} |
|
private |
◆ fNofChannels
uint8_t cbm::algo::bmon::Hit::fNofChannels {0} |
|
private |
◆ fTime
double cbm::algo::bmon::Hit::fTime {0.} |
|
private |
◆ fTimeError
double cbm::algo::bmon::Hit::fTimeError {0.} |
|
private |
The documentation for this class was generated from the following file: