Skip to content

Commit acd8789

Browse files
author
Victor
committed
Fix linter errors
1 parent 81b0e04 commit acd8789

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

PWGCF/TableProducer/dptDptFilter.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,11 +440,11 @@ struct DptDptFilter {
440440
/* create the reconstructed data histograms */
441441
fhEventSelection = new TH1D("EventSelection", ";;counts", CollSelNOOFFLAGS, -0.5f, static_cast<float>(CollSelNOOFFLAGS) - 0.5f);
442442
for (int ix = 0; ix < CollSelNOOFFLAGS; ++ix) {
443-
fhEventSelection->GetXaxis()->SetBinLabel(ix + 1, CollisionSelectionExternalNames.at(ix).c_str());
443+
fhEventSelection->GetXaxis()->SetBinLabel(ix + 1, collisionSelectionExternalNamesMap.at(ix).c_str());
444444
}
445445
fhTriggerSelection = new TH1D("TriggerSelection", ";;counts", TriggSelNOOFTRIGGERS, -0.5f, static_cast<float>(TriggSelNOOFTRIGGERS) - 0.5f);
446446
for (int ix = 0; ix < TriggSelNOOFTRIGGERS; ++ix) {
447-
fhTriggerSelection->GetXaxis()->SetBinLabel(ix + 1, TString::Format("#color[%d]{%s}", triggerSelectionFlags.test(ix) ? 2 : 1, TriggerSelectionExternalNames.at(ix).c_str()).Data());
447+
fhTriggerSelection->GetXaxis()->SetBinLabel(ix + 1, TString::Format("#color[%d]{%s}", triggerSelectionFlags.test(ix) ? 2 : 1, triggerSelectionExternalNamesMap.at(ix).c_str()).Data());
448448
}
449449
/* TODO: proper axes and axes titles according to the system; still incomplete */
450450
std::string multestimator = getCentMultEstimatorName(fCentMultEstimator);

PWGCF/TableProducer/dptDptFilter.h

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ enum CentMultEstimatorType {
107107
CentMultNOOFESTIMATORS ///< number of centrality/mutiplicity estimator
108108
};
109109

110-
/// \std::map EstimatorInternalCodes
110+
/// \std::map estimatorInternalCodesMap
111111
/// \brief maps centrality/multiplicity estimator names to internal estimator codes
112-
static const std::map<std::string, int> EstimatorInternalCodes{
112+
static const std::map<std::string, int> estimatorInternalCodesMap{
113113
{"NOCM", CentMultNOCM},
114114
{"V0M", CentMultV0M},
115115
{"CL0", CentMultCL0},
@@ -120,9 +120,9 @@ static const std::map<std::string, int> EstimatorInternalCodes{
120120
{"FT0C", CentMultFT0C},
121121
{"NTPV", CentMultNTPV}};
122122

123-
/// \std::map EstimatorExternalNames
123+
/// \std::map estimatorExternalNamesMap
124124
/// \brief maps internal estimator codes to centrality/multiplicity estimator external names
125-
static const std::map<int, std::string> EstimatorExternalNames{
125+
static const std::map<int, std::string> estimatorExternalNamesMap{
126126
{CentMultNOCM, "NOCM"},
127127
{CentMultV0M, "V0M"},
128128
{CentMultCL0, "CL0"},
@@ -155,9 +155,9 @@ enum TriggerSelectionTags {
155155
TriggSelNOOFTRIGGERS ///< number of triggers for event selection
156156
};
157157

158-
/// \std::map TriggerSelectionBit
158+
/// \std::map triggerSelectionBitsMap
159159
/// \brief maps trigger selection tags to internal trigger selection bits
160-
static const std::map<std::string, int> TriggerSelectionBit{
160+
static const std::map<std::string, int> triggerSelectionBitsMap{
161161
{"none", TriggSelNONE},
162162
{"mb", TriggSelMB},
163163
{"nosamebunchpup", TriggSelNOSAMEBUNCHPUP},
@@ -175,9 +175,9 @@ static const std::map<std::string, int> TriggerSelectionBit{
175175
{"nogooditslayer0123", TriggSelNOGOODITSLAYER0123},
176176
{"nogooditslayerall", TriggSelNOGOODITSLAYERALL}};
177177

178-
/// \std::map TriggerSelectionExternalNames
178+
/// \std::map triggerSelectionExternalNamesMap
179179
/// \brief maps trigger selection bits to external names
180-
static const std::map<int, std::string> TriggerSelectionExternalNames{
180+
static const std::map<int, std::string> triggerSelectionExternalNamesMap{
181181
{TriggSelNONE, "none"},
182182
{TriggSelMB, "Sel8"}, ///< Sel8 includes kIsTriggerTVX, kNoTimeFrameBorder, and kNoITSROFrameBorder
183183
{TriggSelNOSAMEBUNCHPUP, "No same bunch pileup"},
@@ -219,9 +219,9 @@ enum CollisionSelectionFlags {
219219
CollSelNOOFFLAGS ///< number of flags
220220
};
221221

222-
/// \std::mag CollisionSelectionExternalNames
222+
/// \std::mag collisionSelectionExternalNamesMap
223223
/// \brief maps collision selection bits to external names
224-
static const std::map<int, std::string> CollisionSelectionExternalNames{
224+
static const std::map<int, std::string> collisionSelectionExternalNamesMap{
225225
{CollSelIN, "In"},
226226
{CollSelMBBIT, "MB"},
227227
{CollSelINT7BIT, "INT7"},
@@ -630,9 +630,9 @@ inline std::bitset<32> getTriggerSelection(std::string const& triggstr)
630630

631631
std::vector<std::string> tags = split(triggstr);
632632

633-
for (auto tag : tags) {
634-
if (TriggerSelectionBit.contains(tag)) {
635-
flags.set(TriggerSelectionBit.at(tag), true);
633+
for (const auto& tag : tags) {
634+
if (triggerSelectionBitsMap.contains(tag)) {
635+
flags.set(triggerSelectionBitsMap.at(tag), true);
636636
} else {
637637
LOGF(fatal, "Wrong trigger selection tag: %s", tag.c_str());
638638
}
@@ -708,8 +708,8 @@ inline DataType getDataType(std::string const& datastr)
708708

709709
inline CentMultEstimatorType getCentMultEstimator(std::string const& datastr)
710710
{
711-
if (EstimatorInternalCodes.contains(datastr)) {
712-
return static_cast<CentMultEstimatorType>(EstimatorInternalCodes.at(datastr));
711+
if (estimatorInternalCodesMap.contains(datastr)) {
712+
return static_cast<CentMultEstimatorType>(estimatorInternalCodesMap.at(datastr));
713713
} else {
714714
LOGF(fatal, "Centrality/Multiplicity estimator %s not supported yet", datastr.c_str());
715715
}
@@ -718,8 +718,8 @@ inline CentMultEstimatorType getCentMultEstimator(std::string const& datastr)
718718

719719
inline std::string getCentMultEstimatorName(CentMultEstimatorType est)
720720
{
721-
if (EstimatorExternalNames.contains(est)) {
722-
return EstimatorExternalNames.at(est);
721+
if (estimatorExternalNamesMap.contains(est)) {
722+
return estimatorExternalNamesMap.at(est);
723723
} else {
724724
LOGF(fatal, "Centrality/Multiplicity estimator %d not supported yet", static_cast<int>(est));
725725
}

0 commit comments

Comments
 (0)