Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:09:09

0001 #ifndef TrackingUtility_H
0002 #define TrackingUtility_H
0003 
0004 /** \class TrackingUtility
0005  * *
0006  *  Class that handles the Tracking Quality Tests
0007  * *
0008   */
0009 
0010 #include <vector>
0011 #include <fstream>
0012 #include <string>
0013 #include <map>
0014 #include <cstdint>
0015 
0016 #include "DQMServices/Core/interface/DQMStore.h"
0017 
0018 class TrackerTopology;
0019 class TrackingUtility {
0020 public:
0021   typedef dqm::harvesting::DQMStore DQMStore;
0022   typedef dqm::harvesting::MonitorElement MonitorElement;
0023 
0024   static int getMEList(std::string name, std::vector<std::string>& values);
0025   static bool checkME(std::string element, std::string name, std::string& full_path);
0026   static int getMEList(std::string name, std::string& dir_path, std::vector<std::string>& me_names);
0027 
0028   static void split(const std::string& str, std::vector<std::string>& tokens, const std::string& delimiters = " ");
0029   static void getMEStatusColor(int status, int& rval, int& gval, int& bval);
0030   static void getMEStatusColor(int status, int& icol, std::string& tag);
0031   static int getMEStatus(MonitorElement* me);
0032   static int getMEStatus(MonitorElement* me, int& bad_channels);
0033   static void getModuleFolderList(DQMStore::IBooker& ibooker,
0034                                   DQMStore::IGetter& igetter,
0035                                   std::vector<std::string>& m_ids);
0036   static void getMEValue(MonitorElement* me, std::string& val);
0037   static bool goToDir(DQMStore::IBooker& ibooker, DQMStore::IGetter& igetter, std::string name);
0038   static void setBadModuleFlag(std::string& hname, uint16_t& flg);
0039   static void getBadModuleStatus(uint16_t flag, std::string& message);
0040   static void getTopFolderPath(DQMStore::IBooker& ibooker,
0041                                DQMStore::IGetter& igetter,
0042                                std::string top_dir,
0043                                std::string& path);
0044 };
0045 
0046 #endif