CMS 3D CMS Logo

GEMBaseValidation.h
Go to the documentation of this file.
1 #ifndef GEMBaseValidation_H
2 #define GEMBaseValidation_H
3 
6 
9 
15 #include <unordered_map>
16 
18 public:
19  explicit GEMBaseValidation(const edm::ParameterSet& ps);
20  ~GEMBaseValidation() override;
21  void analyze(const edm::Event& e, const edm::EventSetup&) override = 0;
23  const char* name,
24  const char* label,
25  unsigned int region_num,
26  unsigned int station_num,
27  unsigned int layer_num = 99);
29  const char* name,
30  const char* label,
31  unsigned int region_num,
32  unsigned int station_num,
33  unsigned int layer_num = 99);
34  std::string getSuffixName(int region, int station, int layer);
35  std::string getSuffixName(int region, int station);
36  std::string getSuffixName(int region);
37 
38  std::string getSuffixTitle(int region, int station, int layer);
39  std::string getSuffixTitle(int region, int station);
40  std::string getSuffixTitle(int region);
41 
44 
45  MonitorElement* getSimpleZR(DQMStore::IBooker&, TString, TString);
46  MonitorElement* getDCEta(DQMStore::IBooker&, const GEMStation*, TString, TString);
47 
48  unsigned int nRegion() { return nregion; }
49  unsigned int nStation() { return nstation; }
50  unsigned int nStationForLabel() { return nstationForLabel; }
51  unsigned int nPart() { return npart; }
52 
54 
55 protected:
56  int nBinXY_;
57  std::vector<double> nBinZR_;
58  std::vector<double> RangeZR_;
59 
60 private:
61  std::vector<std::string> regionLabel;
62  std::vector<std::string> layerLabel;
66 };
67 
68 #endif
unsigned int nRegion()
unsigned int nStation()
unsigned int nPart()
unsigned int nstationForLabel
MonitorElement * BookHistXY(DQMStore::IBooker &, const char *name, const char *label, unsigned int region_num, unsigned int station_num, unsigned int layer_num=99)
unsigned int nregion
~GEMBaseValidation() override
MonitorElement * BookHistZR(DQMStore::IBooker &, const char *name, const char *label, unsigned int region_num, unsigned int station_num, unsigned int layer_num=99)
std::string getSuffixTitle(int region, int station, int layer)
const GEMGeometry * initGeometry(const edm::EventSetup &)
std::vector< double > RangeZR_
std::string getSuffixName(int region, int station, int layer)
MonitorElement * getDCEta(DQMStore::IBooker &, const GEMStation *, TString, TString)
char const * label
unsigned int nStationForLabel()
void setNStationForLabel(unsigned int number)
unsigned int nstation
GEMBaseValidation(const edm::ParameterSet &ps)
std::vector< std::string > layerLabel
void analyze(const edm::Event &e, const edm::EventSetup &) override=0
edm::EDGetToken InputTagToken_
std::vector< double > nBinZR_
std::vector< std::string > regionLabel
std::string getStationLabel(int i)
MonitorElement * getSimpleZR(DQMStore::IBooker &, TString, TString)