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
SubDetParams::max
int max
Definition: OccupancyPlotMacros.h:18
drawMap
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="")
Definition: OccupancyPlotMacros.cc:599
mps_fire.i
i
Definition: mps_fire.py:355
PlotOccupancyMap
void PlotOccupancyMap(TFile *ff, const char *module, const float min, const float max, const float mmin, const float mmax, const int color)
Definition: OccupancyPlotMacros.cc:398
PlotOccupancyMapGeneric
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)
min
T min(T a, T b)
Definition: MathUtil.h:58
PlotTrackerXsect
void PlotTrackerXsect(TFile *ff, const char *module)
Definition: OccupancyPlotMacros.cc:842
PlotOnTrackOccupancyPhase2
void PlotOnTrackOccupancyPhase2(TFile *ff, const char *module, const char *ontrkmod, const float mmin, const float mmax, const int color)
Definition: OccupancyPlotMacros.cc:519
PlotOnTrackOccupancyPhase1
void PlotOnTrackOccupancyPhase1(TFile *ff, const char *module, const char *ontrkmod, const float mmin, const float mmax, const int color)
Definition: OccupancyPlotMacros.cc:497
SubDetParams::min
int min
Definition: OccupancyPlotMacros.h:17
alignCSCRings.ff
ff
Definition: alignCSCRings.py:148
phase2bin
std::pair< float, float > phase2bin(int i)
Definition: OccupancyPlotMacros.cc:103
vertices_cff.x
x
Definition: vertices_cff.py:29
h
SubDetParams::label
std::string label
Definition: OccupancyPlotMacros.h:16
PlotOccupancyMapPhase2
void PlotOccupancyMapPhase2(TFile *ff, const char *module, const float min, const float max, const float mmin, const float mmax, const int color)
Definition: OccupancyPlotMacros.cc:452
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
Scenarios_cff.scale
scale
Definition: Scenarios_cff.py:2186
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
TrendPlotSingleBin
TH1D * TrendPlotSingleBin(TFile *ff, const char *module, const char *hname, const int bin)
Definition: OccupancyPlotMacros.cc:862
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
module
Definition: vlib.h:198
combinedOccupancy
float combinedOccupancy(TFile *ff, const char *module, const int lowerbin, const int upperbin)
Definition: OccupancyPlotMacros.cc:370
newFWLiteAna.bin
bin
Definition: newFWLiteAna.py:161
PlotDebugFPIX_XYMap
void PlotDebugFPIX_XYMap(TFile *ff, const char *module, const unsigned int offset, const char *name)
Definition: OccupancyPlotMacros.cc:790
PlotOnTrackOccupancyGeneric
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)
Definition: OccupancyPlotMacros.cc:537
printFrame
void printFrame(TCanvas *c, TH1D *h, const char *label, const int frame, const int min, const int max, const bool same=false)
Definition: OccupancyPlotMacros.cc:245
amptDefault_cfi.frame
frame
Definition: amptDefault_cfi.py:12
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
SubDetParams
Definition: OccupancyPlotMacros.h:15
PlotOccupancyMapPhase1
void PlotOccupancyMapPhase1(TFile *ff, const char *module, const float min, const float max, const float mmin, const float mmax, const int color)
Definition: OccupancyPlotMacros.cc:425
linear
float linear(float x)
Definition: OccupancyPlotMacros.cc:26
PlotOnTrackOccupancy
void PlotOnTrackOccupancy(TFile *ff, const char *module, const char *ontrkmod, const float mmin, const float mmax, const int color)
Definition: OccupancyPlotMacros.cc:475
logarithm
float logarithm(float x)
Definition: OccupancyPlotMacros.cc:27
hltrates_dqm_sourceclient-live_cfg.offset
offset
Definition: hltrates_dqm_sourceclient-live_cfg.py:78
label
const char * label
Definition: PFTauDecayModeTools.cc:11
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443