#include <DD4hep_MaterialAccountingGroup.h>
Public Member Functions | |
bool | addDetector (const MaterialAccountingDetector &detector) |
MaterialAccountingStep | average (void) const |
double | averageEnergyLoss (void) const |
double | averageLength (void) const |
double | averageRadiationLengths (void) const |
DD4hep_MaterialAccountingGroup (const DD4hep_MaterialAccountingGroup &layer)=delete | |
DD4hep_MaterialAccountingGroup (const std::string &name, const cms::DDCompactView &geometry) | |
const std::vector< GlobalPoint > & | elements (void) const |
void | endOfTrack (void) |
std::pair< double, double > | getBoundingR () const |
std::pair< double, double > | getBoundingZ () const |
std::string | info (void) const |
bool | isInside (const MaterialAccountingDetector &detector) const |
const std::string & | name (void) const |
DD4hep_MaterialAccountingGroup & | operator= (const DD4hep_MaterialAccountingGroup &layer)=delete |
void | savePlots (void) |
double | sigmaEnergyLoss (void) const |
double | sigmaLength (void) const |
double | sigmaRadiationLengths (void) const |
unsigned int | tracks (void) const |
~DD4hep_MaterialAccountingGroup (void) | |
Private Member Functions | |
void | savePlot (std::shared_ptr< TH1F > &plot, const std::string &name) |
void | savePlot (std::shared_ptr< TProfile > &plot, float average, const std::string &name) |
Private Attributes | |
MaterialAccountingStep | m_accounting |
BoundingBox | m_boundingbox |
MaterialAccountingStep | m_buffer |
bool | m_counted |
std::shared_ptr< TH1F > | m_dedx_spectrum |
std::shared_ptr< TProfile > | m_dedx_vs_eta |
std::shared_ptr< TProfile > | m_dedx_vs_r |
std::shared_ptr< TProfile > | m_dedx_vs_z |
std::vector< GlobalPoint > | m_elements |
MaterialAccountingStep | m_errors |
std::unique_ptr< TFile > | m_file |
std::string | m_name |
std::shared_ptr< TH1F > | m_radlen_spectrum |
std::shared_ptr< TProfile > | m_radlen_vs_eta |
std::shared_ptr< TProfile > | m_radlen_vs_r |
std::shared_ptr< TProfile > | m_radlen_vs_z |
unsigned int | m_tracks |
Static Private Attributes | |
static constexpr double | s_tolerance = 0.01 |
Definition at line 23 of file DD4hep_MaterialAccountingGroup.h.
|
delete |
DD4hep_MaterialAccountingGroup::DD4hep_MaterialAccountingGroup | ( | const std::string & | name, |
const cms::DDCompactView & | geometry | ||
) |
Definition at line 23 of file DD4hep_MaterialAccountingGroup.cc.
References class-composition::children, ALCARECOTkAlBeamHalo_cff::filter, runTauDisplay::gp, BoundingBox::grow(), mps_fire::i, dqmiolumiharvest::j, dqmdumpme::k, m_boundingbox, m_dedx_spectrum, m_dedx_vs_eta, m_dedx_vs_r, m_dedx_vs_z, m_elements, m_name, m_radlen_spectrum, m_radlen_vs_eta, m_radlen_vs_r, m_radlen_vs_z, name(), castor_dqm_sourceclient_file_cfg::path, perp(), BoundingBox::range_r(), BoundingBox::range_z(), s_tolerance, and z.
DD4hep_MaterialAccountingGroup::~DD4hep_MaterialAccountingGroup | ( | void | ) |
bool DD4hep_MaterialAccountingGroup::addDetector | ( | const MaterialAccountingDetector & | detector | ) |
Definition at line 119 of file DD4hep_MaterialAccountingGroup.cc.
References hgcalTestNeighbor_cfi::detector, isInside(), m_buffer, and m_counted.
MaterialAccountingStep DD4hep_MaterialAccountingGroup::average | ( | void | ) | const |
Definition at line 210 of file DD4hep_MaterialAccountingGroup.cc.
References m_accounting, and m_tracks.
Referenced by endOfTrack().
double DD4hep_MaterialAccountingGroup::averageEnergyLoss | ( | void | ) | const |
Definition at line 218 of file DD4hep_MaterialAccountingGroup.cc.
References MaterialAccountingStep::energyLoss(), m_accounting, and m_tracks.
Referenced by savePlots(), and sigmaEnergyLoss().
double DD4hep_MaterialAccountingGroup::averageLength | ( | void | ) | const |
Definition at line 214 of file DD4hep_MaterialAccountingGroup.cc.
References MaterialAccountingStep::length(), m_accounting, and m_tracks.
Referenced by sigmaLength().
double DD4hep_MaterialAccountingGroup::averageRadiationLengths | ( | void | ) | const |
Definition at line 236 of file DD4hep_MaterialAccountingGroup.cc.
References m_accounting, m_tracks, and MaterialAccountingStep::radiationLengths().
Referenced by savePlots(), and sigmaRadiationLengths().
|
inline |
void DD4hep_MaterialAccountingGroup::endOfTrack | ( | void | ) |
Definition at line 129 of file DD4hep_MaterialAccountingGroup.cc.
References average(), MaterialAccountingStep::energyLoss(), MaterialAccountingStep::in(), m_accounting, m_buffer, m_counted, m_dedx_spectrum, m_dedx_vs_eta, m_dedx_vs_r, m_dedx_vs_z, m_errors, m_radlen_spectrum, m_radlen_vs_eta, m_radlen_vs_r, m_radlen_vs_z, m_tracks, MaterialAccountingStep::out(), MaterialAccountingStep::radiationLengths(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
|
inline |
Definition at line 61 of file DD4hep_MaterialAccountingGroup.h.
References m_boundingbox, and BoundingBox::range_r().
|
inline |
Definition at line 62 of file DD4hep_MaterialAccountingGroup.h.
References m_boundingbox, and BoundingBox::range_z().
std::string DD4hep_MaterialAccountingGroup::info | ( | void | ) | const |
Definition at line 198 of file DD4hep_MaterialAccountingGroup.cc.
References alignBH_cfg::fixed, m_boundingbox, m_elements, m_name, MillePedeFileConverter_cfg::out, BoundingBox::range_r(), and BoundingBox::range_z().
bool DD4hep_MaterialAccountingGroup::isInside | ( | const MaterialAccountingDetector & | detector | ) | const |
Definition at line 89 of file DD4hep_MaterialAccountingGroup.cc.
References hgcalTestNeighbor_cfi::detector, mps_fire::i, BoundingBox::inside(), m_boundingbox, m_elements, mag(), position, BoundingBox::range_r(), BoundingBox::range_z(), and s_tolerance.
Referenced by addDetector().
|
inline |
Definition at line 71 of file DD4hep_MaterialAccountingGroup.h.
References m_name.
Referenced by config.CFG::__str__(), DD4hep_MaterialAccountingGroup(), validation.Sample::digest(), and savePlot().
|
delete |
|
private |
Definition at line 165 of file DD4hep_MaterialAccountingGroup.cc.
References svgfig::canvas(), m_file, name(), and plotFactory::plot.
Referenced by savePlots().
|
private |
Definition at line 176 of file DD4hep_MaterialAccountingGroup.cc.
References svgfig::canvas(), mps_splice::line, m_file, name(), and plotFactory::plot.
void DD4hep_MaterialAccountingGroup::savePlots | ( | void | ) |
Definition at line 151 of file DD4hep_MaterialAccountingGroup.cc.
References averageEnergyLoss(), averageRadiationLengths(), m_dedx_spectrum, m_dedx_vs_eta, m_dedx_vs_r, m_dedx_vs_z, m_file, m_name, m_radlen_spectrum, m_radlen_vs_eta, m_radlen_vs_r, m_radlen_vs_z, and savePlot().
double DD4hep_MaterialAccountingGroup::sigmaEnergyLoss | ( | void | ) | const |
Definition at line 232 of file DD4hep_MaterialAccountingGroup.cc.
References averageEnergyLoss(), MaterialAccountingStep::energyLoss(), m_errors, m_tracks, and mathSSE::sqrt().
double DD4hep_MaterialAccountingGroup::sigmaLength | ( | void | ) | const |
Definition at line 222 of file DD4hep_MaterialAccountingGroup.cc.
References averageLength(), MaterialAccountingStep::length(), m_errors, m_tracks, and mathSSE::sqrt().
double DD4hep_MaterialAccountingGroup::sigmaRadiationLengths | ( | void | ) | const |
Definition at line 226 of file DD4hep_MaterialAccountingGroup.cc.
References averageRadiationLengths(), m_errors, m_tracks, MaterialAccountingStep::radiationLengths(), and mathSSE::sqrt().
|
inline |
|
private |
Definition at line 35 of file DD4hep_MaterialAccountingGroup.h.
Referenced by average(), averageEnergyLoss(), averageLength(), averageRadiationLengths(), and endOfTrack().
|
private |
Definition at line 34 of file DD4hep_MaterialAccountingGroup.h.
Referenced by DD4hep_MaterialAccountingGroup(), getBoundingR(), getBoundingZ(), info(), and isInside().
|
private |
Definition at line 39 of file DD4hep_MaterialAccountingGroup.h.
Referenced by addDetector(), and endOfTrack().
|
private |
Definition at line 38 of file DD4hep_MaterialAccountingGroup.h.
Referenced by addDetector(), and endOfTrack().
|
private |
Definition at line 41 of file DD4hep_MaterialAccountingGroup.h.
Referenced by DD4hep_MaterialAccountingGroup(), endOfTrack(), and savePlots().
|
private |
Definition at line 43 of file DD4hep_MaterialAccountingGroup.h.
Referenced by DD4hep_MaterialAccountingGroup(), endOfTrack(), and savePlots().
|
private |
Definition at line 45 of file DD4hep_MaterialAccountingGroup.h.
Referenced by DD4hep_MaterialAccountingGroup(), endOfTrack(), and savePlots().
|
private |
Definition at line 44 of file DD4hep_MaterialAccountingGroup.h.
Referenced by DD4hep_MaterialAccountingGroup(), endOfTrack(), and savePlots().
|
private |
Definition at line 33 of file DD4hep_MaterialAccountingGroup.h.
Referenced by DD4hep_MaterialAccountingGroup(), elements(), info(), and isInside().
|
private |
Definition at line 36 of file DD4hep_MaterialAccountingGroup.h.
Referenced by endOfTrack(), sigmaEnergyLoss(), sigmaLength(), and sigmaRadiationLengths().
|
private |
Definition at line 50 of file DD4hep_MaterialAccountingGroup.h.
Referenced by savePlot(), and savePlots().
|
private |
Definition at line 32 of file DD4hep_MaterialAccountingGroup.h.
Referenced by DD4hep_MaterialAccountingGroup(), info(), name(), and savePlots().
|
private |
Definition at line 42 of file DD4hep_MaterialAccountingGroup.h.
Referenced by DD4hep_MaterialAccountingGroup(), endOfTrack(), and savePlots().
|
private |
Definition at line 46 of file DD4hep_MaterialAccountingGroup.h.
Referenced by DD4hep_MaterialAccountingGroup(), endOfTrack(), and savePlots().
|
private |
Definition at line 48 of file DD4hep_MaterialAccountingGroup.h.
Referenced by DD4hep_MaterialAccountingGroup(), endOfTrack(), and savePlots().
|
private |
Definition at line 47 of file DD4hep_MaterialAccountingGroup.h.
Referenced by DD4hep_MaterialAccountingGroup(), endOfTrack(), and savePlots().
|
private |
Definition at line 37 of file DD4hep_MaterialAccountingGroup.h.
Referenced by average(), averageEnergyLoss(), averageLength(), averageRadiationLengths(), endOfTrack(), sigmaEnergyLoss(), sigmaLength(), sigmaRadiationLengths(), and tracks().
|
staticconstexprprivate |
Definition at line 52 of file DD4hep_MaterialAccountingGroup.h.
Referenced by DD4hep_MaterialAccountingGroup(), and isInside().