From 4de550728563360c9b6dda0efea2ab7a6544c94d Mon Sep 17 00:00:00 2001 From: vsitaraman Date: Sun, 7 Jun 2026 08:49:01 -0400 Subject: [PATCH] modified: Armory/HistPlotter.h replaced omap with map for alphanumeric sorting of histograms --- Armory/HistPlotter.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Armory/HistPlotter.h b/Armory/HistPlotter.h index a0e21dc..10fa9c5 100644 --- a/Armory/HistPlotter.h +++ b/Armory/HistPlotter.h @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -23,7 +24,7 @@ class HistPlotter { private: long long barrier_count, barrier_limit; //meant to keep track of how often to call FillN() on histograms enum {TFILE, TMEMFILE} filetype; - std::unordered_map oMap; //!< Maps std::string to all TH1, TH2 objects in the class + std::map oMap; //!< Maps std::string to all TH1, TH2 objects in the class std::unordered_map cutsMap; //!< Maps std::string to TCutG objects held by the class std::set folderList; //!< List of all folder names used to nest objects std::unordered_map foldersForObjects; //!< Map that returns the folder corresponding to the object whose pointer is specified @@ -31,8 +32,8 @@ private: TMemFile *omfile=nullptr; //!< TFile pointer for the output memfile //Caches to permit FillN() calls - std::unordered_map> onedimcache; - std::unordered_map, std::vector>> twodimcache; + std::map> onedimcache; + std::map, std::vector>> twodimcache; inline void FillN_All_Histograms(); public: HistPlotter(std::string outfile, std::string type);