#include <MaterialAccountingGroup.h>
Classes | |
class | BoundingBox |
Public Member Functions | |
bool | addDetector (const MaterialAccountingDetector &detector) |
buffer material from a detector, if the detector is inside the DetLayer bounds More... | |
MaterialAccountingStep | average (void) const |
return the average normalized material accounting informations More... | |
double | averageEnergyLoss (void) const |
return the average normalized energy loss density factor for Bethe-Bloch More... | |
double | averageLength (void) const |
return the average normalized layer thickness More... | |
double | averageRadiationLengths (void) const |
return the average normalized number of radiation lengths More... | |
const std::vector< GlobalPoint > & | elements (void) const |
void | endOfTrack (void) |
commit the buffer and reset the "already hit by this track" flag More... | |
std::pair< double, double > | getBoundingR () const |
Return the bouding limit in R for the hosted Group. More... | |
std::pair< double, double > | getBoundingZ () const |
Return the bouding limit in Z for the hosted Group. More... | |
std::string | info (void) const |
get some infos More... | |
bool | inside (const MaterialAccountingDetector &detector) const |
check if detector is inside any part of this layer More... | |
MaterialAccountingGroup (const std::string &name, const DDCompactView &geometry) | |
explicit constructors More... | |
MaterialAccountingGroup (const MaterialAccountingGroup &layer)=delete | |
stop default copy ctor More... | |
const std::string & | name (void) const |
get the layer name More... | |
MaterialAccountingGroup & | operator= (const MaterialAccountingGroup &layer)=delete |
stop default assignment operator More... | |
void | savePlots (void) |
save the plots More... | |
double | sigmaEnergyLoss (void) const |
return the sigma of the normalized energy loss density factor for Bethe-Bloch More... | |
double | sigmaLength (void) const |
return the sigma of the normalized layer thickness More... | |
double | sigmaRadiationLengths (void) const |
return the sigma of the normalized number of radiation lengths More... | |
unsigned int | tracks (void) const |
return the number of tracks that hit this layer More... | |
~MaterialAccountingGroup (void) | |
destructor More... | |
Private Member Functions | |
void | savePlot (TH1F *plot, const std::string &name) |
void | savePlot (TProfile *plot, float average, const std::string &name) |
Private Attributes | |
MaterialAccountingStep | m_accounting |
BoundingBox | m_boundingbox |
MaterialAccountingStep | m_buffer |
bool | m_counted |
TH1F * | m_dedx_spectrum |
TProfile * | m_dedx_vs_eta |
TProfile * | m_dedx_vs_r |
TProfile * | m_dedx_vs_z |
std::vector< GlobalPoint > | m_elements |
MaterialAccountingStep | m_errors |
TFile * | m_file |
std::string | m_name |
TH1F * | m_radlen_spectrum |
TProfile * | m_radlen_vs_eta |
TProfile * | m_radlen_vs_r |
TProfile * | m_radlen_vs_z |
unsigned int | m_tracks |
Static Private Attributes | |
static double const | s_tolerance |
Definition at line 19 of file MaterialAccountingGroup.h.
MaterialAccountingGroup::MaterialAccountingGroup | ( | const std::string & | name, |
const DDCompactView & | geometry | ||
) |
explicit constructors
Definition at line 23 of file MaterialAccountingGroup.cc.
References alcazmumu_cfi::filter, MaterialAccountingGroup::BoundingBox::grow(), mps_fire::i, DDFilteredView::logicalPart(), LogTrace, 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, DDFilteredView::next(), perp(), position, MaterialAccountingGroup::BoundingBox::range_r(), MaterialAccountingGroup::BoundingBox::range_z(), s_tolerance, DDBase< N, C >::toString(), DDFilteredView::translation(), and z.
|
delete |
stop default copy ctor
MaterialAccountingGroup::~MaterialAccountingGroup | ( | void | ) |
destructor
Definition at line 88 of file MaterialAccountingGroup.cc.
References m_dedx_spectrum, m_dedx_vs_eta, m_dedx_vs_r, m_dedx_vs_z, m_radlen_spectrum, m_radlen_vs_eta, m_radlen_vs_r, and m_radlen_vs_z.
bool MaterialAccountingGroup::addDetector | ( | const MaterialAccountingDetector & | detector | ) |
buffer material from a detector, if the detector is inside the DetLayer bounds
Definition at line 132 of file MaterialAccountingGroup.cc.
References inside(), m_buffer, m_counted, and MaterialAccountingDetector::material().
|
inline |
return the average normalized material accounting informations
Definition at line 90 of file MaterialAccountingGroup.h.
References m_accounting, and m_tracks.
Referenced by endOfTrack().
|
inline |
return the average normalized energy loss density factor for Bethe-Bloch
Definition at line 99 of file MaterialAccountingGroup.h.
References MaterialAccountingStep::energyLoss(), m_accounting, and m_tracks.
Referenced by TrackingMaterialAnalyser::saveParameters(), savePlots(), TrackingMaterialAnalyser::saveXml(), and sigmaEnergyLoss().
|
inline |
return the average normalized layer thickness
Definition at line 93 of file MaterialAccountingGroup.h.
References MaterialAccountingStep::length(), m_accounting, and m_tracks.
Referenced by TrackingMaterialAnalyser::saveParameters(), and sigmaLength().
|
inline |
return the average normalized number of radiation lengths
Definition at line 96 of file MaterialAccountingGroup.h.
References m_accounting, m_tracks, and MaterialAccountingStep::radiationLengths().
Referenced by TrackingMaterialAnalyser::saveParameters(), savePlots(), TrackingMaterialAnalyser::saveXml(), and sigmaRadiationLengths().
|
inline |
Definition at line 134 of file MaterialAccountingGroup.h.
References m_elements.
void MaterialAccountingGroup::endOfTrack | ( | void | ) |
commit the buffer and reset the "already hit by this track" flag
Definition at line 144 of file MaterialAccountingGroup.cc.
References average(), PV3DBase< T, PVType, FrameType >::eta(), 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, PV3DBase< T, PVType, FrameType >::perp(), and PV3DBase< T, PVType, FrameType >::z().
|
inline |
Return the bouding limit in R for the hosted Group.
Definition at line 84 of file MaterialAccountingGroup.h.
References m_boundingbox, and MaterialAccountingGroup::BoundingBox::range_r().
|
inline |
Return the bouding limit in Z for the hosted Group.
Definition at line 87 of file MaterialAccountingGroup.h.
References m_boundingbox, and MaterialAccountingGroup::BoundingBox::range_z().
std::string MaterialAccountingGroup::info | ( | void | ) | const |
get some infos
Definition at line 208 of file MaterialAccountingGroup.cc.
References m_boundingbox, m_elements, m_name, submitPVResolutionJobs::out, MaterialAccountingGroup::BoundingBox::range_r(), and MaterialAccountingGroup::BoundingBox::range_z().
bool MaterialAccountingGroup::inside | ( | const MaterialAccountingDetector & | detector | ) | const |
check if detector is inside any part of this layer
Definition at line 103 of file MaterialAccountingGroup.cc.
References mps_fire::i, MaterialAccountingGroup::BoundingBox::inside(), LogTrace, m_boundingbox, m_elements, mag(), PV3DBase< T, PVType, FrameType >::perp(), MaterialAccountingDetector::position(), position, MaterialAccountingGroup::BoundingBox::range_r(), MaterialAccountingGroup::BoundingBox::range_z(), s_tolerance, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by addDetector().
|
inline |
get the layer name
Definition at line 122 of file MaterialAccountingGroup.h.
References m_name.
Referenced by config.CFG::__str__(), geometryComparison.GeometryComparison::createScript(), validation.Sample::digest(), primaryVertexResolution.PrimaryVertexResolution::getRepMap(), primaryVertexValidation.PrimaryVertexValidation::getRepMap(), zMuMuValidation.ZMuMuValidation::getRepMap(), TrackingMaterialAnalyser::saveParameters(), and TrackingMaterialAnalyser::saveXml().
|
delete |
stop default assignment operator
|
private |
Definition at line 167 of file MaterialAccountingGroup.cc.
References svgfig::canvas(), and m_file.
Referenced by savePlots().
|
private |
Definition at line 180 of file MaterialAccountingGroup.cc.
References svgfig::canvas(), geometryCSVtoXML::line, and m_file.
void MaterialAccountingGroup::savePlots | ( | void | ) |
save the plots
Definition at line 220 of file 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().
Referenced by TrackingMaterialAnalyser::saveLayerPlots().
|
inline |
return the sigma of the normalized energy loss density factor for Bethe-Bloch
Definition at line 114 of file MaterialAccountingGroup.h.
References averageEnergyLoss(), MaterialAccountingStep::energyLoss(), m_errors, m_tracks, and mathSSE::sqrt().
Referenced by TrackingMaterialAnalyser::saveParameters().
|
inline |
return the sigma of the normalized layer thickness
Definition at line 102 of file MaterialAccountingGroup.h.
References averageLength(), MaterialAccountingStep::length(), m_errors, m_tracks, and mathSSE::sqrt().
Referenced by TrackingMaterialAnalyser::saveParameters().
|
inline |
return the sigma of the normalized number of radiation lengths
Definition at line 107 of file MaterialAccountingGroup.h.
References averageRadiationLengths(), m_errors, m_tracks, MaterialAccountingStep::radiationLengths(), and mathSSE::sqrt().
Referenced by TrackingMaterialAnalyser::saveParameters().
|
inline |
return the number of tracks that hit this layer
Definition at line 119 of file MaterialAccountingGroup.h.
References m_tracks.
Referenced by TrackingMaterialAnalyser::saveParameters().
|
private |
Definition at line 143 of file MaterialAccountingGroup.h.
Referenced by average(), averageEnergyLoss(), averageLength(), averageRadiationLengths(), and endOfTrack().
|
private |
Definition at line 142 of file MaterialAccountingGroup.h.
Referenced by getBoundingR(), getBoundingZ(), info(), inside(), and MaterialAccountingGroup().
|
private |
Definition at line 147 of file MaterialAccountingGroup.h.
Referenced by addDetector(), and endOfTrack().
|
private |
Definition at line 146 of file MaterialAccountingGroup.h.
Referenced by addDetector(), and endOfTrack().
|
private |
Definition at line 150 of file MaterialAccountingGroup.h.
Referenced by endOfTrack(), MaterialAccountingGroup(), savePlots(), and ~MaterialAccountingGroup().
|
private |
Definition at line 153 of file MaterialAccountingGroup.h.
Referenced by endOfTrack(), MaterialAccountingGroup(), savePlots(), and ~MaterialAccountingGroup().
|
private |
Definition at line 155 of file MaterialAccountingGroup.h.
Referenced by endOfTrack(), MaterialAccountingGroup(), savePlots(), and ~MaterialAccountingGroup().
|
private |
Definition at line 154 of file MaterialAccountingGroup.h.
Referenced by endOfTrack(), MaterialAccountingGroup(), savePlots(), and ~MaterialAccountingGroup().
|
private |
Definition at line 141 of file MaterialAccountingGroup.h.
Referenced by elements(), info(), inside(), and MaterialAccountingGroup().
|
private |
Definition at line 144 of file MaterialAccountingGroup.h.
Referenced by endOfTrack(), sigmaEnergyLoss(), sigmaLength(), and sigmaRadiationLengths().
|
mutableprivate |
Definition at line 161 of file MaterialAccountingGroup.h.
Referenced by savePlot(), and savePlots().
|
private |
Definition at line 140 of file MaterialAccountingGroup.h.
Referenced by info(), MaterialAccountingGroup(), name(), and savePlots().
|
private |
Definition at line 151 of file MaterialAccountingGroup.h.
Referenced by endOfTrack(), MaterialAccountingGroup(), savePlots(), and ~MaterialAccountingGroup().
|
private |
Definition at line 156 of file MaterialAccountingGroup.h.
Referenced by endOfTrack(), MaterialAccountingGroup(), savePlots(), and ~MaterialAccountingGroup().
|
private |
Definition at line 158 of file MaterialAccountingGroup.h.
Referenced by endOfTrack(), MaterialAccountingGroup(), savePlots(), and ~MaterialAccountingGroup().
|
private |
Definition at line 157 of file MaterialAccountingGroup.h.
Referenced by endOfTrack(), MaterialAccountingGroup(), savePlots(), and ~MaterialAccountingGroup().
|
private |
Definition at line 145 of file MaterialAccountingGroup.h.
Referenced by average(), averageEnergyLoss(), averageLength(), averageRadiationLengths(), endOfTrack(), sigmaEnergyLoss(), sigmaLength(), sigmaRadiationLengths(), and tracks().
|
staticprivate |
Definition at line 164 of file MaterialAccountingGroup.h.
Referenced by inside(), and MaterialAccountingGroup().