CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
OccupancyPlotMacros.h
Go to the documentation of this file.
1 #ifndef DPGAnalysis_SiStripTools_OccupancyPlotMacros_h
2 #define DPGAnalysis_SiStripTools_OccupancyPlotMacros_h
3 
4 #include <vector>
5 #include <string>
6 #include <utility>
7 
8 class TFile;
9 class TCanvas;
10 class TH1D;
11 class TH1;
12 class TProfile;
13 class TText;
14 
15 struct SubDetParams {
17  int min;
18  int max;
19 };
20 
21 float linear(float x);
22 float logarithm(float x);
23 std::pair<float, float> phase2bin(int i);
24 void PlotOccupancyMap(TFile* ff,
25  const char* module,
26  const float min,
27  const float max,
28  const float mmin,
29  const float mmax,
30  const int color);
31 void PlotOccupancyMapPhase1(TFile* ff,
32  const char* module,
33  const float min,
34  const float max,
35  const float mmin,
36  const float mmax,
37  const int color);
38 void PlotOccupancyMapPhase2(TFile* ff,
39  const char* module,
40  const float min,
41  const float max,
42  const float mmin,
43  const float mmax,
44  const int color);
45 void PlotOccupancyMapGeneric(TFile* ff,
46  const char* module,
47  const float min,
48  const float max,
49  const float mmin,
50  const float mmax,
51  const int color,
52  std::pair<float, float> (*size)(int),
53  const std::vector<SubDetParams>& vsub);
54 void printFrame(
55  TCanvas* c, TH1D* h, const char* label, const int frame, const int min, const int max, const bool same = false);
56 float combinedOccupancy(TFile* ff, const char* module, const int lowerbin, const int upperbin);
58  TFile* ff, const char* module, const char* ontrkmod, const float mmin, const float mmax, const int color);
60  TFile* ff, const char* module, const char* ontrkmod, const float mmin, const float mmax, const int color);
62  TFile* ff, const char* module, const char* ontrkmod, const float mmin, const float mmax, const int color);
63 void PlotOnTrackOccupancyGeneric(TFile* ff,
64  const char* module,
65  const char* ontrkmod,
66  const float mmin,
67  const float mmax,
68  const int color,
69  std::pair<float, float> (*size)(int),
70  const std::vector<SubDetParams>& vsub);
71 void PlotDebugFPIX_XYMap(TFile* ff, const char* module, const unsigned int offset, const char* name);
72 void PlotTrackerXsect(TFile* ff, const char* module);
73 TCanvas* drawMap(const char* cname,
74  const TH1* hval,
75  const TProfile* averadius,
76  const TProfile* avez,
77  const float mmin,
78  const float mmax,
79  std::pair<float, float> (*size)(int),
80  float (*scale)(float),
81  const int color,
82  const char* ptitle = "");
83 TH1D* TrendPlotSingleBin(TFile* ff, const char* module, const char* hname, const int bin);
84 
85 #endif // DPGAnalysis_SiStripTools_OccupancyPlotMacros_h
void PlotDebugFPIX_XYMap(TFile *ff, const char *module, const unsigned int ioffset, const char *name)
void PlotOnTrackOccupancy(TFile *ff, const char *module, const char *ontrkmod, const float mmin, const float mmax, const int color)
const edm::EventSetup & c
void PlotOccupancyMapPhase1(TFile *ff, const char *module, const float min, const float max, const float mmin, const float mmax, const int color)
std::string label
void PlotOccupancyMap(TFile *ff, const char *module, const float min, const float max, const float mmin, const float mmax, const int color)
TH1D * TrendPlotSingleBin(TFile *ff, const char *module, const char *hname, const int bin)
void PlotOccupancyMapGeneric(TFile *ff, const char *module, const float min, const float max, const float mmin, const float mmax, const int color, std::pair< float, float >(*size)(int), std::vector< SubDetParams > &vsub)
void printFrame(TCanvas *c, TH1D *h, const char *label, const int frame, const int min, const int max, const bool same)
void PlotTrackerXsect(TFile *ff, const char *module)
char const * label
uint16_t const *__restrict__ x
Definition: gpuClustering.h:39
T min(T a, T b)
Definition: MathUtil.h:58
float combinedOccupancy(TFile *ff, const char *module, const int lowerbin, const int upperbin)
TCanvas * drawMap(const char *cname, const TH1 *hval, const TProfile *averadius, const TProfile *avez, const float mmin, const float mmax, std::pair< float, float >(*size)(int), float(*scale)(float), const int color, const char *ptitle)
void PlotOnTrackOccupancyPhase2(TFile *ff, const char *module, const char *ontrkmod, const float mmin, const float mmax, const int color)
void PlotOccupancyMapPhase2(TFile *ff, const char *module, const float min, const float max, const float mmin, const float mmax, const int color)
std::pair< float, float > phase2bin(int i)
void PlotOnTrackOccupancyPhase1(TFile *ff, const char *module, const char *ontrkmod, const float mmin, const float mmax, const int color)
float logarithm(float x)
float linear(float x)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
tuple size
Write out results.
tuple module
Definition: callgraph.py:69
void PlotOnTrackOccupancyGeneric(TFile *ff, const char *module, const char *ontrkmod, const float mmin, const float mmax, const int color, std::pair< float, float >(*size)(int), const std::vector< SubDetParams > &vsub)