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 reset( void ) {
30  m_tracker.reset();
31  }
32 
33  void draw( void );
34 
35 private:
37 
38  std::vector<int> m_color;
39  std::vector<int> m_gradient;
40 
41  void fill_color();
42  unsigned int fill_gradient(const TColor & first, const TColor & last, unsigned int steps = 100, unsigned int index = 0);
43  unsigned int fill_gradient(unsigned int first, unsigned int last, unsigned int steps = 100, unsigned int index = 0);
44 
45 };
46 
47 #endif // TrackingMaterialPlotter_h
void plotSegmentUnassigned(const MaterialAccountingStep &step)
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)
void reset(void)
Definition: XHistogram.h:73
std::pair< double, double > Range
void plotSegmentInLayer(const MaterialAccountingStep &step, int layer)
void normalize(void)
normalize the histograms
Definition: XHistogram.cc:119