@@ -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
709709inline 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
719719inline 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