CMS 3D CMS Logo

APVGainHelpers.h
Go to the documentation of this file.
1 #ifndef CALIBTRACKER_SISTRIPCHANNELGAIN_APVGAINHELPERS_H
2 #define CALIBTRACKER_SISTRIPCHANNELGAIN_APVGAINHELPERS_H
3 
6 
7 #include <string>
8 #include <vector>
9 #include <utility>
10 #include <cstdint>
11 
12 
13 namespace APVGain {
14  int subdetectorId(uint32_t);
15  int subdetectorId(const std::string&);
16  int subdetectorSide(uint32_t,const TrackerTopology*);
17  int subdetectorSide(const std::string&);
18  int subdetectorPlane(uint32_t,const TrackerTopology*);
19  int subdetectorPlane(const std::string&);
20 
21  std::vector<std::pair<std::string,std::string>> monHnames(std::vector<std::string>,bool,const char* tag);
22 
23  struct APVmon{
28 
29  APVmon(int v1, int v2, int v3, MonitorElement* v4) :
30  subdetectorId(v1),subdetectorSide(v2),subdetectorPlane(v3),monitor(v4) {}
31  };
32 
33  std::vector<MonitorElement*> FetchMonitor(std::vector<APVmon>, uint32_t, const TrackerTopology* topo=nullptr);
34 };
35 
36 #endif
std::vector< MonitorElement * > FetchMonitor(std::vector< APVmon >, uint32_t, const TrackerTopology *topo=nullptr)
int subdetectorPlane(uint32_t, const TrackerTopology *)
APVmon(int v1, int v2, int v3, MonitorElement *v4)
int subdetectorSide(uint32_t, const TrackerTopology *)
std::vector< std::pair< std::string, std::string > > monHnames(std::vector< std::string >, bool, const char *tag)
int subdetectorId(uint32_t)
MonitorElement * monitor