#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 |
Range | getRangeByPos (unsigned short pos) const |
RegistryIterator | getRegistryVectorBegin () const |
RegistryIterator | getRegistryVectorEnd () const |
std::vector< ratioData > | operator/ (const SiStripNoises &d) |
void | printDebug (std::stringstream &ss, const TrackerTopology *trackerTopo) const |
void | printSummary (std::stringstream &ss, const TrackerTopology *trackerTopo) const |
bool | put (const uint32_t &detID, const InputVector &input) |
void | setData (float noise_, InputVector &vped) |
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 float | getRawNoise (const uint16_t &strip, const Range &range) |
static void | verify (uint16_t strip, const Range &range) |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
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 |
Friends | |
class | boost::serialization::access |
template<typename CondSerializationT , typename Enabled > | |
struct | cond::serialization::access |
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 25 of file SiStripNoises.h.
typedef std::vector<unsigned char> SiStripNoises::Container |
Definition at line 45 of file SiStripNoises.h.
typedef std::vector<unsigned char>::const_iterator SiStripNoises::ContainerIterator |
Definition at line 46 of file SiStripNoises.h.
typedef std::vector<uint16_t> SiStripNoises::InputVector |
Definition at line 50 of file SiStripNoises.h.
typedef std::pair<ContainerIterator, ContainerIterator> SiStripNoises::Range |
Definition at line 47 of file SiStripNoises.h.
typedef std::vector<DetRegistry> SiStripNoises::Registry |
Definition at line 48 of file SiStripNoises.h.
typedef Registry::const_iterator SiStripNoises::RegistryIterator |
Definition at line 49 of file SiStripNoises.h.
|
inline |
Definition at line 52 of file SiStripNoises.h.
|
inline |
Definition at line 53 of file SiStripNoises.h.
void SiStripNoises::allNoises | ( | std::vector< float > & | noises, |
const Range & | range | ||
) | const |
Definition at line 115 of file SiStripNoises.cc.
References Exception, get9bits(), hltHgcalLayerClustersEE_cfi::noises, MillePedeFileConverter_cfg::out, isotrackApplyRegressor::range, and findQualityFiles::size.
Referenced by SiStripNoisesGetAllChecker::checkModuleNoise(), printDebug(), printSummary(), and sistrip::FEDEmulator::retrieveNoises().
|
inlinestaticprivate |
Definition at line 118 of file SiStripNoises.h.
References data, isotrackApplyRegressor::range, and nano_mu_digi_cff::strip.
Referenced by ztail.Decoder::follow(), getNoiseFast(), getRawNoise(), and ztail.Decoder::initial_synchronize().
|
staticprivate |
Definition at line 71 of file SiStripNoises.cc.
References data, mps_fire::i, and stripgpu::stripIndex().
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 110 of file SiStripNoises.h.
References runTheMatrix::ret, and optionsL1T::skip.
Referenced by allNoises().
|
inline |
Definition at line 60 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 51 of file SiStripNoises.cc.
References SplitLinear::begin, mps_fire::end, indexes, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by SiStripDB2Tree::analyze(), SiStripNoisesDQM::fillMEsForDet(), and SiStripNoisesDQM::getActiveDetIds().
|
inlinestatic |
Definition at line 72 of file SiStripNoises.h.
References getNoiseFast(), isotrackApplyRegressor::range, nano_mu_digi_cff::strip, and verify().
Referenced by SiStripMonitorCluster::analyze(), SiStripDB2Tree::analyze(), SiStripDigitizerAlgorithm::digitize(), SiStripNoisesDQM::fillMEsForDet(), SiStripNoisesDQM::fillMEsForLayer(), SiStripCorrelateBadStripAndNoise::getMeanNoise(), SiStripClusterizerConditions::Det::noise(), PeakFinderTest::operator()(), operator/(), PeakFinderTest::PeakFinderTest(), DigiSimLinkAlgorithm::run(), SiStripClusterInfo::stripNoises(), and SiStripClusterInfo::stripNoisesRescaledByGain().
|
inlinestatic |
Definition at line 67 of file SiStripNoises.h.
References decode(), ALCARECOEcalPhiSym_cff::float, isotrackApplyRegressor::range, and nano_mu_digi_cff::strip.
Referenced by SiStripAPVRestorer::cleaner_LocalMinimumAdder(), SiStripAPVRestorer::flatRegionsFinder(), getNoise(), TT6CMNSubtractor::subtract_(), and IteratedMedianCMNSubtractor::subtract_().
const SiStripNoises::Range SiStripNoises::getRange | ( | const uint32_t | detID | ) | const |
Definition at line 27 of file SiStripNoises.cc.
References indexes, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, AlCaHLTBitMon_ParallelJobs::p, and v_noises.
Referenced by SiStripMonitorCluster::analyze(), SiStripDB2Tree::analyze(), SiStripNoisesGetAllChecker::checkModuleNoise(), SiStripAPVRestorer::cleaner_LocalMinimumAdder(), SiStripCorrelateBadStripAndNoise::correlateWithNoise(), SiStripDigitizerAlgorithm::digitize(), SiStripNoisesDQM::fillMEsForDet(), SiStripNoisesDQM::fillMEsForLayer(), SiStripAPVRestorer::flatRegionsFinder(), operator/(), sistrip::FEDEmulator::retrieveNoises(), DigiSimLinkAlgorithm::run(), SiStripClusterInfo::stripNoises(), SiStripClusterInfo::stripNoisesRescaledByGain(), TT6CMNSubtractor::subtract_(), and IteratedMedianCMNSubtractor::subtract_().
SiStripNoises::Range SiStripNoises::getRangeByPos | ( | unsigned short | pos | ) | const |
Definition at line 41 of file SiStripNoises.cc.
References indexes, AlCaHLTBitMon_ParallelJobs::p, and v_noises.
|
inlinestatic |
Definition at line 65 of file SiStripNoises.h.
References decode(), isotrackApplyRegressor::range, and nano_mu_digi_cff::strip.
Referenced by SiStripClusterizerConditions::Det::rawNoise(), and stripgpu::SiStripClusterizerConditionsGPU::SiStripClusterizerConditionsGPU().
|
inline |
Definition at line 62 of file SiStripNoises.h.
References indexes.
Referenced by operator/(), printDebug(), and printSummary().
|
inline |
Definition at line 63 of file SiStripNoises.h.
References indexes.
Referenced by operator/(), printDebug(), and printSummary().
std::vector< SiStripNoises::ratioData > SiStripNoises::operator/ | ( | const SiStripNoises & | d | ) |
Definition at line 260 of file SiStripNoises.cc.
References ztail::d, SiStripNoises::ratioData::detid, getNoise(), getRange(), getRegistryVectorBegin(), getRegistryVectorEnd(), isotrackApplyRegressor::range, mps_fire::result, nano_mu_digi_cff::strip, v_noises, relativeConstraints::value, and SiStripNoises::ratioData::values.
void SiStripNoises::printDebug | ( | std::stringstream & | ss, |
const TrackerTopology * | trackerTopo | ||
) | const |
Definition at line 189 of file SiStripNoises.cc.
References allNoises(), hcalRecHitTable_cff::detId, getDataVectorBegin(), getRegistryVectorBegin(), getRegistryVectorEnd(), mps_fire::i, and contentValuesCheck::ss.
void SiStripNoises::printSummary | ( | std::stringstream & | ss, |
const TrackerTopology * | trackerTopo | ||
) | const |
Definition at line 217 of file SiStripNoises.cc.
References allNoises(), hcalRecHitTable_cff::detId, getDataVectorBegin(), getRegistryVectorBegin(), getRegistryVectorEnd(), mps_fire::i, WZElectronSkims53X_cff::max, SiStripPI::mean, SiStripPI::min, SiStripPI::rms, mathSSE::sqrt(), contentValuesCheck::ss, and edmLumisInFiles::summary.
bool SiStripNoises::put | ( | const uint32_t & | detID, |
const InputVector & | input | ||
) |
Definition at line 9 of file SiStripNoises.cc.
References SiStripNoises::DetRegistry::detid, encode(), SiStripNoises::DetRegistry::ibegin, SiStripNoises::DetRegistry::iend, indexes, input, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, AlCaHLTBitMon_ParallelJobs::p, and v_noises.
Referenced by SiStripPopConNoisesHandlerFromDQM::dqmEndJob(), and SiStripCondObjBuilderFromDb::storeNoise().
|
private |
void SiStripNoises::setData | ( | float | noise_, |
InputVector & | vped | ||
) |
Definition at line 67 of file SiStripNoises.cc.
References sistrip::extrainfo::noise_, and findQualityFiles::v.
Referenced by SiStripPopConNoisesHandlerFromDQM::dqmEndJob(), SiStripCondObjBuilderFromDb::setDefaultValuesCabling(), and SiStripCondObjBuilderFromDb::setValuesCabling().
|
static |
Definition at line 61 of file SiStripNoises.cc.
References Exception, isotrackApplyRegressor::range, and nano_mu_digi_cff::strip.
Referenced by getNoise().
|
friend |
Definition at line 105 of file SiStripNoises.h.
|
friend |
Definition at line 105 of file SiStripNoises.h.
|
private |
Definition at line 97 of file SiStripNoises.h.
Referenced by getDetIds(), getRange(), getRangeByPos(), getRegistryVectorBegin(), getRegistryVectorEnd(), and put().
|
private |
Definition at line 96 of file SiStripNoises.h.
Referenced by getDataVectorBegin(), getDataVectorEnd(), getRange(), getRangeByPos(), operator/(), and put().