CMS 3D CMS Logo

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"
15 
17 public:
18  typedef std::pair<double, double> Range;
19 
20  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(unsigned int first, unsigned int last, unsigned int steps = 100, unsigned int index = 0);
37 };
38 
39 #endif // TrackingMaterialPlotter_h
void plotSegmentUnassigned(const MaterialAccountingStep &step)
constexpr std::array< uint8_t, layerIndexSize > layer
TrackingMaterialPlotter(float maxZ, float maxR, float resolution)
unsigned int fill_gradient(const TColor &first, const TColor &last, unsigned int steps=100, unsigned int index=0)
std::pair< double, double > Range
void plotSegmentInLayer(const MaterialAccountingStep &step, int layer)
void normalize(void)
normalize the histograms
Definition: XHistogram.cc:115
step
Definition: StallMonitor.cc:98