CMS 3D CMS Logo

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);
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
size
Write out results.
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 PlotTrackerXsect(TFile *ff, const char *module)
void PlotOccupancyMap(TFile *ff, const char *module, const float min, const float max, const float mmin, const float mmax, const int color)
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), const std::vector< SubDetParams > &vsub)
void PlotOnTrackOccupancyPhase2(TFile *ff, const char *module, const char *ontrkmod, const float mmin, const float mmax, const int color)
void PlotOnTrackOccupancyPhase1(TFile *ff, const char *module, const char *ontrkmod, const float mmin, const float mmax, const int color)
std::string label
std::pair< float, float > phase2bin(int i)
char const * label
void PlotOccupancyMapPhase2(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)
float combinedOccupancy(TFile *ff, const char *module, const int lowerbin, const int upperbin)
void PlotDebugFPIX_XYMap(TFile *ff, const char *module, const unsigned int offset, const char *name)
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)
void printFrame(TCanvas *c, TH1D *h, const char *label, const int frame, const int min, const int max, const bool same=false)
float x
float linear(float x)
void PlotOnTrackOccupancy(TFile *ff, const char *module, const char *ontrkmod, const float mmin, const float mmax, const int color)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
void PlotOccupancyMapPhase1(TFile *ff, const char *module, const float min, const float max, const float mmin, const float mmax, const int color)
float logarithm(float x)