#include <SiPixelDetSummary.h>
Public Member Functions | |
void | add (const DetId &detid) |
void | add (const DetId &detid, const float &value) |
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 hgcalTopologyTester_cfi::layers.
void SiPixelDetSummary::add | ( | const DetId & | detid | ) |
Definition at line 24 of file SiPixelDetSummary.cc.
References add(), and fComputeMean.
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
void SiPixelDetSummary::add | ( | const DetId & | detid, |
const float & | value | ||
) |
Definition at line 30 of file SiPixelDetSummary.cc.
References gather_cfg::cout, PixelEndcapName::diskName(), fCountMap, fMeanMap, fRmsMap, fVerbose, PixelEndcapName::halfCylinder(), PixelBarrelName::layerName(), PixelEndcapName::mI, PixelEndcapName::mO, Skims_PA_cff::name, PixelBarrelName::name(), PixelEndcapName::name(), PixelEndcapName::pI, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, PixelEndcapName::pO, DetId::subdetId(), and relativeConstraints::value.
Referenced by add(), counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::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, 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().