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, const char* module, const float min, const float max, const float mmin, const float mmax, const int color);
25 void PlotOccupancyMapPhase1(TFile* ff, const char* module, const float min, const float max, const float mmin, const float mmax, const int color);
26 void PlotOccupancyMapPhase2(TFile* ff, const char* module, const float min, const float max, const float mmin, const float mmax, const int color);
27 void PlotOccupancyMapGeneric(TFile* ff, const char* module, const float min, const float max, const float mmin, const float mmax, const int color,
28  std::pair<float,float>(*size)(int), const std::vector<SubDetParams>& vsub);
29 void printFrame(TCanvas* c, TH1D* h, const char* label, const int frame, const int min, const int max, const bool same=false);
30 float combinedOccupancy(TFile* ff, const char* module, const int lowerbin, const int upperbin);
31 void PlotOnTrackOccupancy(TFile* ff, const char* module, const char* ontrkmod, const float mmin, const float mmax, const int color);
32 void PlotOnTrackOccupancyPhase1(TFile* ff, const char* module, const char* ontrkmod, const float mmin, const float mmax, const int color);
33 void PlotOnTrackOccupancyPhase2(TFile* ff, const char* module, const char* ontrkmod, const float mmin, const float mmax, const int color);
34 void PlotOnTrackOccupancyGeneric(TFile* ff, const char* module, const char* ontrkmod, const float mmin, const float mmax, const int color,
35  std::pair<float,float>(*size)(int), const std::vector<SubDetParams>& vsub);
36 void PlotDebugFPIX_XYMap(TFile* ff, const char* module, const unsigned int offset, const char* name);
37 void PlotTrackerXsect(TFile* ff, const char* module);
38 TCanvas* drawMap(const char* cname, const TH1* hval, const TProfile* averadius, const TProfile* avez,const float mmin, const float mmax,
39  std::pair<float,float>(*size)(int), float(*scale)(float), const int color, const char* ptitle="");
40 TH1D* TrendPlotSingleBin(TFile* ff, const char* module, const char* hname, const int bin);
41 
42 #endif // DPGAnalysis_SiStripTools_OccupancyPlotMacros_h
43 
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)
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)
std::string 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)
bin
set the eta bin as selection string.
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 linear(float x)
void PlotOnTrackOccupancy(TFile *ff, const char *module, const char *ontrkmod, const float mmin, const float mmax, const int color)
void PlotOccupancyMapPhase1(TFile *ff, const char *module, const float min, const float max, const float mmin, const float mmax, const int color)
Definition: vlib.h:208
float logarithm(float x)