#include <CommissioningTask.h>
Public Member Functions | |
uint32_t | bin (float value) |
void | histo (MonitorElement *) |
MonitorElement * | histo () |
HistoSet () | |
Public Attributes | |
bool | explicitFill_ |
bool | isProfile_ |
std::vector< float > | vNumOfEntries_ |
std::vector< float > | vSumOfContents_ |
std::vector< double > | vSumOfSquares_ |
Private Attributes | |
TAxis * | axis_ |
MonitorElement * | histo_ |
Simple container class holding pointer to root histogram, and vectors in which data are cached and used to update histo.
Definition at line 37 of file CommissioningTask.h.
CommissioningTask::HistoSet::HistoSet | ( | ) |
Definition at line 86 of file CommissioningTask.cc.
: vNumOfEntries_(), vSumOfContents_(), vSumOfSquares_(), isProfile_(true), explicitFill_(false), histo_(0), axis_(0) {;}
uint32_t CommissioningTask::HistoSet::bin | ( | float | value | ) |
Definition at line 130 of file CommissioningTask.cc.
References axis_, and newFWLiteAna::bin.
Referenced by CommissioningTask::updateHistoSet().
{ if ( !axis_ ) { return 0; } float range = axis_->GetXmax() - axis_->GetXmin(); if ( range > 0. ) { int32_t bin = static_cast<int32_t>( ( value - axis_->GetXmin() ) * ( axis_->GetNbins() / range ) ) + 1; if ( bin < 0 ) { return 0; } else if ( bin > axis_->GetNbins() ) { return static_cast<uint32_t>( axis_->GetNbins() + 1 ); } else { return bin; } } else { return 0; } }
void CommissioningTask::HistoSet::histo | ( | MonitorElement * | me | ) |
Definition at line 114 of file CommissioningTask.cc.
References axis_, extract(), and trackerHits::histo.
Referenced by FedTimingTask::book(), FineDelayTask::book(), DaqScopeModeTask::book(), LatencyTask::book(), CalibrationScanTask::book(), PedsOnlyTask::book(), NoiseTask::book(), FastFedCablingTask::book(), ApvTimingTask::book(), PedsFullNoiseTask::book(), CalibrationScanTask::checkAndSave(), PedsFullNoiseTask::update(), and CommissioningTask::updateHistoSet().
MonitorElement * CommissioningTask::HistoSet::histo | ( | ) |
Definition at line 106 of file CommissioningTask.cc.
{ return histo_; }
TAxis* CommissioningTask::HistoSet::axis_ [private] |
Definition at line 50 of file CommissioningTask.h.
Definition at line 47 of file CommissioningTask.h.
Referenced by PedsFullNoiseTask::book(), and CommissioningTask::updateHistoSet().
Definition at line 49 of file CommissioningTask.h.
Definition at line 46 of file CommissioningTask.h.
Referenced by DaqScopeModeTask::book(), LatencyTask::book(), CalibrationScanTask::book(), PedsOnlyTask::book(), NoiseTask::book(), PedsFullNoiseTask::book(), and CommissioningTask::updateHistoSet().
std::vector<float> CommissioningTask::HistoSet::vNumOfEntries_ |
Definition at line 43 of file CommissioningTask.h.
Referenced by FedTimingTask::book(), FineDelayTask::book(), DaqScopeModeTask::book(), LatencyTask::book(), CalibrationScanTask::book(), PedsOnlyTask::book(), NoiseTask::book(), FastFedCablingTask::book(), ApvTimingTask::book(), PedsFullNoiseTask::book(), CalibrationScanTask::checkAndSave(), PedsFullNoiseTask::fill(), PedsFullNoiseTask::update(), and CommissioningTask::updateHistoSet().
std::vector<float> CommissioningTask::HistoSet::vSumOfContents_ |
Definition at line 44 of file CommissioningTask.h.
Referenced by FineDelayTask::book(), FedTimingTask::book(), DaqScopeModeTask::book(), LatencyTask::book(), PedsOnlyTask::book(), NoiseTask::book(), FastFedCablingTask::book(), ApvTimingTask::book(), PedsFullNoiseTask::book(), PedsFullNoiseTask::fill(), PedsFullNoiseTask::update(), and CommissioningTask::updateHistoSet().
std::vector<double> CommissioningTask::HistoSet::vSumOfSquares_ |
Definition at line 45 of file CommissioningTask.h.
Referenced by FineDelayTask::book(), FedTimingTask::book(), DaqScopeModeTask::book(), LatencyTask::book(), PedsOnlyTask::book(), NoiseTask::book(), FastFedCablingTask::book(), ApvTimingTask::book(), PedsFullNoiseTask::book(), PedsFullNoiseTask::update(), and CommissioningTask::updateHistoSet().