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 typedef std::tuple<Int_t, Int_t, Int_t, Int_t, Int_t>
22  ME5IdsKey; // 0: region, 1: station, 2: later, 3: module, 4: chamber or iEta
23 
24 typedef std::map<Int_t, dqm::impl::MonitorElement*> MEMap1Ids;
25 typedef std::map<ME2IdsKey, dqm::impl::MonitorElement*> MEMap2Ids;
26 typedef std::map<ME3IdsKey, dqm::impl::MonitorElement*> MEMap3Ids;
27 typedef std::map<ME4IdsKey, dqm::impl::MonitorElement*> MEMap4Ids;
28 typedef std::map<ME5IdsKey, dqm::impl::MonitorElement*> MEMap5Ids;
29 
30 namespace GEMUtils {
31  TString getSuffixName(Int_t region_id);
32  TString getSuffixName(Int_t region_id, Int_t station_id);
33  TString getSuffixName(Int_t region_id, Int_t station_id, Int_t layer_id);
34  TString getSuffixName(Int_t region_id, Int_t station_id, Int_t layer_id, Int_t eta_id);
35 
36  TString getSuffixName(const ME2IdsKey& key);
37  TString getSuffixName(const ME3IdsKey& key);
38  TString getSuffixName(const ME4IdsKey& key);
39 
40  TString getSuffixTitle(Int_t region_id);
41  TString getSuffixTitle(Int_t region_id, Int_t station_id);
42  TString getSuffixTitle(Int_t region_id, Int_t station_id, Int_t layer_id);
43  TString getSuffixTitle(Int_t region_id, Int_t station_id, Int_t layer_id, Int_t eta_id);
44 
45  TString getSuffixTitle(const ME2IdsKey& key);
46  TString getSuffixTitle(const ME3IdsKey& key);
47  TString getSuffixTitle(const ME4IdsKey& key);
48 
49 } // namespace GEMUtils
50 
51 #endif // Validation_MuonGEMHits_GEMValidationUtils_h
TString getSuffixName(Int_t region_id)
std::tuple< Int_t, Int_t, Int_t, Int_t, Int_t > ME5IdsKey
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::map< ME5IdsKey, dqm::impl::MonitorElement * > MEMap5Ids
std::tuple< Int_t, Int_t > ME2IdsKey
std::tuple< Int_t, Int_t, Int_t > ME3IdsKey