#include <TrackingMaterialPlotter.h>
Public Types | |
typedef std::pair< double, double > | Range |
Public Member Functions | |
void | draw (void) |
void | normalize (void) |
void | plotSegmentInLayer (const MaterialAccountingStep &step, int layer) |
void | plotSegmentUnassigned (const MaterialAccountingStep &step) |
TrackingMaterialPlotter (float maxZ, float maxR, float resolution) | |
Private Member Functions | |
void | fill_color () |
unsigned int | fill_gradient (const TColor &first, const TColor &last, unsigned int steps=100, unsigned int index=0) |
unsigned int | fill_gradient (unsigned int first, unsigned int last, unsigned int steps=100, unsigned int index=0) |
Private Attributes | |
std::vector< int > | m_color |
std::vector< int > | m_gradient |
XHistogram | m_tracker |
Definition at line 16 of file TrackingMaterialPlotter.h.
typedef std::pair<double, double> TrackingMaterialPlotter::Range |
Definition at line 18 of file TrackingMaterialPlotter.h.
TrackingMaterialPlotter::TrackingMaterialPlotter | ( | float | maxZ, |
float | maxR, | ||
float | resolution | ||
) |
Definition at line 106 of file TrackingMaterialPlotter.cc.
References fill_color(), fill_gradient(), createfilelist::int, m_color, m_tracker, SiStripPI::max, and CosmicsPD_Skims::maxZ.
void TrackingMaterialPlotter::draw | ( | void | ) |
Definition at line 147 of file TrackingMaterialPlotter.cc.
References electronCompare::blue, svgfig::canvas(), XHistogram::colormap(), XHistogram::get(), mps_fire::i, m_color, m_gradient, m_tracker, electronCompare::red, and Scenarios_cff::scale.
Referenced by normalize().
|
private |
Definition at line 14 of file TrackingMaterialPlotter.cc.
References m_color.
Referenced by TrackingMaterialPlotter().
|
private |
Definition at line 73 of file TrackingMaterialPlotter.cc.
References hitfit::delta_r(), diffTwoXMLs::g1, diffTwoXMLs::g2, mps_fire::i, m_gradient, diffTwoXMLs::r1, diffTwoXMLs::r2, and customisers::steps.
Referenced by fill_gradient(), and TrackingMaterialPlotter().
|
private |
Definition at line 98 of file TrackingMaterialPlotter.cc.
References fill_gradient(), and customisers::steps.
|
inline |
Definition at line 24 of file TrackingMaterialPlotter.h.
References draw(), m_tracker, and XHistogram::normalize().
void TrackingMaterialPlotter::plotSegmentInLayer | ( | const MaterialAccountingStep & | step, |
int | layer | ||
) |
Definition at line 136 of file TrackingMaterialPlotter.cc.
References MaterialAccountingStep::energyLoss(), XHistogram::fill(), MaterialAccountingStep::in(), MaterialAccountingStep::length(), m_tracker, MaterialAccountingStep::out(), PV3DBase< T, PVType, FrameType >::perp(), MaterialAccountingStep::radiationLengths(), w, and PV3DBase< T, PVType, FrameType >::z().
Referenced by TrackingMaterialAnalyser::split().
void TrackingMaterialPlotter::plotSegmentUnassigned | ( | const MaterialAccountingStep & | step | ) |
Definition at line 125 of file TrackingMaterialPlotter.cc.
References MaterialAccountingStep::energyLoss(), XHistogram::fill(), MaterialAccountingStep::in(), MaterialAccountingStep::length(), m_tracker, MaterialAccountingStep::out(), PV3DBase< T, PVType, FrameType >::perp(), MaterialAccountingStep::radiationLengths(), w, and PV3DBase< T, PVType, FrameType >::z().
Referenced by TrackingMaterialAnalyser::split().
|
private |
Definition at line 31 of file TrackingMaterialPlotter.h.
Referenced by draw(), fill_color(), and TrackingMaterialPlotter().
|
private |
Definition at line 32 of file TrackingMaterialPlotter.h.
Referenced by draw(), and fill_gradient().
|
private |
Definition at line 29 of file TrackingMaterialPlotter.h.
Referenced by draw(), normalize(), plotSegmentInLayer(), plotSegmentUnassigned(), and TrackingMaterialPlotter().