#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, diffTreeTool::index, and LayerTriplets::layers().
void SiPixelDetSummary::add | ( | const DetId & | detid, |
const float & | value | ||
) |
Definition at line 32 of file SiPixelDetSummary.cc.
References gather_cfg::cout, PixelEndcapName::diskName(), fCountMap, fMeanMap, fRmsMap, fVerbose, PixelEndcapName::halfCylinder(), AnalysisDataFormats_SUSYBSMObjects::hc, PixelBarrelName::layerName(), PixelEndcapName::mI, PixelEndcapName::mO, PixelEndcapName::name(), PixelBarrelName::name(), dataset::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().
void SiPixelDetSummary::add | ( | const DetId & | detid | ) |
Definition at line 25 of file SiPixelDetSummary.cc.
References add(), and fComputeMean.
Referenced by 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 73 of file SiPixelDetSummary.cc.
References KineDebug3::count(), gamEcalExtractorBlocks_cff::detector, fComputeMean, fCountMap, fMeanMap, fRmsMap, SiStripPI::rms, mathSSE::sqrt(), 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().