#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... | |
void | clear () |
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 30 of file SiStripDetSummary.h.
References pixelTopology::layer, hgcalTBTopologyTester_cfi::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 6 of file SiStripDetSummary.cc.
References pixelTopology::layer, 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(), SiStripPI::fillNoiseDetSummary(), SiStripCondObjectRepresent::SiStripDataContainer< Item, type >::fillSummary(), counter.Counter::register(), SequenceTypes._TaskBase::remove(), and SequenceTypes._TaskBase::replace().
|
inline |
Used to compute the number of entries divided by subdetector, layer and mono/stereo.
Definition at line 53 of file SiStripDetSummary.h.
References add(), and computeMean_.
Referenced by counter.Counter::register(), SequenceTypes._TaskBase::remove(), and SequenceTypes._TaskBase::replace().
|
inline |
Definition at line 64 of file SiStripDetSummary.h.
References valueMap_.
Referenced by SiStripCondObjectRepresent::SiStripDataContainer< Item, type >::fillSummary().
|
inline |
Definition at line 72 of file SiStripDetSummary.h.
References valueMap_.
Referenced by SiStripCondObjectRepresent::SiStripDataContainer< Item, type >::fillSummary().
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 42 of file SiStripDetSummary.cc.
References computeMean_, submitPVResolutionJobs::count, hgcalTestNeighbor_cfi::detector, pixelTopology::layer, SiStripPI::mean, SiStripPI::rms, mathSSE::sqrt(), contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, and valueMap_.
|
protected |
Definition at line 77 of file SiStripDetSummary.h.
|
private |
Definition at line 80 of file SiStripDetSummary.h.
Referenced by add().
|
protected |
Definition at line 76 of file SiStripDetSummary.h.
Referenced by add(), clear(), getCounts(), print(), and SiStripDetSummary().