#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 49 of file SiStripPedestals.h.
typedef std::vector<char>::const_iterator SiStripPedestals::ContainerIterator |
Definition at line 50 of file SiStripPedestals.h.
typedef std::vector<uint16_t> SiStripPedestals::InputVector |
Definition at line 54 of file SiStripPedestals.h.
typedef std::pair<ContainerIterator, ContainerIterator> SiStripPedestals::Range |
Definition at line 51 of file SiStripPedestals.h.
typedef std::vector<DetRegistry> SiStripPedestals::Registry |
Definition at line 52 of file SiStripPedestals.h.
typedef Registry::const_iterator SiStripPedestals::RegistryIterator |
Definition at line 53 of file SiStripPedestals.h.
|
inline |
Definition at line 56 of file SiStripPedestals.h.
|
inline |
Definition at line 57 of file SiStripPedestals.h.
void SiStripPedestals::allPeds | ( | std::vector< int > & | pefs, |
const Range & | range | ||
) | const |
Definition at line 143 of file SiStripPedestals.cc.
References Exception, get10bits(), MillePedeFileConverter_cfg::out, FastTimerService_cff::range, and findQualityFiles::size.
Referenced by sistrip::FEDEmulator::retrievePedestals(), and SiStripPedestalsSubtractor::subtract_().
|
private |
Definition at line 101 of file SiStripPedestals.cc.
References data, FastTimerService_cff::range, nano_mu_digi_cff::strip, and relativeConstraints::value.
Referenced by ztail.Decoder::follow(), getPed(), and ztail.Decoder::initial_synchronize().
|
private |
Definition at line 59 of file SiStripPedestals.cc.
References data, mps_fire::i, and stripgpu::stripIndex().
Referenced by 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 135 of file SiStripPedestals.cc.
References runTheMatrix::ret, and optionsL1T::skip.
Referenced by allPeds().
|
inline |
|
inline |
void SiStripPedestals::getDetIds | ( | std::vector< uint32_t > & | DetIds_ | ) | const |
Definition at line 38 of file SiStripPedestals.cc.
References mps_fire::end, indexes, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by SiStripPedestalsDQM::getActiveDetIds(), printDebug(), and printSummary().
float SiStripPedestals::getPed | ( | const uint16_t & | strip, |
const Range & | range | ||
) | const |
Definition at line 51 of file SiStripPedestals.cc.
References decode(), Exception, FastTimerService_cff::range, and nano_mu_digi_cff::strip.
Referenced by SiStripDB2Tree::analyze(), CalibrationScanTask::CalibrationScanTask(), CalibrationTask::CalibrationTask(), SiStripAPVRestorer::createCMMapRealPed(), SiStripPedestalsDQM::fillMEsForDet(), SiStripPedestalsDQM::fillMEsForLayer(), LaserAlignment::fillPedestalProfiles(), printDebug(), printSummary(), and DigiSimLinkAlgorithm::run().
const SiStripPedestals::Range SiStripPedestals::getRange | ( | const uint32_t & | detID | ) | const |
Definition at line 28 of file SiStripPedestals.cc.
References indexes, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, AlCaHLTBitMon_ParallelJobs::p, and v_pedestals.
Referenced by SiStripDB2Tree::analyze(), CalibrationScanTask::CalibrationScanTask(), CalibrationTask::CalibrationTask(), SiStripAPVRestorer::createCMMapRealPed(), SiStripPedestalsDQM::fillMEsForDet(), SiStripPedestalsDQM::fillMEsForLayer(), LaserAlignment::fillPedestalProfiles(), printDebug(), printSummary(), sistrip::FEDEmulator::retrievePedestals(), DigiSimLinkAlgorithm::run(), and SiStripPedestalsSubtractor::subtract_().
|
inline |
|
inline |
void SiStripPedestals::printDebug | ( | std::stringstream & | ss, |
const TrackerTopology * | trackerTopo | ||
) | const |
Prints all pedestals.
Definition at line 185 of file SiStripPedestals.cc.
References hcalRecHitTable_cff::detId, getDetIds(), getPed(), getRange(), l1ctLayer2EG_cff::id, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, FastTimerService_cff::range, contentValuesCheck::ss, and nano_mu_digi_cff::strip.
void SiStripPedestals::printSummary | ( | std::stringstream & | ss, |
const TrackerTopology * | trackerTopo | ||
) | const |
Prints mean pedestal value divided for subdet, layer and mono/stereo.
Definition at line 171 of file SiStripPedestals.cc.
References getDetIds(), getPed(), getRange(), l1ctLayer2EG_cff::id, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, FastTimerService_cff::range, contentValuesCheck::ss, and edmLumisInFiles::summary.
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, input, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, AlCaHLTBitMon_ParallelJobs::p, and v_pedestals.
Referenced by SiStripPopConPedestalsHandlerFromDQM::dqmEndJob(), and SiStripCondObjBuilderFromDb::storePedestals().
|
private |
void SiStripPedestals::setData | ( | float | ped, |
SiStripPedestals::InputVector & | vped | ||
) |
Definition at line 47 of file SiStripPedestals.cc.
Referenced by SiStripPopConPedestalsHandlerFromDQM::dqmEndJob(), SiStripCondObjBuilderFromDb::setDefaultValuesCabling(), and SiStripCondObjBuilderFromDb::setValuesCabling().
|
friend |
Definition at line 86 of file SiStripPedestals.h.
|
friend |
Definition at line 86 of file SiStripPedestals.h.
|
private |
Definition at line 84 of file SiStripPedestals.h.
Referenced by getDetIds(), getRange(), getRegistryVectorBegin(), getRegistryVectorEnd(), and put().
|
private |
Definition at line 83 of file SiStripPedestals.h.
Referenced by getDataVectorBegin(), getDataVectorEnd(), getRange(), and put().