Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-30 02:33:38

0001 #ifndef Validation_MuonGEMHits_INTERFACE_GEMValidationUtils_h
0002 #define Validation_MuonGEMHits_INTERFACE_GEMValidationUtils_h
0003 
0004 #include "DQMServices/Core/interface/DQMStore.h"
0005 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0006 #include "DQMServices/Core/interface/MonitorElement.h"
0007 
0008 #include "TString.h"
0009 #include "TSystem.h"
0010 
0011 #include <map>
0012 #include <tuple>
0013 
0014 class TH1F;
0015 class TH2F;
0016 class TProfile;
0017 
0018 typedef std::tuple<Int_t, Int_t> ME2IdsKey;
0019 typedef std::tuple<Int_t, Int_t, Int_t> ME3IdsKey;
0020 typedef std::tuple<Int_t, Int_t, Int_t, Int_t> ME4IdsKey;
0021 
0022 typedef std::map<Int_t, dqm::impl::MonitorElement*> MEMap1Ids;
0023 typedef std::map<ME2IdsKey, dqm::impl::MonitorElement*> MEMap2Ids;
0024 typedef std::map<ME3IdsKey, dqm::impl::MonitorElement*> MEMap3Ids;
0025 typedef std::map<ME4IdsKey, dqm::impl::MonitorElement*> MEMap4Ids;
0026 
0027 namespace GEMUtils {
0028   TString getSuffixName(Int_t region_id);
0029   TString getSuffixName(Int_t region_id, Int_t station_id);
0030   TString getSuffixName(Int_t region_id, Int_t station_id, Int_t layer_id);
0031   TString getSuffixName(Int_t region_id, Int_t station_id, Int_t layer_id, Int_t eta_id);
0032 
0033   TString getSuffixName(const ME2IdsKey& key);
0034   TString getSuffixName(const ME3IdsKey& key);
0035   TString getSuffixName(const ME4IdsKey& key);
0036 
0037   TString getSuffixTitle(Int_t region_id);
0038   TString getSuffixTitle(Int_t region_id, Int_t station_id);
0039   TString getSuffixTitle(Int_t region_id, Int_t station_id, Int_t layer_id);
0040   TString getSuffixTitle(Int_t region_id, Int_t station_id, Int_t layer_id, Int_t eta_id);
0041 
0042   TString getSuffixTitle(const ME2IdsKey& key);
0043   TString getSuffixTitle(const ME3IdsKey& key);
0044   TString getSuffixTitle(const ME4IdsKey& key);
0045 
0046 }  // namespace GEMUtils
0047 
0048 #endif  // Validation_MuonGEMHits_GEMValidationUtils_h