CMS 3D CMS Logo

TkMeasurementDetSet.cc
Go to the documentation of this file.
1 #include "TkMeasurementDetSet.h"
2 
4  activeThisPeriod_.resize(size, true);
5  id_.resize(size);
6  subId_.resize(size);
7  totalStrips_.resize(size);
8 
9  bad128Strip_.resize(size * 6);
10  hasAny128StripBad_.resize(size);
11  badStripBlocks_.resize(size);
12 }
13 
15  int offset = nbad128 * i;
16  if (idx == -1) {
17  std::fill(bad128Strip_.begin() + offset, bad128Strip_.begin() + offset + 6, !good);
19  } else {
21  if (good == false) {
22  hasAny128StripBad_[i] = false;
23  } else { // this should not happen, as usually you turn on all fibers
24  // and then turn off the bad ones, and not vice-versa,
25  // so I don't care if it's not optimized
26  hasAny128StripBad_[i] = true;
27  for (int j = 0; i < (totalStrips_[j] >> 7); j++) {
28  if (bad128Strip_[j + offset] == false) {
29  hasAny128StripBad_[i] = false;
30  break;
31  }
32  }
33  }
34  }
35 }
36 
38  activeThisPeriod_.resize(size, true);
39  id_.resize(size);
40 }
41 
43  activeThisPeriod_.resize(size, true);
44  id_.resize(size);
45 }
size
Write out results.
std::vector< std::vector< BadStripBlock > > badStripBlocks_
std::vector< unsigned char > subId_
std::vector< unsigned int > id_
std::vector< int > totalStrips_
std::vector< bool > hasAny128StripBad_
std::vector< bool > activeThisPeriod_
std::vector< unsigned int > id_
auto const good
min quality of good
std::vector< unsigned int > id_
std::vector< bool > activeThisPeriod_
std::vector< bool > bad128Strip_
void set128StripStatus(int i, bool good, int idx=-1)