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