#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 |
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.
void SiStripPedestals::allPeds | ( | std::vector< int > & | pefs, |
const Range & | range | ||
) | const |
Definition at line 142 of file SiStripPedestals.cc.
|
private |
Definition at line 100 of file SiStripPedestals.cc.
Referenced by ztail.Decoder::follow(), and ztail.Decoder::initial_synchronize().
|
private |
Definition at line 59 of file SiStripPedestals.cc.
|
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.
|
inline |
|
inline |
void SiStripPedestals::getDetIds | ( | std::vector< uint32_t > & | DetIds_ | ) | const |
Definition at line 37 of file SiStripPedestals.cc.
float SiStripPedestals::getPed | ( | const uint16_t & | strip, |
const Range & | range | ||
) | const |
Definition at line 51 of file SiStripPedestals.cc.
const SiStripPedestals::Range SiStripPedestals::getRange | ( | const uint32_t & | detID | ) | const |
Definition at line 27 of file SiStripPedestals.cc.
|
inline |
|
inline |
void SiStripPedestals::printDebug | ( | std::stringstream & | ss | ) | const |
Prints all pedestals.
Definition at line 180 of file SiStripPedestals.cc.
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.
bool SiStripPedestals::put | ( | const uint32_t & | detID, |
InputVector & | input | ||
) |
Definition at line 5 of file SiStripPedestals.cc.
Referenced by SiStripPedestalsBuilder::analyze(), SiStripPedestalsGenerator::createObject(), and SiStripPedestalsDQMService::readPedestals().
|
private |
void SiStripPedestals::setData | ( | float | ped, |
SiStripPedestals::InputVector & | vped | ||
) |
Definition at line 47 of file SiStripPedestals.cc.
Referenced by SiStripPedestalsBuilder::analyze(), SiStripPedestalsGenerator::createObject(), and SiStripPedestalsDQMService::readPedestals().
|
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 getRegistryVectorBegin(), and getRegistryVectorEnd().
|
private |
Definition at line 85 of file SiStripPedestals.h.
Referenced by getDataVectorBegin(), and getDataVectorEnd().