Skip to content

Commit 0056180

Browse files
committed
[MCH] added review suggestions
1 parent a90f036 commit 0056180

9 files changed

Lines changed: 11 additions & 29 deletions

Modules/MUON/MCH/include/MCH/DecodingPostProcessing.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class DecodingPostProcessing : public ReferenceComparatorTask
7373
static std::string hbPacketsSourceName() { return "hbpackets"; }
7474
static std::string syncStatusSourceName() { return "syncstatus"; }
7575

76-
TH1* getHistogram(std::string plotName);
76+
TH1* getHistogram(std::string_view plotName);
7777

7878
bool mFullHistos{ false };
7979
bool mEnableLastCycleHistos{ false };

Modules/MUON/MCH/include/MCH/DigitsPostProcessing.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class DigitsPostProcessing : public ReferenceComparatorTask
6363
static std::string orbitsSourceName() { return "orbits"; }
6464
static std::string orbitsSignalSourceName() { return "orbits_signal"; }
6565

66-
TH1* getHistogram(std::string plotName);
66+
TH1* getHistogram(std::string_view plotName);
6767

6868
bool mFullHistos{ false };
6969
bool mEnableLastCycleHistos{ false };

Modules/MUON/MCH/include/MCH/PreclustersPostProcessing.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class PreclustersPostProcessing : public ReferenceComparatorTask
7272
static std::string clusterChargeSourceName() { return "clcharge"; }
7373
static std::string clusterSizeSourceName() { return "clsize"; }
7474

75-
TH1* getHistogram(std::string plotName);
75+
TH1* getHistogram(std::string_view plotName);
7676

7777
bool mFullHistos{ false };
7878
bool mEnableLastCycleHistos{ false };

Modules/MUON/MCH/include/MCH/QualityAggregatorTask.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
///
1313
/// \file QualityAggregatorTask.h
1414
/// \author Andrea Ferrero andrea.ferrero@cern.ch
15-
/// \brief Post-processing of the MCH pre-clusters
15+
/// \brief Post-processing of the MCH summary qualities
1616
/// \since 21/06/2022
1717
///
1818

Modules/MUON/MCH/src/DecodingPostProcessing.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ void DecodingPostProcessing::updateSyncStatusHistos(Trigger t, repository::Datab
286286

287287
//_________________________________________________________________________________________
288288

289-
TH1* DecodingPostProcessing::getHistogram(std::string plotName)
289+
TH1* DecodingPostProcessing::getHistogram(std::string_view plotName)
290290
{
291291
TH1* result{ nullptr };
292292
for (auto hist : mHistogramsAll) {

Modules/MUON/MCH/src/DigitsPostProcessing.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ void DigitsPostProcessing::updateOrbitHistos(Trigger t, repository::DatabaseInte
348348

349349
//_________________________________________________________________________________________
350350

351-
TH1* DigitsPostProcessing::getHistogram(std::string plotName)
351+
TH1* DigitsPostProcessing::getHistogram(std::string_view plotName)
352352
{
353353
TH1* result{ nullptr };
354354
for (auto hist : mHistogramsAll) {

Modules/MUON/MCH/src/Helpers.cxx

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -184,15 +184,6 @@ int getDEFromIndex(int index)
184184
if (deId < 0) {
185185
deId = lMax + (nDEhc - indexInHalfChamber);
186186
}
187-
/*if (indexInHalfChamber > nDEqc) {
188-
// the DE is in the lower half of the chamber
189-
std::cout << "DE on lower R side, indexInHalfChamber=" << indexInHalfChamber << " nDEqc=" << nDEqc << std::endl;
190-
deId = lMax + (nDEhc - indexInHalfChamber);
191-
} else {
192-
// the DE is in the upper half of the chamber
193-
std::cout << "DE on upper R side, indexInHalfChamber=" << indexInHalfChamber << " nDEqc=" << nDEqc << std::endl;
194-
deId = lMin - indexInHalfChamber - 1;
195-
}*/
196187
}
197188

198189
deId += (chamber + 1) * 100;
@@ -245,7 +236,7 @@ int getSolarIndex(int solarId)
245236
try {
246237
return m.at(solarId);
247238
} catch (const std::exception&) {
248-
ILOG(Error, Support) << "Invalid Solar Id: " << solarId;
239+
ILOG(Error, Support) << "Invalid Solar Id: " << solarId << ENDM;
249240
}
250241
return -1;
251242
}
@@ -256,18 +247,11 @@ int getSolarIdFromIndex(int index)
256247
try {
257248
return v.at(index);
258249
} catch (const std::exception&) {
259-
ILOG(Error, Support) << "Invalid Solar Index: " << index;
250+
ILOG(Error, Support) << "Invalid Solar Index: " << index << ENDM;
260251
}
261252
return -1;
262253
}
263-
/*
264-
constexpr int getNumSolar()
265-
{
266-
//static std::vector<uint32_t> v = buildSolarIndexToSolarIdMap();
267-
//return v.size();
268-
return 624;
269-
}
270-
*/
254+
271255
int getNumSolarPerChamber(int chamberId)
272256
{
273257
static std::array<uint32_t, 10> v{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
@@ -567,8 +551,6 @@ void addChamberDelimitersToSolarHistogram(TH1* h, float xmin, float xmax)
567551
h->GetListOfFunctions()->Add(delimiter);
568552
}
569553

570-
// addChamberLabelsForSolar(h);
571-
572554
// draw x-axis labels
573555
/*float xMin{ 0 };
574556
float xMax{ 0 };

Modules/MUON/MCH/src/PreclustersPostProcessing.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ void PreclustersPostProcessing::updateClusterSizeHistos(Trigger t, repository::D
307307

308308
//_________________________________________________________________________________________
309309

310-
TH1* PreclustersPostProcessing::getHistogram(std::string plotName)
310+
TH1* PreclustersPostProcessing::getHistogram(std::string_view plotName)
311311
{
312312
TH1* result{ nullptr };
313313
for (auto hist : mHistogramsAll) {

Modules/MUON/MCH/src/QualityAggregatorTask.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
///
1313
/// \file QualityAggregatorTask.cxx
1414
/// \author Andrea Ferrero andrea.ferrero@cern.ch
15-
/// \brief Post-processing of the MCH pre-clusters
15+
/// \brief Post-processing of the MCH summary qualities
1616
/// \since 21/06/2022
1717
///
1818

0 commit comments

Comments
 (0)