Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Common/TableProducer/qVectorsTable.cxx
Original file line numberDiff line numberDiff line change
Expand Up@@ -156,7 +156,8 @@ struct qVectorsTable {
goto allDetectorsInUse; // Added to break from nested loop if all detectors are in use.
}
for (auto det : useDetector) {
if (input.matcher.binding == det.first) {
std::string table_name_with_vector = det.first; // for replacing s with Vecs at the end.
if (input.matcher.binding == det.first || input.matcher.binding == table_name_with_vector.replace(table_name_with_vector.size() - 1, 1, "Vecs")) {
useDetector[det.first.data()] = true;
LOGF(info, Form("Using detector: %s.", det.first.data()));
}
Expand DownExpand Up@@ -219,7 +220,7 @@ struct qVectorsTable {
}

objQvec.clear();
for (auto i = 0; i < cfgnMods->size(); i++) {
for (std::size_t i = 0; i < cfgnMods->size(); i++) {
int ind = cfgnMods->at(i);
fullPath = cfgQvecCalibPath;
fullPath += "/v";
Expand DownExpand Up@@ -522,7 +523,7 @@ struct qVectorsTable {
cent = 110.;
IsCalibrated = false;
}
for (auto id = 0; id < cfgnMods->size(); id++) {
for (std::size_t id = 0; id < cfgnMods->size(); id++) {
int ind = cfgnMods->at(id);
CalQvec(ind, coll, tracks, qvecRe, qvecIm, qvecAmp, TrkBPosLabel, TrkBNegLabel, TrkBTotLabel);
if (cent < 80) {
Expand Down