CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TkMeasurementDetSet.cc
Go to the documentation of this file.
1 #include "TkMeasurementDetSet.h"
3 
5 
6 
8  activeThisPeriod_.resize(size,true);
9  id_.resize(size);
10  subId_.resize(size);
11  totalStrips_.resize(size);
12 
13  bad128Strip_.resize(size*6);
14  hasAny128StripBad_.resize(size);
15  badStripBlocks_.resize(size);
16 }
17 
18 
20  int offset = nbad128*i;
21  if (idx == -1) {
22  std::fill(bad128Strip_.begin()+offset, bad128Strip_.begin()+offset+6, !good);
23  hasAny128StripBad_[i] = !good;
24  } else {
25  bad128Strip_[offset+idx] = !good;
26  if (good == false) {
27  hasAny128StripBad_[i] = false;
28  } else { // this should not happen, as usually you turn on all fibers
29  // and then turn off the bad ones, and not vice-versa,
30  // so I don't care if it's not optimized
31  hasAny128StripBad_[i] = true;
32  for (int j = 0; i < (totalStrips_[j] >> 7); j++) {
33  if (bad128Strip_[j+offset] == false) hasAny128StripBad_[i] = false; break;
34  }
35  }
36  }
37  }
38 
39 
41  activeThisPeriod_.resize(size,true);
42  id_.resize(size);
43 }
44 
45 
int i
Definition: DBlmapReader.cc:9
std::vector< std::vector< BadStripBlock > > badStripBlocks_
string fill
Definition: lumiContext.py:319
std::vector< unsigned char > subId_
int j
Definition: DBlmapReader.cc:9
std::vector< int > totalStrips_
std::vector< bool > hasAny128StripBad_
std::vector< bool > activeThisPeriod_
std::vector< unsigned int > id_
tuple idx
DEBUGGING if hasattr(process,&quot;trackMonIterativeTracking2012&quot;): print &quot;trackMonIterativeTracking2012 D...
std::vector< unsigned int > id_
std::vector< bool > activeThisPeriod_
std::vector< bool > bad128Strip_
void set128StripStatus(int i, bool good, int idx=-1)
tuple size
Write out results.