#include <SiStripNoises.h>
Classes | |
struct | DetRegistry |
struct | ratioData |
class | StrictWeakOrdering |
Public Types | |
typedef std::vector< unsigned char > | Container |
typedef std::vector< unsigned char >::const_iterator | ContainerIterator |
typedef std::vector< uint16_t > | InputVector |
typedef std::pair < ContainerIterator, ContainerIterator > | Range |
typedef std::vector< DetRegistry > | Registry |
typedef Registry::const_iterator | RegistryIterator |
Public Member Functions | |
void | allNoises (std::vector< float > &noises, const Range &range) const |
ContainerIterator | getDataVectorBegin () const |
ContainerIterator | getDataVectorEnd () const |
void | getDetIds (std::vector< uint32_t > &DetIds_) const |
const Range | getRange (const uint32_t &detID) const |
RegistryIterator | getRegistryVectorBegin () const |
RegistryIterator | getRegistryVectorEnd () const |
std::vector< ratioData > | operator/ (SiStripNoises d) |
void | printDebug (std::stringstream &ss) const |
void | printSummary (std::stringstream &ss) const |
bool | put (const uint32_t &detID, const InputVector &input) |
void | setData (float noise_, InputVector &vped) |
SiStripNoises (const SiStripNoises &) | |
SiStripNoises () | |
~SiStripNoises () | |
Static Public Member Functions | |
static float | getNoise (uint16_t strip, const Range &range) |
static float | getNoiseFast (const uint16_t &strip, const Range &range) |
Static Private Member Functions | |
static uint16_t | decode (uint16_t strip, const Range &range) |
static void | encode (const InputVector &Vi, std::vector< unsigned char > &Vo_CHAR) |
static uint16_t | get9bits (const uint8_t *&ptr, int8_t skip) |
Private Attributes | |
Registry | indexes |
Container | v_noises |
Stores the noise value for all the strips.
The values are encoded from a vector<uint16_t> to a vector<unsigned char>
The printSummary method prints: Nstrips, mean, rms, min and max noise for each detId. The print Debug method prints the noise for every strip.
Definition at line 18 of file SiStripNoises.h.
typedef std::vector<unsigned char> SiStripNoises::Container |
Definition at line 39 of file SiStripNoises.h.
typedef std::vector<unsigned char>::const_iterator SiStripNoises::ContainerIterator |
Definition at line 40 of file SiStripNoises.h.
typedef std::vector<uint16_t> SiStripNoises::InputVector |
Definition at line 44 of file SiStripNoises.h.
typedef std::pair<ContainerIterator, ContainerIterator> SiStripNoises::Range |
Definition at line 41 of file SiStripNoises.h.
typedef std::vector<DetRegistry> SiStripNoises::Registry |
Definition at line 42 of file SiStripNoises.h.
typedef Registry::const_iterator SiStripNoises::RegistryIterator |
Definition at line 43 of file SiStripNoises.h.
SiStripNoises::SiStripNoises | ( | const SiStripNoises & | input | ) |
|
inline |
Definition at line 47 of file SiStripNoises.h.
|
inline |
Definition at line 48 of file SiStripNoises.h.
void SiStripNoises::allNoises | ( | std::vector< float > & | noises, |
const Range & | range | ||
) | const |
Definition at line 111 of file SiStripNoises.cc.
References edm::hlt::Exception, get9bits(), dbtoconf::out, and findQualityFiles::size.
Referenced by printDebug(), and printSummary().
|
inlinestaticprivate |
Definition at line 103 of file SiStripNoises.h.
References data, and relativeConstraints::value.
Referenced by getNoiseFast().
|
staticprivate |
Definition at line 65 of file SiStripNoises.cc.
Referenced by put().
|
inlinestaticprivate |
Get 9 bits from a bit stream, starting from the right, skipping the first 'skip' bits (0 < skip < 8). Ptr must point to the rightmost bit, and is updated by this function
Get 9 bit words from a bit stream, starting from the right, skipping the first 'skip' bits (0 < skip < 8). Ptr must point to the rightmost byte that has some bits of this word, and is updated by this function
Definition at line 95 of file SiStripNoises.h.
References run_regression::ret, and createPayload::skip.
Referenced by allNoises().
|
inline |
Definition at line 54 of file SiStripNoises.h.
References v_noises.
Referenced by printDebug(), and printSummary().
|
inline |
void SiStripNoises::getDetIds | ( | std::vector< uint32_t > & | DetIds_ | ) | const |
Definition at line 44 of file SiStripNoises.cc.
References begin, end, indexes, and AlCaHLTBitMon_ParallelJobs::p.
|
static |
Definition at line 53 of file SiStripNoises.cc.
References edm::hlt::Exception, getNoiseFast(), and strip().
Referenced by operator/(), and jptJetAnalysis::StripSignalOverNoiseCalculator::signalOverNoise().
|
inlinestatic |
Definition at line 59 of file SiStripNoises.h.
References decode().
Referenced by getNoise().
const SiStripNoises::Range SiStripNoises::getRange | ( | const uint32_t & | detID | ) | const |
Definition at line 34 of file SiStripNoises.cc.
References indexes, AlCaHLTBitMon_ParallelJobs::p, and v_noises.
Referenced by operator/(), and jptJetAnalysis::StripSignalOverNoiseCalculator::signalOverNoise().
|
inline |
Definition at line 56 of file SiStripNoises.h.
References indexes.
Referenced by operator/(), printDebug(), and printSummary().
|
inline |
Definition at line 57 of file SiStripNoises.h.
References indexes.
Referenced by operator/(), printDebug(), and printSummary().
std::vector< SiStripNoises::ratioData > SiStripNoises::operator/ | ( | SiStripNoises | d | ) |
Definition at line 242 of file SiStripNoises.cc.
References SiStripNoises::ratioData::detid, getNoise(), getRange(), getRegistryVectorBegin(), getRegistryVectorEnd(), query::result, strip(), v_noises, relativeConstraints::value, and SiStripNoises::ratioData::values.
void SiStripNoises::printDebug | ( | std::stringstream & | ss | ) | const |
Definition at line 176 of file SiStripNoises.cc.
References allNoises(), getDataVectorBegin(), getRegistryVectorBegin(), getRegistryVectorEnd(), and i.
void SiStripNoises::printSummary | ( | std::stringstream & | ss | ) | const |
Definition at line 203 of file SiStripNoises.cc.
References SiStripDetSummary::add(), allNoises(), getDataVectorBegin(), getRegistryVectorBegin(), getRegistryVectorEnd(), i, max(), timingPdfMaker::mean, min, SiStripDetSummary::print(), plotscripts::rms(), mathSSE::sqrt(), and edmLumisInFiles::summary.
bool SiStripNoises::put | ( | const uint32_t & | detID, |
const InputVector & | input | ||
) |
Definition at line 16 of file SiStripNoises.cc.
References SiStripNoises::DetRegistry::detid, encode(), SiStripNoises::DetRegistry::ibegin, SiStripNoises::DetRegistry::iend, indexes, AlCaHLTBitMon_ParallelJobs::p, sd, and v_noises.
Referenced by SiStripNoisesBuilder::analyze(), SiStripNoiseNormalizedWithApvGainBuilder::analyze(), SiStripNoisesGenerator::createObject(), SiStripNoisesDQMService::readNoises(), and SiStripCondObjBuilderFromDb::storeNoise().
void SiStripNoises::setData | ( | float | noise_, |
InputVector & | vped | ||
) |
Definition at line 61 of file SiStripNoises.cc.
Referenced by SiStripNoisesBuilder::analyze(), SiStripNoiseNormalizedWithApvGainBuilder::analyze(), SiStripNoisesGenerator::createObject(), SiStripNoisesDQMService::readNoises(), SiStripCondObjBuilderFromDb::setDefaultValuesCabling(), and SiStripCondObjBuilderFromDb::setValuesCabling().
|
private |
Definition at line 83 of file SiStripNoises.h.
Referenced by getDetIds(), getRange(), getRegistryVectorBegin(), getRegistryVectorEnd(), put(), and SiStripNoises().
|
private |
Definition at line 82 of file SiStripNoises.h.
Referenced by getDataVectorBegin(), getDataVectorEnd(), getRange(), operator/(), put(), and SiStripNoises().