11 mStartingDistance(0.0), mFullLength(0.0)
15 for(
unsigned bf=0; bf<2; bf++)
45 int color =
eic->Palette().GetColor(tag);
47 printf(
"Tag '%s' does not exist!\n", tag);
52 if (
eic->mUseDetectorHighlighting) {
53 auto det =
new EtmDetector(
this, tag, color, kBlack, length);
58 auto det =
new EtmDetector(
this, tag, color, kWhite, length);
95 printf(
"'%s' detector must be unique (one per stack)!\n",
_MARKER_);
105 const char *before,
unsigned order)
111 unsigned counter = 0;
114 if (*(*it)->GetLabel() == before && order == counter++) {
149 unsigned counter = 0;
152 if (*det->GetLabel() == dname)
156 for (
auto it = mDetectors.begin();
it != mDetectors.end(); )
157 (*(*it)->GetLabel() == dname) ?
it = mDetectors.erase(
it) :
it++;
169 unsigned counter = 0;
172 (*(*it)->GetLabel() == dname && order == counter++) ?
it =
mDetectors.erase(
it) :
it++;
183 unsigned counter = 0;
186 if (*det->GetLabel() == dname)
187 if (order == counter++)
208 det->mActualDistance =
mFullLength + det->length()/2;