CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
19  typedef std::pair<double, double> Range;
20 
21  TrackingMaterialPlotter( float maxZ, float maxR, float resolution );
23  void plotSegmentInLayer( const MaterialAccountingStep & step, int layer );
24 
25  void normalize( void ) {
27  }
28 
29  void draw( void );
30 
31 private:
33 
34  std::vector<int> m_color;
35  std::vector<int> m_gradient;
36 
37  void fill_color();
38  unsigned int fill_gradient(const TColor & first, const TColor & last, unsigned int steps = 100, unsigned int index = 0);
39  unsigned int fill_gradient(unsigned int first, unsigned int last, unsigned int steps = 100, unsigned int index = 0);
40 
41 };
42 
43 #endif // TrackingMaterialPlotter_h
void plotSegmentUnassigned(const MaterialAccountingStep &step)
list step
Definition: launcher.py:15
TrackingMaterialPlotter(float maxZ, float maxR, float resolution)
bool first
Definition: L1TdeRCT.cc:94
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:119