SimTracker
TrackerMaterialAnalysis
plugins
dd4hep
DD4hep_TrackingMaterialPlotter.h
Go to the documentation of this file.
1
#ifndef DD4hep_TrackingMaterialPlotter_h
2
#define DD4hep_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 "
DD4hep_XHistogram.h
"
14
class
MaterialAccountingStep
;
15
16
class
DD4hep_TrackingMaterialPlotter
{
17
public
:
18
typedef
std::pair<double, double>
Range
;
19
20
DD4hep_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
DD4hep_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
(
const
unsigned
int
&
first
,
37
const
unsigned
int
&
last
,
38
const
unsigned
int
&
steps
= 100,
39
const
unsigned
int
&
index
= 0);
40
};
41
42
#endif // DD4hep_TrackingMaterialPlotter_h
DD4hep_TrackingMaterialPlotter
Definition:
DD4hep_TrackingMaterialPlotter.h:16
DD4hep_TrackingMaterialPlotter::DD4hep_TrackingMaterialPlotter
DD4hep_TrackingMaterialPlotter(float maxZ, float maxR, float resolution)
Definition:
DD4hep_TrackingMaterialPlotter.cc:106
DD4hep_TrackingMaterialPlotter::fill_gradient
unsigned int fill_gradient(const TColor &first, const TColor &last, unsigned int steps=100, unsigned int index=0)
Definition:
DD4hep_TrackingMaterialPlotter.cc:73
step
step
Definition:
StallMonitor.cc:94
DD4hep_TrackingMaterialPlotter::m_color
std::vector< int > m_color
Definition:
DD4hep_TrackingMaterialPlotter.h:31
DD4hep_XHistogram.h
DD4hep_TrackingMaterialPlotter::fill_color
void fill_color()
Definition:
DD4hep_TrackingMaterialPlotter.cc:14
dqmdumpme.first
first
Definition:
dqmdumpme.py:55
DD4hep_TrackingMaterialPlotter::plotSegmentInLayer
void plotSegmentInLayer(const MaterialAccountingStep &step, int layer)
Definition:
DD4hep_TrackingMaterialPlotter.cc:136
CosmicsPD_Skims.maxZ
maxZ
Definition:
CosmicsPD_Skims.py:136
dqmdumpme.last
last
Definition:
dqmdumpme.py:56
DD4hep_XHistogram
Definition:
DD4hep_XHistogram.h:13
L1TObjectsTimingClient_cff.resolution
resolution
Definition:
L1TObjectsTimingClient_cff.py:52
DD4hep_TrackingMaterialPlotter::Range
std::pair< double, double > Range
Definition:
DD4hep_TrackingMaterialPlotter.h:18
DD4hep_TrackingMaterialPlotter::m_gradient
std::vector< int > m_gradient
Definition:
DD4hep_TrackingMaterialPlotter.h:32
DD4hep_TrackingMaterialPlotter::plotSegmentUnassigned
void plotSegmentUnassigned(const MaterialAccountingStep &step)
Definition:
DD4hep_TrackingMaterialPlotter.cc:125
DD4hep_TrackingMaterialPlotter::m_tracker
DD4hep_XHistogram m_tracker
Definition:
DD4hep_TrackingMaterialPlotter.h:29
MaterialAccountingStep
Definition:
MaterialAccountingStep.h:9
AlignmentPI::index
index
Definition:
AlignmentPayloadInspectorHelper.h:46
customisers.steps
steps
Definition:
customisers.py:40
DD4hep_TrackingMaterialPlotter::draw
void draw(void)
Definition:
DD4hep_TrackingMaterialPlotter.cc:147
DD4hep_XHistogram::normalize
void normalize(void)
normalize the histograms
Definition:
DD4hep_XHistogram.cc:115
DD4hep_TrackingMaterialPlotter::normalize
void normalize(void)
Definition:
DD4hep_TrackingMaterialPlotter.h:24
Generated for CMSSW Reference Manual by
1.8.16