#include <HcalFiberPattern.h>
- Author
- J. Mans - Minnesota
Definition at line 14 of file HcalFiberPattern.h.
◆ HcalFiberPattern()
HcalFiberPattern::HcalFiberPattern |
( |
const std::map< std::string, std::string > & |
params, |
|
|
const std::vector< uint32_t > & |
data |
|
) |
| |
◆ crate()
int HcalFiberPattern::crate |
( |
| ) |
const |
|
inline |
◆ fiber()
int HcalFiberPattern::fiber |
( |
| ) |
const |
|
inline |
◆ getId()
◆ getSamples()
std::vector< HcalQIESample > HcalFiberPattern::getSamples |
( |
int |
bunch, |
|
|
int |
npresamples, |
|
|
int |
nsamples, |
|
|
int |
fiberChan |
|
) |
| |
Definition at line 49 of file HcalFiberPattern.cc.
50 if (bunch < npresamples)
52 <<
"Asked for " << npresamples <<
" presamples with event at bunch " << bunch;
53 if (nsamples - npresamples + bunch >= (
int)(
pattern_.size() / 2))
55 <<
"Asked for " << nsamples <<
" with event at " << bunch <<
" and " << npresamples <<
" presamples, but only "
56 <<
pattern_.size() / 2 <<
" bunches are available";
58 std::vector<HcalQIESample> retval;
59 retval.reserve(nsamples);
61 for (
int i = 0;
i < nsamples;
i++) {
62 int bc = bunch +
i - npresamples;
63 retval.push_back(
unpack(bc, fiberChan));
References Exception, mps_fire::i, pattern_, and unpack().
◆ slot()
int HcalFiberPattern::slot |
( |
void |
| ) |
const |
|
inline |
◆ unpack()
◆ crate_
int HcalFiberPattern::crate_ |
|
private |
◆ dcc_
int HcalFiberPattern::dcc_ |
|
private |
◆ fiber_
int HcalFiberPattern::fiber_ |
|
private |
◆ pattern_
std::vector<uint32_t> HcalFiberPattern::pattern_ |
|
private |
◆ slot_
int HcalFiberPattern::slot_ |
|
private |
◆ spigot_
int HcalFiberPattern::spigot_ |
|
private |
◆ tb_
int HcalFiberPattern::tb_ |
|
private |