#include <HcalLaserDigi.h>
Public Member Functions | |
void | addTDCHit (int channel, int hittime) |
int | attenuator1 () const |
int | attenuator2 () const |
HcalLaserDigi () | |
int | hitChannel (size_t ihit) const |
double | hitNS (size_t ihit) const |
int | hitRaw (size_t ihit) const |
uint16_t | qadc (int i) const |
int | selector () const |
void | setLaserControl (int att1, int att2, int select) |
void | setQADC (const std::vector< uint16_t > &values) |
size_t | tdcHits () const |
Private Attributes | |
int32_t | attenuator1_ |
int32_t | attenuator2_ |
uint16_t | qadcraw_ [32] |
int32_t | selector_ |
std::vector< uint32_t > | tdcraw_ |
Definition at line 7 of file HcalLaserDigi.h.
HcalLaserDigi::HcalLaserDigi | ( | ) |
Definition at line 3 of file HcalLaserDigi.cc.
References attenuator1_, attenuator2_, i, qadcraw_, and selector_.
{ for (int i=0; i<32; ++i) qadcraw_[i]=0; attenuator1_=0; attenuator2_=0; selector_=0; }
void HcalLaserDigi::addTDCHit | ( | int | channel, |
int | hittime | ||
) |
Definition at line 15 of file HcalLaserDigi.cc.
References tdcraw_.
Referenced by HcalLaserUnpacker::unpack().
{ uint32_t packed=(hittime&0xFFFFFF)|((channel&0xFF)<<24); tdcraw_.push_back(packed); }
int HcalLaserDigi::attenuator1 | ( | ) | const [inline] |
int HcalLaserDigi::attenuator2 | ( | ) | const [inline] |
int HcalLaserDigi::hitChannel | ( | size_t | ihit | ) | const |
Definition at line 20 of file HcalLaserDigi.cc.
References tdcraw_.
double HcalLaserDigi::hitNS | ( | size_t | ihit | ) | const |
int HcalLaserDigi::hitRaw | ( | size_t | ihit | ) | const |
uint16_t HcalLaserDigi::qadc | ( | int | i | ) | const [inline] |
int HcalLaserDigi::selector | ( | void | ) | const [inline] |
void HcalLaserDigi::setLaserControl | ( | int | att1, |
int | att2, | ||
int | select | ||
) |
Definition at line 34 of file HcalLaserDigi.cc.
References attenuator1_, attenuator2_, benchmark_cfg::select, and selector_.
{ attenuator1_=att1; attenuator2_=att2; selector_=select; }
void HcalLaserDigi::setQADC | ( | const std::vector< uint16_t > & | values | ) |
size_t HcalLaserDigi::tdcHits | ( | ) | const [inline] |
int32_t HcalLaserDigi::attenuator1_ [private] |
Definition at line 25 of file HcalLaserDigi.h.
Referenced by attenuator1(), HcalLaserDigi(), and setLaserControl().
int32_t HcalLaserDigi::attenuator2_ [private] |
Definition at line 25 of file HcalLaserDigi.h.
Referenced by attenuator2(), HcalLaserDigi(), and setLaserControl().
uint16_t HcalLaserDigi::qadcraw_[32] [private] |
Definition at line 23 of file HcalLaserDigi.h.
Referenced by HcalLaserDigi(), qadc(), and setQADC().
int32_t HcalLaserDigi::selector_ [private] |
Definition at line 26 of file HcalLaserDigi.h.
Referenced by HcalLaserDigi(), selector(), and setLaserControl().
std::vector<uint32_t> HcalLaserDigi::tdcraw_ [private] |
Definition at line 24 of file HcalLaserDigi.h.
Referenced by addTDCHit(), hitChannel(), hitRaw(), and tdcHits().