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];
27 bool all_strips =
false;
30 uint16_t bins = peds[0].size();
31 if (peds[0].
size() < peds[1].
size()) {
32 bins = peds[1].size();
34 for (uint16_t iped = 0; iped < bins; iped++) {
35 value[0][iped] = peds[0][iped];
36 value[1][iped] = peds[1][iped];
45 value[0][0] = anal->
pedsMax()[0];
46 value[1][0] = anal->
pedsMax()[1];
48 value[0][0] = anal->
pedsMin()[0];
49 value[1][0] = anal->
pedsMin()[1];
52 uint16_t bins = noise[0].size();
53 if (noise[0].
size() < noise[1].
size()) {
54 bins = noise[1].size();
56 for (uint16_t inoise = 0; inoise < bins; inoise++) {
57 value[0][inoise] = noise[0][inoise];
58 value[1][inoise] = noise[1][inoise];
73 value[0][0] = 1. * anal->
dead()[0].size();
74 value[1][0] = 1. * anal->
dead()[1].size();
76 value[0][0] = 1. * anal->
noisy()[0].size();
77 value[1][0] = 1. * anal->
noisy()[1].size();
80 <<
" Unexpected monitorable: "
93 for (uint16_t istr = 0; istr < value[0].size(); istr++) {
98 for (uint16_t istr = 0; istr < value[1].size(); istr++) {
109 generator_->axisLabel(
"Pedestal value [adc]");
115 generator_->axisLabel(
"Noise [adc]");
124 <<
" Unexpected SummaryHisto value:"
static std::string monitorable(const sistrip::Monitorable &)
const VVInt & dead() const
const VFloat & noiseMean() const
const VFloat & noiseSpread() const
sistrip::Monitorable mon_
const VFloat & pedsMax() const
const VFloat & pedsMean() const
void extract(Iterator) override
void fillMap(const std::string &top_level_dir, const sistrip::Granularity &, const uint32_t &key, const float &value, const float &error=0.)
const VVFloat & noise() const
const VVInt & noisy() const
sistrip::Granularity gran_
const VFloat & pedsSpread() const
const VFloat & noiseMin() const
static const char mlSummaryPlots_[]
const VFloat & noiseMax() const
SummaryGenerator * generator_
static const uint16_t invalid_
const VVFloat & peds() const
Histogram-based analysis for pedestal run.
Log< level::Warning, false > LogWarning
tuple size
Write out results.
const VFloat & pedsMin() const