8 using namespace sistrip;
19 std::vector<std::vector<float> >
value(2, temp);
20 std::vector<std::vector<float> > peds(2, temp);
21 std::vector<std::vector<float> >
noise(2, temp);
22 peds[0] = anal->
peds()[0];
23 peds[1] = anal->
peds()[1];
24 noise[0] = anal->
noise()[0];
25 noise[1] = anal->
noise()[1];
28 bool all_strips =
false;
31 uint16_t bins = peds[0].size();
32 if (peds[0].
size() < peds[1].
size()) {
33 bins = peds[1].size();
35 for (uint16_t iped = 0; iped < bins; iped++) {
36 value[0][iped] = peds[0][iped];
37 value[1][iped] = peds[1][iped];
46 value[0][0] = anal->
pedsMax()[0];
47 value[1][0] = anal->
pedsMax()[1];
49 value[0][0] = anal->
pedsMin()[0];
50 value[1][0] = anal->
pedsMin()[1];
53 uint16_t bins = noise[0].size();
54 if (noise[0].
size() < noise[1].
size()) {
55 bins = noise[1].size();
57 for (uint16_t inoise = 0; inoise < bins; inoise++) {
58 value[0][inoise] = noise[0][inoise];
59 value[1][inoise] = noise[1][inoise];
74 value[0][0] = 1. * anal->
dead()[0].size();
75 value[1][0] = 1. * anal->
dead()[1].size();
77 value[0][0] = 1. * anal->
noisy()[0].size();
78 value[1][0] = 1. * anal->
noisy()[1].size();
80 valueAlt = anal->
base();
82 valueAlt = anal->
peak();
87 <<
" Unexpected monitorable: "
103 for (uint16_t istr = 0; istr < value[0].size(); istr++) {
108 for (uint16_t istr = 0; istr < value[1].size(); istr++) {
119 generator_->axisLabel(
"Pedestal value [adc]");
125 generator_->axisLabel(
"Noise [adc]");
142 <<
" Unexpected SummaryHisto value:"
static std::string monitorable(const sistrip::Monitorable &)
const VFloat & noiseMean() const
const VVInt & dead() const
sistrip::Monitorable mon_
const VFloat & noiseSpread() const
const VFloat & noiseMax() const
void fillMap(const std::string &top_level_dir, const sistrip::Granularity &, const uint32_t &key, const float &value, const float &error=0.)
const VFloat & pedsSpread() const
const VVFloat & noise() const
const float & base() const
const VVFloat & peds() const
const float & height() const
sistrip::Granularity gran_
const VFloat & noiseMin() const
const float & peak() const
static const char mlSummaryPlots_[]
const VFloat & pedsMean() const
const VVInt & noisy() const
SummaryGenerator * generator_
static const uint16_t invalid_
const VFloat & pedsMax() const
const VFloat & pedsMin() const
Log< level::Warning, false > LogWarning
void axisLabel(const std::string &)
tuple size
Write out results.
void extract(Iterator) override
Analysis for scope mode data.