test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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, 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 
41 
42 #endif // DPGAnalysis_SiStripTools_OccupancyPlotMacros_h
43 
int i
Definition: DBlmapReader.cc:9
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)
void PlotOccupancyMapPhase1(TFile *ff, const char *module, const float min, const float max, const float mmin, const float mmax, const int color)
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
std::pair< float, float > phase2bin(int i)
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)
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)
T x() const
Cartesian x coordinate.
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)
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)
Definition: vlib.h:208
tuple size
Write out results.
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)