|
|
Go to the documentation of this file.
47 if (
DetId.size() == HVoff.size() &&
DetId.size() == LVoff.size()) {
52 for (; detIdIt != detIdItEnd; ++detIdIt, ++HVoffIt, ++LVoffIt) {
53 put(*detIdIt, *HVoffIt, *LVoffIt);
56 std::cout <<
"Error: inconsistent sizes of vectors:" << std::endl;
57 std::cout <<
"DetId size = " <<
DetId.size() <<
", HVoff size = " << HVoff.size()
58 <<
", LVoff size = " << LVoff.size() << std::endl;
70 for (; bitSetIt != bitSetItEnd; ++bitSetIt) {
71 DetIds_.push_back((*bitSetIt) >>
bitShift);
100 std::vector<uint32_t> detIds;
103 ss <<
"DetId \t HV \t LV" << std::endl;
104 for (; it != detIds.end(); ++it) {
111 ss <<
"OFF" << std::endl;
113 ss <<
"ON" << std::endl;
118 std::vector<uint32_t> detIds;
120 return std::count_if(std::begin(detIds),
std::end(detIds), [
this](uint32_t
id) ->
bool {
return IsModuleLVOff(
id); });
124 std::vector<uint32_t> detIds;
126 return std::count_if(std::begin(detIds),
std::end(detIds), [
this](uint32_t
id) ->
bool {
return IsModuleHVOff(
id); });
132 std::vector<uint32_t> detIds;
135 for (; it != detIds.end(); ++it) {
141 ss <<
"Summary of detectors with HV off:" << std::endl;
142 summaryHV.print(
ss,
false);
143 ss <<
"Summary of detectors with LV off:" << std::endl;
144 summaryLV.print(
ss,
false);
int getLVoffCounts() const
Returns the total number of modules with LV off.
void setBits(uint32_t &enDetId, const int HVoff, const int LVoff)
Changes the bits in the stored value according to on/off voltages.
static const short HVmask
bool IsModuleHVOff(const uint32_t DetID) const
bool IsModuleVOff(const uint32_t DetID) const
Returns true if either HV or LV are off.
std::vector< uint32_t > v_Voff
std::vector< uint32_t >::iterator vOffIterator
void getDetIds(std::vector< uint32_t > &DetIds_) const
void printDebug(std::stringstream &ss, const TrackerTopology *) const
int getHVoffCounts() const
Returns the total number of modules with HV off.
static const short LVmask
std::vector< uint32_t >::const_iterator constVoffIterator
bool put(const uint32_t DetId, const int HVoff, const int LVoff)
Insert information for a single detId.
std::vector< int >::const_iterator constVboolIterator
static const unsigned int LVonMask
void printSummary(std::stringstream &ss, const TrackerTopology *) const
static const unsigned int allOnMask
static const unsigned int eightBitMask
static const short bitShift
static const unsigned int HVonMask
bool IsModuleLVOff(const uint32_t DetID) const