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 }
good
const auto good
min quality of good
Definition: CAHitNtupletGeneratorKernelsImpl.h:760
mps_fire.i
i
Definition: mps_fire.py:428
Phase2OTMeasurementConditionSet::id_
std::vector< unsigned int > id_
Definition: TkMeasurementDetSet.h:429
StMeasurementConditionSet::hasAny128StripBad_
std::vector< bool > hasAny128StripBad_
Definition: TkMeasurementDetSet.h:131
TkMeasurementDetSet.h
Phase2OTMeasurementConditionSet::init
void init(int size)
Definition: TkMeasurementDetSet.cc:42
StMeasurementConditionSet::badStripBlocks_
std::vector< std::vector< BadStripBlock > > badStripBlocks_
Definition: TkMeasurementDetSet.h:133
StMeasurementConditionSet::totalStrips_
std::vector< int > totalStrips_
Definition: TkMeasurementDetSet.h:127
heavyIonCSV_trainingSettings.idx
idx
Definition: heavyIonCSV_trainingSettings.py:5
PxMeasurementConditionSet::activeThisPeriod_
std::vector< bool > activeThisPeriod_
Definition: TkMeasurementDetSet.h:320
StMeasurementConditionSet::bad128Strip_
std::vector< bool > bad128Strip_
Definition: TkMeasurementDetSet.h:130
PxMeasurementConditionSet::init
void init(int size)
Definition: TkMeasurementDetSet.cc:37
ntuplemaker.fill
fill
Definition: ntuplemaker.py:304
StMeasurementConditionSet::subId_
std::vector< unsigned char > subId_
Definition: TkMeasurementDetSet.h:125
StMeasurementConditionSet::activeThisPeriod_
std::vector< bool > activeThisPeriod_
Definition: TkMeasurementDetSet.h:135
StMeasurementConditionSet::init
void init(int size)
Definition: TkMeasurementDetSet.cc:3
Phase2OTMeasurementConditionSet::activeThisPeriod_
std::vector< bool > activeThisPeriod_
Definition: TkMeasurementDetSet.h:430
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
StMeasurementConditionSet::id_
std::vector< unsigned int > id_
Definition: TkMeasurementDetSet.h:124
hltrates_dqm_sourceclient-live_cfg.offset
offset
Definition: hltrates_dqm_sourceclient-live_cfg.py:82
StMeasurementConditionSet::nbad128
static const int nbad128
Definition: TkMeasurementDetSet.h:129
StMeasurementConditionSet::set128StripStatus
void set128StripStatus(int i, bool good, int idx=-1)
Definition: TkMeasurementDetSet.cc:14
PxMeasurementConditionSet::id_
std::vector< unsigned int > id_
Definition: TkMeasurementDetSet.h:319
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443