#include <SiStripPedestals.h>
Classes | |
struct | DetRegistry |
class | StrictWeakOrdering |
Public Types | |
typedef std::vector< char > | Container |
typedef std::vector< 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 | allPeds (std::vector< int > &pefs, const Range &range) const |
ContainerIterator | getDataVectorBegin () const |
ContainerIterator | getDataVectorEnd () const |
void | getDetIds (std::vector< uint32_t > &DetIds_) const |
float | getPed (const uint16_t &strip, const Range &range) const |
const Range | getRange (const uint32_t &detID) const |
RegistryIterator | getRegistryVectorBegin () const |
RegistryIterator | getRegistryVectorEnd () const |
void | printDebug (std::stringstream &ss, const TrackerTopology *trackerTopo) const |
Prints all pedestals. More... | |
void | printSummary (std::stringstream &ss, const TrackerTopology *trackerTopo) const |
Prints mean pedestal value divided for subdet, layer and mono/stereo. More... | |
bool | put (const uint32_t &detID, InputVector &input) |
void | setData (float ped, InputVector &vped) |
SiStripPedestals () | |
~SiStripPedestals () | |
Private Member Functions | |
uint16_t | decode (const uint16_t &strip, const Range &range) const |
void | encode (InputVector &Vi, std::vector< unsigned char > &Vo_CHAR) |
uint16_t | get10bits (const uint8_t *&ptr, int8_t skip) const |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Private Attributes | |
Registry | indexes |
Container | v_pedestals |
Friends | |
class | boost::serialization::access |
template<typename CondSerializationT , typename Enabled > | |
struct | cond::serialization::access |
Stores the pedestal of every strip.
Encodes the information in a vector<char> and uses a vector<DetRegistry> to connect each range of values to the corresponding detId.
The DetRegistry struct contains the detId and two uint32_t giving the index of begin and end of the corresponding range in the vector<char>.
Has methods to return the pedestal of a given strip of of all the strips.
The printSummary method uses SiStripDetSummary. See description therein.
The printDebug method prints the pedestal value for every strip of every detId.
Definition at line 27 of file SiStripPedestals.h.
typedef std::vector<char> SiStripPedestals::Container |
Definition at line 50 of file SiStripPedestals.h.
typedef std::vector<char>::const_iterator SiStripPedestals::ContainerIterator |
Definition at line 51 of file SiStripPedestals.h.
typedef std::vector<uint16_t> SiStripPedestals::InputVector |
Definition at line 55 of file SiStripPedestals.h.
typedef std::pair<ContainerIterator, ContainerIterator> SiStripPedestals::Range |
Definition at line 52 of file SiStripPedestals.h.
typedef std::vector<DetRegistry> SiStripPedestals::Registry |
Definition at line 53 of file SiStripPedestals.h.
typedef Registry::const_iterator SiStripPedestals::RegistryIterator |
Definition at line 54 of file SiStripPedestals.h.
|
inline |
Definition at line 57 of file SiStripPedestals.h.
|
inline |
Definition at line 58 of file SiStripPedestals.h.
References getDetIds(), getRange(), input, and put().
void SiStripPedestals::allPeds | ( | std::vector< int > & | pefs, |
const Range & | range | ||
) | const |
Definition at line 142 of file SiStripPedestals.cc.
References Exception, get10bits(), MillePedeFileConverter_cfg::out, and findQualityFiles::size.
Referenced by SiStripBaselineAnalyzer::analyze(), getRegistryVectorEnd(), sistrip::FEDEmulator::retrievePedestals(), and SiStripPedestalsSubtractor::subtract_().
|
private |
Definition at line 100 of file SiStripPedestals.cc.
References data, and relativeConstraints::value.
Referenced by ztail.Decoder::follow(), getPed(), getRegistryVectorEnd(), and ztail.Decoder::initial_synchronize().
|
private |
Definition at line 59 of file SiStripPedestals.cc.
References data, and mps_fire::i.
Referenced by getRegistryVectorEnd(), and put().
|
inlineprivate |
Get 9 bit words from a bit stream, starting from the right, skipping the first 'skip' bits (0 < skip < 7). Ptr must point to the rightmost byte that has some bits of this word, and is updated by this function
Definition at line 133 of file SiStripPedestals.cc.
References createPayload::skip.
Referenced by allPeds(), and getRegistryVectorEnd().
|
inline |
|
inline |
void SiStripPedestals::getDetIds | ( | std::vector< uint32_t > & | DetIds_ | ) | const |
Definition at line 37 of file SiStripPedestals.cc.
References begin, end, indexes, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by SiStripPedestalsReader::analyze(), SiStripBaselineAnalyzer::analyze(), SiStripPedestalsDQM::getActiveDetIds(), printDebug(), printSummary(), and ~SiStripPedestals().
float SiStripPedestals::getPed | ( | const uint16_t & | strip, |
const Range & | range | ||
) | const |
Definition at line 51 of file SiStripPedestals.cc.
References decode(), Exception, and digi_MixPreMix_cfi::strip.
Referenced by SiStripPedestalsReader::analyze(), CalibrationScanTask::CalibrationScanTask(), CalibrationTask::CalibrationTask(), SiStripMeanCMExtractor::CMExtractorFromPedestals(), SiStripAPVRestorer::CreateCMMapRealPed(), SiStripDigitizerAlgorithm::digitize(), SiStripMonitorPedestals::fillCondDBMEs(), SiStripPedestalsDQM::fillMEsForDet(), SiStripPedestalsDQM::fillMEsForLayer(), LaserAlignment::fillPedestalProfiles(), getRegistryVectorEnd(), printDebug(), printSummary(), and DigiSimLinkAlgorithm::run().
const SiStripPedestals::Range SiStripPedestals::getRange | ( | const uint32_t & | detID | ) | const |
Definition at line 27 of file SiStripPedestals.cc.
References indexes, AlCaHLTBitMon_ParallelJobs::p, and v_pedestals.
Referenced by SiStripPedestalsReader::analyze(), SiStripBaselineAnalyzer::analyze(), CalibrationScanTask::CalibrationScanTask(), CalibrationTask::CalibrationTask(), SiStripMeanCMExtractor::CMExtractorFromPedestals(), SiStripAPVRestorer::CreateCMMapRealPed(), SiStripDigitizerAlgorithm::digitize(), SiStripMonitorPedestals::fillCondDBMEs(), SiStripPedestalsDQM::fillMEsForDet(), SiStripPedestalsDQM::fillMEsForLayer(), LaserAlignment::fillPedestalProfiles(), printDebug(), printSummary(), sistrip::FEDEmulator::retrievePedestals(), DigiSimLinkAlgorithm::run(), SiStripPedestalsSubtractor::subtract_(), and ~SiStripPedestals().
|
inline |
|
inline |
Definition at line 68 of file SiStripPedestals.h.
References allPeds(), decode(), encode(), get10bits(), getPed(), indexes, printDebug(), printSummary(), setData(), createPayload::skip, and digi_MixPreMix_cfi::strip.
void SiStripPedestals::printDebug | ( | std::stringstream & | ss, |
const TrackerTopology * | trackerTopo | ||
) | const |
Prints all pedestals.
Definition at line 180 of file SiStripPedestals.cc.
References getDetIds(), getPed(), getRange(), triggerObjects_cff::id, and digi_MixPreMix_cfi::strip.
Referenced by getRegistryVectorEnd().
void SiStripPedestals::printSummary | ( | std::stringstream & | ss, |
const TrackerTopology * | trackerTopo | ||
) | const |
Prints mean pedestal value divided for subdet, layer and mono/stereo.
Definition at line 164 of file SiStripPedestals.cc.
References getDetIds(), getPed(), getRange(), triggerObjects_cff::id, and heppy_report::summary.
Referenced by getRegistryVectorEnd().
bool SiStripPedestals::put | ( | const uint32_t & | detID, |
InputVector & | input | ||
) |
Definition at line 5 of file SiStripPedestals.cc.
References SiStripPedestals::DetRegistry::detid, encode(), SiStripPedestals::DetRegistry::ibegin, SiStripPedestals::DetRegistry::iend, indexes, AlCaHLTBitMon_ParallelJobs::p, sd, and v_pedestals.
Referenced by SiStripPedestalsBuilder::analyze(), SiStripPopConPedestalsHandlerFromDQM::dqmEndJob(), SiStripCondObjBuilderFromDb::storePedestals(), and ~SiStripPedestals().
|
private |
void SiStripPedestals::setData | ( | float | ped, |
SiStripPedestals::InputVector & | vped | ||
) |
Definition at line 47 of file SiStripPedestals.cc.
Referenced by SiStripPedestalsBuilder::analyze(), SiStripPopConPedestalsHandlerFromDQM::dqmEndJob(), getRegistryVectorEnd(), SiStripCondObjBuilderFromDb::setDefaultValuesCabling(), and SiStripCondObjBuilderFromDb::setValuesCabling().
|
friend |
Definition at line 88 of file SiStripPedestals.h.
|
friend |
Definition at line 88 of file SiStripPedestals.h.
|
private |
Definition at line 86 of file SiStripPedestals.h.
Referenced by getDetIds(), getRange(), getRegistryVectorBegin(), getRegistryVectorEnd(), and put().
|
private |
Definition at line 85 of file SiStripPedestals.h.
Referenced by getDataVectorBegin(), getDataVectorEnd(), getRange(), and put().