#include <SiStripDetVOff.h>
Public Types | |
typedef std::vector< int >::const_iterator | constVboolIterator |
typedef std::vector< uint32_t >::const_iterator | constVoffIterator |
typedef std::vector< uint32_t >::iterator | vOffIterator |
Public Member Functions | |
void | getDetIds (std::vector< uint32_t > &DetIds_) const |
int | getHVoffCounts () const |
Returns the total number of modules with HV off. More... | |
int | getLVoffCounts () const |
Returns the total number of modules with LV off. More... | |
void | getVoff (std::vector< uint32_t > &vOff_) const |
Needed by the copy constructor. More... | |
bool | IsModuleHVOff (const uint32_t DetID) const |
bool | IsModuleLVOff (const uint32_t DetID) const |
bool | IsModuleVOff (const uint32_t DetID) const |
Returns true if either HV or LV are off. More... | |
bool | operator== (const SiStripDetVOff &d) const |
void | printDebug (std::stringstream &ss, const TrackerTopology *) const |
void | printSummary (std::stringstream &ss, const TrackerTopology *) const |
bool | put (const uint32_t DetId, const int HVoff, const int LVoff) |
Insert information for a single detId. More... | |
bool | put (std::vector< uint32_t > &DetId, std::vector< int > &HVoff, std::vector< int > &LVoff) |
Insert information for a vector of detIds. More... | |
void | setBits (uint32_t &enDetId, const int HVoff, const int LVoff) |
Changes the bits in the stored value according to on/off voltages. More... | |
SiStripDetVOff () | |
SiStripDetVOff (const SiStripDetVOff &toCopy) | |
~SiStripDetVOff () | |
Static Public Attributes | |
static const unsigned int | allOnMask = 0x03 |
static const short | bitShift = 2 |
static const unsigned int | eightBitMask = 0xFFFFFFFF |
static const short | HVmask = 0x2 |
static const unsigned int | HVonMask = 0xFFFFFFFD |
static const short | LVmask = 0x1 |
static const unsigned int | LVonMask = 0xFFFFFFFE |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Private Attributes | |
std::vector< uint32_t > | v_Voff |
Friends | |
class | boost::serialization::access |
template<typename CondSerializationT , typename Enabled > | |
struct | cond::serialization::access |
This class stores the information if the HV or LV of a detId were off.
Internally it uses two bits to store the information about HV and LV. It saves a uint32_t containing the detId number and these additional bits, which are stored in the first position. This is realized by the put method using a bit shift so that the actual number written in the database is: detId|HV|LV.
The getDetIds method builds and returns a vector with detIds, removing the additional bits. It has three methods to extract the information:
The printSummary method uses SiStripDetSummary to print both LV off and HV off summaries. See description of the SiStripDetSummary class therein.
The printDebug method prints the status of HV and LV for all DetIds that have at least one of the two off.
Definition at line 31 of file SiStripDetVOff.h.
typedef std::vector<int>::const_iterator SiStripDetVOff::constVboolIterator |
Definition at line 37 of file SiStripDetVOff.h.
typedef std::vector<uint32_t>::const_iterator SiStripDetVOff::constVoffIterator |
Definition at line 36 of file SiStripDetVOff.h.
typedef std::vector<uint32_t>::iterator SiStripDetVOff::vOffIterator |
Definition at line 35 of file SiStripDetVOff.h.
|
inline |
Definition at line 48 of file SiStripDetVOff.h.
|
inline |
Definition at line 49 of file SiStripDetVOff.h.
|
inline |
Definition at line 50 of file SiStripDetVOff.h.
References getVoff(), and v_Voff.
void SiStripDetVOff::getDetIds | ( | std::vector< uint32_t > & | DetIds_ | ) | const |
Definition at line 62 of file SiStripDetVOff.cc.
References bitShift, and v_Voff.
Referenced by SiStripQuality::add(), SiPixelQuality::add(), SiStripDetVOffReader::analyze(), SiStripDetVOffBuilder::BuildDetVOffObj(), getHVoffCounts(), getLVoffCounts(), operator==(), printDebug(), printSummary(), and SiStripDcsInfo::readStatus().
int SiStripDetVOff::getHVoffCounts | ( | ) | const |
Returns the total number of modules with HV off.
Definition at line 121 of file SiStripDetVOff.cc.
References begin, end, getDetIds(), and IsModuleHVOff().
Referenced by FilterTrackerOn::filter(), and operator==().
int SiStripDetVOff::getLVoffCounts | ( | ) | const |
Returns the total number of modules with LV off.
Definition at line 113 of file SiStripDetVOff.cc.
References begin, end, getDetIds(), and IsModuleLVOff().
Referenced by operator==().
|
inline |
Needed by the copy constructor.
Definition at line 53 of file SiStripDetVOff.h.
Referenced by SiStripDetVOff().
bool SiStripDetVOff::IsModuleHVOff | ( | const uint32_t | DetID | ) | const |
Definition at line 90 of file SiStripDetVOff.cc.
References bitShift, eightBitMask, HVmask, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, AlCaHLTBitMon_ParallelJobs::p, and v_Voff.
Referenced by SiStripDetVOffReader::analyze(), getHVoffCounts(), operator==(), printDebug(), and printSummary().
bool SiStripDetVOff::IsModuleLVOff | ( | const uint32_t | DetID | ) | const |
Definition at line 82 of file SiStripDetVOff.cc.
References bitShift, eightBitMask, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, LVmask, AlCaHLTBitMon_ParallelJobs::p, and v_Voff.
Referenced by SiStripDetVOffReader::analyze(), getLVoffCounts(), operator==(), printDebug(), and printSummary().
bool SiStripDetVOff::IsModuleVOff | ( | const uint32_t | DetID | ) | const |
Returns true if either HV or LV are off.
Definition at line 74 of file SiStripDetVOff.cc.
References bitShift, eightBitMask, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, AlCaHLTBitMon_ParallelJobs::p, and v_Voff.
Referenced by SiStripDetVOffReader::analyze(), and operator==().
|
inline |
Definition at line 61 of file SiStripDetVOff.h.
References getDetIds(), getHVoffCounts(), getLVoffCounts(), IsModuleHVOff(), IsModuleLVOff(), IsModuleVOff(), printDebug(), printSummary(), setBits(), and v_Voff.
void SiStripDetVOff::printDebug | ( | std::stringstream & | ss, |
const TrackerTopology * | |||
) | const |
Definition at line 98 of file SiStripDetVOff.cc.
References getDetIds(), IsModuleHVOff(), and IsModuleLVOff().
Referenced by operator==().
void SiStripDetVOff::printSummary | ( | std::stringstream & | ss, |
const TrackerTopology * | trackerTopo | ||
) | const |
Definition at line 129 of file SiStripDetVOff.cc.
References getDetIds(), IsModuleHVOff(), and IsModuleLVOff().
Referenced by operator==().
bool SiStripDetVOff::put | ( | const uint32_t | DetId, |
const int | HVoff, | ||
const int | LVoff | ||
) |
Insert information for a single detId.
Definition at line 21 of file SiStripDetVOff.cc.
References allOnMask, bitShift, eightBitMask, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, AlCaHLTBitMon_ParallelJobs::p, setBits(), and v_Voff.
Referenced by SiStripDetVOffFakeBuilder::analyze(), SiStripDetVOffBuilder::BuildDetVOffObj(), getVoff(), and put().
bool SiStripDetVOff::put | ( | std::vector< uint32_t > & | DetId, |
std::vector< int > & | HVoff, | ||
std::vector< int > & | LVoff | ||
) |
Insert information for a vector of detIds.
Definition at line 43 of file SiStripDetVOff.cc.
References gather_cfg::cout, and put().
|
private |
void SiStripDetVOff::setBits | ( | uint32_t & | enDetId, |
const int | HVoff, | ||
const int | LVoff | ||
) |
Changes the bits in the stored value according to on/off voltages.
Definition at line 7 of file SiStripDetVOff.cc.
References HVmask, HVonMask, LVmask, and LVonMask.
Referenced by operator==(), and put().
|
friend |
Definition at line 87 of file SiStripDetVOff.h.
|
friend |
Definition at line 87 of file SiStripDetVOff.h.
|
static |
Definition at line 44 of file SiStripDetVOff.h.
Referenced by put().
|
static |
Definition at line 46 of file SiStripDetVOff.h.
Referenced by getDetIds(), IsModuleHVOff(), IsModuleLVOff(), IsModuleVOff(), and put().
|
static |
Definition at line 45 of file SiStripDetVOff.h.
Referenced by IsModuleHVOff(), IsModuleLVOff(), IsModuleVOff(), and put().
|
static |
Definition at line 42 of file SiStripDetVOff.h.
Referenced by IsModuleHVOff(), and setBits().
|
static |
Definition at line 43 of file SiStripDetVOff.h.
Referenced by setBits().
|
static |
Definition at line 40 of file SiStripDetVOff.h.
Referenced by IsModuleLVOff(), and setBits().
|
static |
Definition at line 41 of file SiStripDetVOff.h.
Referenced by setBits().
|
private |
Definition at line 85 of file SiStripDetVOff.h.
Referenced by getDetIds(), getVoff(), IsModuleHVOff(), IsModuleLVOff(), IsModuleVOff(), operator==(), put(), and SiStripDetVOff().