11 if( LVoff == 0 ) enDetId &=
LVonMask;
12 if( LVoff == 1 ) enDetId |=
LVmask;
16 if( HVoff == 0 ) enDetId &=
HVonMask;
17 if( HVoff == 1 ) enDetId |=
HVmask;
45 if( DetId.size() == HVoff.size() && DetId.size() == LVoff.size() ) {
50 for( ; detIdIt != detIdItEnd; ++detIdIt, ++HVoffIt, ++LVoffIt ) {
51 put( *detIdIt, *HVoffIt, *LVoffIt );
55 std::cout <<
"Error: inconsistent sizes of vectors:" << std::endl;
56 std::cout <<
"DetId size = " << DetId.size() <<
", HVoff size = " << HVoff.size() <<
", LVoff size = " << LVoff.size() << std::endl;
69 for( ; bitSetIt != bitSetItEnd; ++bitSetIt ) {
70 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 ) {
109 else ss <<
"ON" << std::endl;
116 std::vector<uint32_t> detIds;
119 for( ; it!=detIds.end(); ++it ) {
123 std::map<unsigned int, SiStripDetSummary::Values> counts = summaryLV.
getCounts();
124 std::map<unsigned int, SiStripDetSummary::Values>::const_iterator mapIt = counts.begin();
125 for( ; mapIt != counts.end(); ++mapIt ) {
126 totalCount += mapIt->second.count;
134 std::vector<uint32_t> detIds;
137 for( ; it!=detIds.end(); ++it ) {
141 std::map<unsigned int, SiStripDetSummary::Values> counts = summaryHV.
getCounts();
142 std::map<unsigned int, SiStripDetSummary::Values>::const_iterator mapIt = counts.begin();
143 for( ; mapIt != counts.end(); ++mapIt ) {
144 totalCount += mapIt->second.count;
153 std::vector<uint32_t> detIds;
156 for( ; it!=detIds.end(); ++it ) {
160 ss <<
"Summary of detectors with HV off:" << std::endl;
161 summaryHV.
print(ss,
false);
162 ss <<
"Summary of detectors with LV off:" << std::endl;
163 summaryLV.
print(ss,
false);
std::map< unsigned int, Values > getCounts()
static const short bitShift
bool IsModuleHVOff(const uint32_t DetID) const
static const unsigned int LVonMask
static const unsigned int allOnMask
int getLVoffCounts() const
Returns the total number of modules with LV off.
bool put(const uint32_t DetId, const int HVoff, const int LVoff)
Insert information for a single detId.
std::vector< int >::const_iterator constVboolIterator
bool IsModuleVOff(const uint32_t DetID) const
Returns true if either HV or LV are off.
std::vector< uint32_t > v_Voff
bool IsModuleLVOff(const uint32_t DetID) const
void getDetIds(std::vector< uint32_t > &DetIds_) const
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 unsigned int eightBitMask
static const short HVmask
int getHVoffCounts() const
Returns the total number of modules with HV off.
void print(std::stringstream &ss, const bool mean=true) const
void printSummary(std::stringstream &ss) const
static const short LVmask
static const unsigned int HVonMask
std::vector< uint32_t >::iterator vOffIterator
std::vector< uint32_t >::const_iterator constVoffIterator
void add(const DetId &detid, const float &value)
Used to compute the mean value of the value variable divided by subdetector, layer and mono/stereo...
void printDebug(std::stringstream &ss) const