#include <SiStripDetSummary.h>
Classes | |
struct | Values |
Public Member Functions | |
void | add (DetId detid, float value) |
Used to compute the mean value of the value variable divided by subdetector, layer and mono/stereo. More... | |
void | add (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 (const TrackerTopology *tTopo) | |
Protected Attributes | |
bool | computeMean_ |
std::map< unsigned int, Values > | valueMap_ |
Private Attributes | |
const TrackerTopology * | trackerTopo_ |
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 28 of file SiStripDetSummary.h.
|
inlineexplicit |
Definition at line 31 of file SiStripDetSummary.h.
References add(), LayerTriplets::layers(), and valueMap_.
void SiStripDetSummary::add | ( | DetId | detid, |
float | value | ||
) |
Used to compute the mean value of the value variable divided by subdetector, layer and mono/stereo.
Definition at line 5 of file SiStripDetSummary.cc.
References DetId::subdetId(), StripSubdetector::TEC, TrackerTopology::tecStereo(), TrackerTopology::tecWheel(), StripSubdetector::TIB, TrackerTopology::tibLayer(), TrackerTopology::tibStereo(), StripSubdetector::TID, TrackerTopology::tidStereo(), TrackerTopology::tidWheel(), StripSubdetector::TOB, TrackerTopology::tobLayer(), TrackerTopology::tobStereo(), trackerTopo_, relativeConstraints::value, and valueMap_.
Referenced by add(), counter.Counter::register(), SequenceTypes.Task::remove(), SequenceTypes.Task::replace(), and SiStripDetSummary().
|
inline |
Used to compute the number of entries divided by subdetector, layer and mono/stereo.
Definition at line 54 of file SiStripDetSummary.h.
References add(), computeMean_, SiStripPI::mean, and print().
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
|
inline |
Definition at line 73 of file SiStripDetSummary.h.
References valueMap_.
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 43 of file SiStripDetSummary.cc.
References computeMean_, KineDebug3::count(), gamEcalExtractorBlocks_cff::detector, SiStripPI::rms, mathSSE::sqrt(), AlCaHLTBitMon_QueryRunRegistry::string, and valueMap_.
Referenced by add().
|
protected |
Definition at line 80 of file SiStripDetSummary.h.
|
private |
Definition at line 82 of file SiStripDetSummary.h.
Referenced by add().
|
protected |
Definition at line 79 of file SiStripDetSummary.h.
Referenced by add(), getCounts(), print(), and SiStripDetSummary().