#include <SiStripDetSummary.h>
Classes | |
struct | Values |
Public Member Functions | |
void | add (const DetId &detid, const float &value) |
Used to compute the mean value of the value variable divided by subdetector, layer and mono/stereo. More... | |
void | add (const DetId &detid) |
Used to compute the number of entries divided by subdetector, layer and mono/stereo. More... | |
std::map< unsigned int, Values > | getCounts () |
void | print (std::stringstream &ss, const bool mean=true) const |
SiStripDetSummary () | |
Protected Attributes | |
bool | computeMean_ |
std::map< unsigned int, Values > | valueMap_ |
If values are passed together with DetIds (method add( detId, value)), it computes the mean value and rms of a given quantity and is able to print a summary divided by layer/disk for each subdetector.
If instead only DetIds are passed (method add( detId )), it prints the count divided by layer/disk for each subdetector.
Note: consider the possibility to move this class inside SiStripBaseObject as a protected member class.
Definition at line 31 of file SiStripDetSummary.h.
|
inline |
Definition at line 34 of file SiStripDetSummary.h.
References valueMap_.
void SiStripDetSummary::add | ( | const DetId & | detid, |
const float & | value | ||
) |
Used to compute the mean value of the value variable divided by subdetector, layer and mono/stereo.
Definition at line 3 of file SiStripDetSummary.cc.
References TOBDetId::layer(), TIBDetId::layer(), DetId::rawId(), DetId::subdetId(), StripSubdetector::TEC, StripSubdetector::TIB, StripSubdetector::TID, StripSubdetector::TOB, relativeConstraints::value, valueMap_, TIDDetId::wheel(), and TECDetId::wheel().
Referenced by add(), SiStripDetVOff::getHVoffCounts(), SiStripDetVOff::getLVoffCounts(), SiStripLorentzAngle::printSummary(), SiStripBadStrip::printSummary(), SiStripDetVOff::printSummary(), SiStripNoises::printSummary(), SiStripBaseDelay::printSummary(), SiStripPedestals::printSummary(), SiStripApvGain::printSummary(), SiStripDelay::printSummary(), and SiStripGain::printSummary().
|
inline |
Used to compute the number of entries divided by subdetector, layer and mono/stereo.
Definition at line 57 of file SiStripDetSummary.h.
References add(), and computeMean_.
|
inline |
Definition at line 76 of file SiStripDetSummary.h.
References valueMap_.
Referenced by SiStripDetVOff::getHVoffCounts(), and SiStripDetVOff::getLVoffCounts().
void SiStripDetSummary::print | ( | std::stringstream & | ss, |
const bool | mean = true |
||
) | const |
Method used to write the output. By default mean == true and it writes the mean value. If mean == false it will write the count.
Definition at line 53 of file SiStripDetSummary.cc.
References computeMean_, prof2calltree::count, plotscripts::rms(), mathSSE::sqrt(), and valueMap_.
Referenced by SiStripLorentzAngle::printSummary(), SiStripBadStrip::printSummary(), SiStripNoises::printSummary(), SiStripDetVOff::printSummary(), SiStripBaseDelay::printSummary(), SiStripPedestals::printSummary(), SiStripApvGain::printSummary(), SiStripDelay::printSummary(), and SiStripGain::printSummary().
|
protected |
Definition at line 83 of file SiStripDetSummary.h.
|
protected |
Definition at line 82 of file SiStripDetSummary.h.
Referenced by add(), getCounts(), print(), and SiStripDetSummary().