Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 10:06:52

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 typedef std::tuple<Int_t, Int_t, Int_t, Int_t, Int_t>
0022     ME5IdsKey;  // 0: region, 1: station, 2: later, 3: module, 4: chamber or iEta
0023 
0024 typedef std::map<Int_t, dqm::impl::MonitorElement*> MEMap1Ids;
0025 typedef std::map<ME2IdsKey, dqm::impl::MonitorElement*> MEMap2Ids;
0026 typedef std::map<ME3IdsKey, dqm::impl::MonitorElement*> MEMap3Ids;
0027 typedef std::map<ME4IdsKey, dqm::impl::MonitorElement*> MEMap4Ids;
0028 typedef std::map<ME5IdsKey, dqm::impl::MonitorElement*> MEMap5Ids;
0029 
0030 namespace GEMUtils {
0031   TString getSuffixName(Int_t region_id);
0032   TString getSuffixName(Int_t region_id, Int_t station_id);
0033   TString getSuffixName(Int_t region_id, Int_t station_id, Int_t layer_id);
0034   TString getSuffixName(Int_t region_id, Int_t station_id, Int_t layer_id, Int_t eta_id);
0035 
0036   TString getSuffixName(const ME2IdsKey& key);
0037   TString getSuffixName(const ME3IdsKey& key);
0038   TString getSuffixName(const ME4IdsKey& key);
0039 
0040   TString getSuffixTitle(Int_t region_id);
0041   TString getSuffixTitle(Int_t region_id, Int_t station_id);
0042   TString getSuffixTitle(Int_t region_id, Int_t station_id, Int_t layer_id);
0043   TString getSuffixTitle(Int_t region_id, Int_t station_id, Int_t layer_id, Int_t eta_id);
0044 
0045   TString getSuffixTitle(const ME2IdsKey& key);
0046   TString getSuffixTitle(const ME3IdsKey& key);
0047   TString getSuffixTitle(const ME4IdsKey& key);
0048 
0049 }  // namespace GEMUtils
0050 
0051 #endif  // Validation_MuonGEMHits_GEMValidationUtils_h