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
ME2IdsKey
std::tuple< Int_t, Int_t > ME2IdsKey
Definition: GEMValidationUtils.h:16
MessageLogger.h
ME4IdsKey
std::tuple< Int_t, Int_t, Int_t, Int_t > ME4IdsKey
Definition: GEMValidationUtils.h:20
DQMStore.h
GEMUtils::getSuffixName
TString getSuffixName(Int_t region_id)
Definition: GEMValidationUtils.cc:5
MEMap1Ids
std::map< Int_t, dqm::impl::MonitorElement * > MEMap1Ids
Definition: GEMValidationUtils.h:22
MEMap3Ids
std::map< ME3IdsKey, dqm::impl::MonitorElement * > MEMap3Ids
Definition: GEMValidationUtils.h:24
MEMap2Ids
std::map< ME2IdsKey, dqm::impl::MonitorElement * > MEMap2Ids
Definition: GEMValidationUtils.h:23
MonitorElement.h
GEMUtils::getSuffixTitle
TString getSuffixTitle(Int_t region_id)
Definition: GEMValidationUtils.cc:34
ME3IdsKey
std::tuple< Int_t, Int_t, Int_t > ME3IdsKey
Definition: GEMValidationUtils.h:19
crabWrapper.key
key
Definition: crabWrapper.py:19
GEMUtils
Definition: GEMValidationUtils.h:27
MEMap4Ids
std::map< ME4IdsKey, dqm::impl::MonitorElement * > MEMap4Ids
Definition: GEMValidationUtils.h:25