8 using namespace sistrip;
15 if ( !anal ) {
return; }
18 std::vector< std::vector<float> >
value( 2, temp );
19 std::vector< std::vector<float> > peds( 2, temp );
20 std::vector< std::vector<float> > noise( 2, temp );
21 peds[0] = anal->
peds()[0];
22 peds[1] = anal->
peds()[1];
23 noise[0] = anal->
noise()[0];
24 noise[1] = anal->
noise()[1];
26 bool all_strips =
false;
29 uint16_t
bins = peds[0].size();
30 if ( peds[0].
size() < peds[1].
size() ) { bins = peds[1].size(); }
31 for ( uint16_t iped = 0; iped <
bins; iped++ ) {
32 value[0][iped] = peds[0][iped];
33 value[1][iped] = peds[1][iped];
42 value[0][0] = anal->
pedsMax()[0];
43 value[1][0] = anal->
pedsMax()[1];
45 value[0][0] = anal->
pedsMin()[0];
46 value[1][0] = anal->
pedsMin()[1];
49 uint16_t
bins = noise[0].size();
50 if ( noise[0].
size() < noise[1].
size() ) { bins = noise[1].size(); }
51 for ( uint16_t inoise = 0; inoise <
bins; inoise++ ) {
52 value[0][inoise] = noise[0][inoise];
53 value[1][inoise] = noise[1][inoise];
68 value[0][0] = 1. * anal->
dead()[0].size();
69 value[1][0] = 1. * anal->
dead()[1].size();
71 value[0][0] = 1. * anal->
noisy()[0].size();
72 value[1][0] = 1. * anal->
noisy()[1].size();
75 <<
"[SummaryPlotFactory::" << __func__ <<
"]"
76 <<
" Unexpected monitorable: "
95 for ( uint16_t istr = 0; istr < value[0].size(); istr++ ) {
102 for ( uint16_t istr = 0; istr < value[1].size(); istr++ ) {
118 generator_->axisLabel(
"Pedestal value [adc]" );
124 generator_->axisLabel(
"Noise [adc]" );
133 <<
"[SummaryPlotFactory::" << __func__ <<
"]"
134 <<
" Unexpected SummaryHisto value:"
static std::string monitorable(const sistrip::Monitorable &)
const VFloat & pedsMean() const
const VVInt & noisy() const
sistrip::Monitorable mon_
const VVFloat & peds() const
const VFloat & noiseMean() 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 & pedsMin() const
const VVFloat & noise() const
Histogram-based analysis for pedestal run.
const VVInt & dead() const
sistrip::Granularity gran_
static const char mlSummaryPlots_[]
SummaryGenerator * generator_
static const uint16_t invalid_
const VFloat & pedsSpread() const
const VFloat & pedsMax() const
const VFloat & noiseSpread() const
const VFloat & noiseMax() const
tuple size
Write out results.
const VFloat & noiseMin() const