#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 |
Prints all pedestals. More... | |
void | printSummary (std::stringstream &ss) 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 |
Private Attributes | |
Registry | indexes |
Container | v_pedestals |
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 25 of file SiStripPedestals.h.
typedef std::vector<char> SiStripPedestals::Container |
Definition at line 46 of file SiStripPedestals.h.
typedef std::vector<char>::const_iterator SiStripPedestals::ContainerIterator |
Definition at line 47 of file SiStripPedestals.h.
typedef std::vector<uint16_t> SiStripPedestals::InputVector |
Definition at line 51 of file SiStripPedestals.h.
typedef std::pair<ContainerIterator, ContainerIterator> SiStripPedestals::Range |
Definition at line 48 of file SiStripPedestals.h.
typedef std::vector<DetRegistry> SiStripPedestals::Registry |
Definition at line 49 of file SiStripPedestals.h.
typedef Registry::const_iterator SiStripPedestals::RegistryIterator |
Definition at line 50 of file SiStripPedestals.h.
|
inline |
Definition at line 53 of file SiStripPedestals.h.
|
inline |
Definition at line 54 of file SiStripPedestals.h.
void SiStripPedestals::allPeds | ( | std::vector< int > & | pefs, |
const Range & | range | ||
) | const |
Definition at line 142 of file SiStripPedestals.cc.
References edm::hlt::Exception, get10bits(), dbtoconf::out, and findQualityFiles::size.
|
private |
Definition at line 100 of file SiStripPedestals.cc.
References data, and relativeConstraints::value.
Referenced by BeautifulSoup.Tag::_invert(), BeautifulSoup.NavigableString::encode(), and getPed().
|
private |
Definition at line 59 of file SiStripPedestals.cc.
Referenced by BeautifulSoup.Tag::_invert(), 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 run_regression::ret, and createPayload::skip.
Referenced by allPeds().
|
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 printDebug(), and printSummary().
float SiStripPedestals::getPed | ( | const uint16_t & | strip, |
const Range & | range | ||
) | const |
Definition at line 51 of file SiStripPedestals.cc.
References decode(), and edm::hlt::Exception.
Referenced by printDebug(), and printSummary().
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 printDebug(), and printSummary().
|
inline |
|
inline |
void SiStripPedestals::printDebug | ( | std::stringstream & | ss | ) | const |
Prints all pedestals.
Definition at line 180 of file SiStripPedestals.cc.
References cond::rpcobgas::detid, getDetIds(), getPed(), and getRange().
void SiStripPedestals::printSummary | ( | std::stringstream & | ss | ) | const |
Prints mean pedestal value divided for subdet, layer and mono/stereo.
Definition at line 164 of file SiStripPedestals.cc.
References SiStripDetSummary::add(), cond::rpcobgas::detid, getDetIds(), getPed(), getRange(), SiStripDetSummary::print(), 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, AlCaHLTBitMon_ParallelJobs::p, sd, and v_pedestals.
Referenced by SiStripPedestalsBuilder::analyze(), SiStripPedestalsGenerator::createObject(), SiStripPedestalsDQMService::readPedestals(), and SiStripCondObjBuilderFromDb::storePedestals().
void SiStripPedestals::setData | ( | float | ped, |
SiStripPedestals::InputVector & | vped | ||
) |
|
private |
Definition at line 82 of file SiStripPedestals.h.
Referenced by getDetIds(), getRange(), getRegistryVectorBegin(), getRegistryVectorEnd(), and put().
|
private |
Definition at line 81 of file SiStripPedestals.h.
Referenced by getDataVectorBegin(), getDataVectorEnd(), getRange(), and put().