SimTracker
TrackerMaterialAnalysis
plugins
TrackingMaterialPlotter.h
Go to the documentation of this file.
1
#ifndef TrackingMaterialPlotter_h
2
#define TrackingMaterialPlotter_h
3
4
#include <algorithm>
5
#include <vector>
6
#include <sstream>
7
#include <iostream>
8
#include <iomanip>
9
10
#include <TH2F.h>
11
#include <TColor.h>
12
13
#include "
XHistogram.h
"
14
class
MaterialAccountingStep
;
15
16
class
TrackingMaterialPlotter
{
17
public
:
18
typedef
std::pair<double, double>
Range
;
19
20
TrackingMaterialPlotter
(
float
maxZ
,
float
maxR,
float
resolution
);
21
void
plotSegmentUnassigned
(
const
MaterialAccountingStep
&
step
);
22
void
plotSegmentInLayer
(
const
MaterialAccountingStep
&
step
,
int
layer
);
23
24
void
normalize
(
void
) {
m_tracker
.
normalize
(); }
25
26
void
draw
(
void
);
27
28
private
:
29
XHistogram
m_tracker
;
30
31
std::vector<int>
m_color
;
32
std::vector<int>
m_gradient
;
33
34
void
fill_color
();
35
unsigned
int
fill_gradient
(
const
TColor&
first
,
const
TColor&
last
,
unsigned
int
steps
= 100,
unsigned
int
index
= 0);
36
unsigned
int
fill_gradient
(
unsigned
int
first
,
unsigned
int
last
,
unsigned
int
steps
= 100,
unsigned
int
index
= 0);
37
};
38
39
#endif // TrackingMaterialPlotter_h
step
step
Definition:
StallMonitor.cc:94
TrackingMaterialPlotter::plotSegmentUnassigned
void plotSegmentUnassigned(const MaterialAccountingStep &step)
Definition:
TrackingMaterialPlotter.cc:125
TrackingMaterialPlotter::m_tracker
XHistogram m_tracker
Definition:
TrackingMaterialPlotter.h:29
TrackingMaterialPlotter::draw
void draw(void)
Definition:
TrackingMaterialPlotter.cc:147
TrackingMaterialPlotter::normalize
void normalize(void)
Definition:
TrackingMaterialPlotter.h:24
TrackingMaterialPlotter::m_gradient
std::vector< int > m_gradient
Definition:
TrackingMaterialPlotter.h:32
CosmicsPD_Skims.maxZ
maxZ
Definition:
CosmicsPD_Skims.py:136
XHistogram
Definition:
XHistogram.h:13
dqmdumpme.last
last
Definition:
dqmdumpme.py:56
TrackingMaterialPlotter::m_color
std::vector< int > m_color
Definition:
TrackingMaterialPlotter.h:31
TrackingMaterialPlotter::fill_color
void fill_color()
Definition:
TrackingMaterialPlotter.cc:14
L1TObjectsTimingClient_cff.resolution
resolution
Definition:
L1TObjectsTimingClient_cff.py:52
first
auto first
Definition:
CAHitNtupletGeneratorKernelsImpl.h:125
phase1PixelTopology::layer
constexpr std::array< uint8_t, layerIndexSize > layer
Definition:
phase1PixelTopology.h:99
TrackingMaterialPlotter::Range
std::pair< double, double > Range
Definition:
TrackingMaterialPlotter.h:18
TrackingMaterialPlotter
Definition:
TrackingMaterialPlotter.h:16
TrackingMaterialPlotter::TrackingMaterialPlotter
TrackingMaterialPlotter(float maxZ, float maxR, float resolution)
Definition:
TrackingMaterialPlotter.cc:106
TrackingMaterialPlotter::plotSegmentInLayer
void plotSegmentInLayer(const MaterialAccountingStep &step, int layer)
Definition:
TrackingMaterialPlotter.cc:136
MaterialAccountingStep
Definition:
MaterialAccountingStep.h:9
XHistogram.h
TrackingMaterialPlotter::fill_gradient
unsigned int fill_gradient(const TColor &first, const TColor &last, unsigned int steps=100, unsigned int index=0)
Definition:
TrackingMaterialPlotter.cc:73
AlignmentPI::index
index
Definition:
AlignmentPayloadInspectorHelper.h:46
customisers.steps
steps
Definition:
customisers.py:39
XHistogram::normalize
void normalize(void)
normalize the histograms
Definition:
XHistogram.cc:115
Generated for CMSSW Reference Manual by
1.8.16