CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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"
15 
17 public:
18  typedef std::pair<double, double> Range;
19 
20  DD4hep_TrackingMaterialPlotter(float maxZ, float maxR, float resolution);
23 
24  void normalize(void) { m_tracker.normalize(); }
25 
26  void draw(void);
27 
28 private:
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
constexpr std::array< uint8_t, layerIndexSize > layer
void plotSegmentInLayer(const MaterialAccountingStep &step, int layer)
unsigned int fill_gradient(const TColor &first, const TColor &last, unsigned int steps=100, unsigned int index=0)
void plotSegmentUnassigned(const MaterialAccountingStep &step)
DD4hep_TrackingMaterialPlotter(float maxZ, float maxR, float resolution)
step
Definition: StallMonitor.cc:98
tuple last
Definition: dqmdumpme.py:56
void normalize(void)
normalize the histograms