#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... | |
const std::string & | name (void) const |
get the layer name 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 | |
MaterialAccountingGroup (const MaterialAccountingGroup &layer)=delete | |
stop default copy ctor More... | |
MaterialAccountingGroup & | operator= (const MaterialAccountingGroup &layer)=delete |
stop default assignment operator More... | |
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 = 0.01 |
Definition at line 19 of file MaterialAccountingGroup.h.
MaterialAccountingGroup::MaterialAccountingGroup | ( | const std::string & | name, |
const DDCompactView & | geometry | ||
) |
explicit constructors
Definition at line 22 of file MaterialAccountingGroup.cc.
References ALCARECOTkAlBeamHalo_cff::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.
MaterialAccountingGroup::~MaterialAccountingGroup | ( | void | ) |
destructor
Definition at line 79 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.
|
privatedelete |
stop default copy ctor
bool MaterialAccountingGroup::addDetector | ( | const MaterialAccountingDetector & | detector | ) |
buffer material from a detector, if the detector is inside the DetLayer bounds
Definition at line 133 of file MaterialAccountingGroup.cc.
References inside(), m_buffer, m_counted, and MaterialAccountingDetector::material().
|
inline |
return the average normalized material accounting informations
Definition at line 104 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 122 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 110 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 116 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 167 of file MaterialAccountingGroup.h.
References m_elements, name(), plotFactory::plot, savePlot(), and AlCaHLTBitMon_QueryRunRegistry::string.
void MaterialAccountingGroup::endOfTrack | ( | void | ) |
commit the buffer and reset the "already hit by this track" flag
Definition at line 146 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 98 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 101 of file MaterialAccountingGroup.h.
References m_boundingbox, and MaterialAccountingGroup::BoundingBox::range_z().
std::string MaterialAccountingGroup::info | ( | void | ) | const |
get some infos
Definition at line 211 of file MaterialAccountingGroup.cc.
References alignBH_cfg::fixed, m_boundingbox, m_elements, m_name, MillePedeFileConverter_cfg::out, MaterialAccountingGroup::BoundingBox::range_r(), and MaterialAccountingGroup::BoundingBox::range_z().
Referenced by name().
bool MaterialAccountingGroup::inside | ( | const MaterialAccountingDetector & | detector | ) | const |
check if detector is inside any part of this layer
Definition at line 95 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 152 of file MaterialAccountingGroup.h.
References info(), m_name, savePlots(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by config.CFG::__str__(), validation.Sample::digest(), elements(), TrackingMaterialAnalyser::saveParameters(), and TrackingMaterialAnalyser::saveXml().
|
privatedelete |
stop default assignment operator
|
private |
Definition at line 169 of file MaterialAccountingGroup.cc.
References svgfig::canvas(), and m_file.
Referenced by elements(), and savePlots().
|
private |
Definition at line 183 of file MaterialAccountingGroup.cc.
References svgfig::canvas(), mps_splice::line, and m_file.
void MaterialAccountingGroup::savePlots | ( | void | ) |
save the plots
Definition at line 222 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 name(), and TrackingMaterialAnalyser::saveLayerPlots().
|
inline |
return the sigma of the normalized energy loss density factor for Bethe-Bloch
Definition at line 140 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 128 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 134 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 146 of file MaterialAccountingGroup.h.
References m_tracks.
Referenced by TrackingMaterialAnalyser::saveParameters().
|
private |
Definition at line 178 of file MaterialAccountingGroup.h.
Referenced by average(), averageEnergyLoss(), averageLength(), averageRadiationLengths(), and endOfTrack().
|
private |
Definition at line 177 of file MaterialAccountingGroup.h.
Referenced by getBoundingR(), getBoundingZ(), info(), inside(), and MaterialAccountingGroup().
|
private |
Definition at line 182 of file MaterialAccountingGroup.h.
Referenced by addDetector(), and endOfTrack().
|
private |
Definition at line 181 of file MaterialAccountingGroup.h.
Referenced by addDetector(), and endOfTrack().
|
private |
Definition at line 185 of file MaterialAccountingGroup.h.
Referenced by endOfTrack(), MaterialAccountingGroup(), savePlots(), and ~MaterialAccountingGroup().
|
private |
Definition at line 188 of file MaterialAccountingGroup.h.
Referenced by endOfTrack(), MaterialAccountingGroup(), savePlots(), and ~MaterialAccountingGroup().
|
private |
Definition at line 190 of file MaterialAccountingGroup.h.
Referenced by endOfTrack(), MaterialAccountingGroup(), savePlots(), and ~MaterialAccountingGroup().
|
private |
Definition at line 189 of file MaterialAccountingGroup.h.
Referenced by endOfTrack(), MaterialAccountingGroup(), savePlots(), and ~MaterialAccountingGroup().
|
private |
Definition at line 176 of file MaterialAccountingGroup.h.
Referenced by elements(), info(), inside(), and MaterialAccountingGroup().
|
private |
Definition at line 179 of file MaterialAccountingGroup.h.
Referenced by endOfTrack(), sigmaEnergyLoss(), sigmaLength(), and sigmaRadiationLengths().
|
mutableprivate |
Definition at line 196 of file MaterialAccountingGroup.h.
Referenced by savePlot(), and savePlots().
|
private |
Definition at line 175 of file MaterialAccountingGroup.h.
Referenced by info(), MaterialAccountingGroup(), name(), and savePlots().
|
private |
Definition at line 186 of file MaterialAccountingGroup.h.
Referenced by endOfTrack(), MaterialAccountingGroup(), savePlots(), and ~MaterialAccountingGroup().
|
private |
Definition at line 191 of file MaterialAccountingGroup.h.
Referenced by endOfTrack(), MaterialAccountingGroup(), savePlots(), and ~MaterialAccountingGroup().
|
private |
Definition at line 193 of file MaterialAccountingGroup.h.
Referenced by endOfTrack(), MaterialAccountingGroup(), savePlots(), and ~MaterialAccountingGroup().
|
private |
Definition at line 192 of file MaterialAccountingGroup.h.
Referenced by endOfTrack(), MaterialAccountingGroup(), savePlots(), and ~MaterialAccountingGroup().
|
private |
Definition at line 180 of file MaterialAccountingGroup.h.
Referenced by average(), averageEnergyLoss(), averageLength(), averageRadiationLengths(), endOfTrack(), sigmaEnergyLoss(), sigmaLength(), sigmaRadiationLengths(), and tracks().
|
staticprivate |
Definition at line 199 of file MaterialAccountingGroup.h.
Referenced by inside(), and MaterialAccountingGroup().