CMS 3D CMS Logo

GEMValidationUtils.h
Go to the documentation of this file.
1 #ifndef Validation_MuonGEMHits_INTERFACE_GEMValidationUtils_h
2 #define Validation_MuonGEMHits_INTERFACE_GEMValidationUtils_h
3 
7 
8 #include "TString.h"
9 #include "TSystem.h"
10 
11 #include <map>
12 #include <tuple>
13 
14 class TH1F;
15 class TH2F;
16 class TProfile;
17 
18 typedef std::tuple<Int_t, Int_t> ME2IdsKey;
19 typedef std::tuple<Int_t, Int_t, Int_t> ME3IdsKey;
20 typedef std::tuple<Int_t, Int_t, Int_t, Int_t> ME4IdsKey;
21 
22 typedef std::map<Int_t, dqm::impl::MonitorElement*> MEMap1Ids;
23 typedef std::map<ME2IdsKey, dqm::impl::MonitorElement*> MEMap2Ids;
24 typedef std::map<ME3IdsKey, dqm::impl::MonitorElement*> MEMap3Ids;
25 typedef std::map<ME4IdsKey, dqm::impl::MonitorElement*> MEMap4Ids;
26 
27 namespace GEMUtils {
28  TString getSuffixName(Int_t region_id);
29  TString getSuffixName(Int_t region_id, Int_t station_id);
30  TString getSuffixName(Int_t region_id, Int_t station_id, Int_t layer_id);
31  TString getSuffixName(Int_t region_id, Int_t station_id, Int_t layer_id, Int_t eta_id);
32 
33  TString getSuffixName(const ME2IdsKey& key);
34  TString getSuffixName(const ME3IdsKey& key);
35  TString getSuffixName(const ME4IdsKey& key);
36 
37  TString getSuffixTitle(Int_t region_id);
38  TString getSuffixTitle(Int_t region_id, Int_t station_id);
39  TString getSuffixTitle(Int_t region_id, Int_t station_id, Int_t layer_id);
40  TString getSuffixTitle(Int_t region_id, Int_t station_id, Int_t layer_id, Int_t eta_id);
41 
42  TString getSuffixTitle(const ME2IdsKey& key);
43  TString getSuffixTitle(const ME3IdsKey& key);
44  TString getSuffixTitle(const ME4IdsKey& key);
45 
46 } // namespace GEMUtils
47 
48 #endif // Validation_MuonGEMHits_GEMValidationUtils_h
TString getSuffixName(Int_t region_id)
std::map< Int_t, dqm::impl::MonitorElement * > MEMap1Ids
std::tuple< Int_t, Int_t, Int_t, Int_t > ME4IdsKey
std::map< ME4IdsKey, dqm::impl::MonitorElement * > MEMap4Ids
TString getSuffixTitle(Int_t region_id)
std::map< ME2IdsKey, dqm::impl::MonitorElement * > MEMap2Ids
std::map< ME3IdsKey, dqm::impl::MonitorElement * > MEMap3Ids
std::tuple< Int_t, Int_t > ME2IdsKey
std::tuple< Int_t, Int_t, Int_t > ME3IdsKey