#include <SiPixelDetSummary.h>
Public Member Functions | |
void | add (const DetId &detid, const float &value) |
void | add (const DetId &detid) |
std::map< int, int > | getCounts () |
void | print (std::stringstream &ss, const bool mean=true) const |
SiPixelDetSummary (int verbose=0) | |
Protected Attributes | |
bool | fComputeMean |
std::map< int, int > | fCountMap |
std::map< int, double > | fMeanMap |
std::map< int, double > | fRmsMap |
int | fVerbose |
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.
Definition at line 25 of file SiPixelDetSummary.h.
SiPixelDetSummary::SiPixelDetSummary | ( | int | verbose = 0 | ) |
Definition at line 9 of file SiPixelDetSummary.cc.
References gather_cfg::cout, fCountMap, fVerbose, and hgcalTBTopologyTester_cfi::layers.
void SiPixelDetSummary::add | ( | const DetId & | detid, |
const float & | value | ||
) |
Definition at line 30 of file SiPixelDetSummary.cc.
References gather_cfg::cout, ALCARECOPPSCalTrackBasedSel_cff::detid, PixelEndcapName::diskName(), fCountMap, fMeanMap, fRmsMap, fVerbose, PixelEndcapName::halfCylinder(), PixelBarrelName::layerName(), PixelEndcapName::mI, PixelEndcapName::mO, PixelBarrelName::name(), PixelEndcapName::name(), mergeVDriftHistosByStation::name, PixelEndcapName::pI, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, PixelEndcapName::pO, and relativeConstraints::value.
Referenced by add(), counter.Counter::register(), SequenceTypes._TaskBase::remove(), and SequenceTypes._TaskBase::replace().
void SiPixelDetSummary::add | ( | const DetId & | detid | ) |
Definition at line 24 of file SiPixelDetSummary.cc.
References add(), ALCARECOPPSCalTrackBasedSel_cff::detid, and fComputeMean.
Referenced by counter.Counter::register(), SequenceTypes._TaskBase::remove(), and SequenceTypes._TaskBase::replace().
|
inline |
void SiPixelDetSummary::print | ( | std::stringstream & | ss, |
const bool | mean = true |
||
) | const |
Definition at line 67 of file SiPixelDetSummary.cc.
References submitPVResolutionJobs::count, hgcalTestNeighbor_cfi::detector, fComputeMean, fCountMap, fMeanMap, fRmsMap, nano_mu_digi_cff::layer, SiStripPI::mean, SiStripPI::rms, mathSSE::sqrt(), contentValuesCheck::ss, and AlCaHLTBitMon_QueryRunRegistry::string.
|
protected |
Definition at line 40 of file SiPixelDetSummary.h.
|
protected |
Definition at line 39 of file SiPixelDetSummary.h.
Referenced by add(), getCounts(), print(), and SiPixelDetSummary().
|
protected |
Definition at line 37 of file SiPixelDetSummary.h.
|
protected |
Definition at line 38 of file SiPixelDetSummary.h.
|
protected |
Definition at line 41 of file SiPixelDetSummary.h.
Referenced by add(), and SiPixelDetSummary().