|
ATLAS Offline Software
|
Go to the documentation of this file.
9 #ifndef TRKGEOMETRY_LAYERMATERIALRECORD_H
10 #define TRKGEOMETRY_LAYERMATERIALRECORD_H
21 #define ucharbin 0.00392157 // 1./double(1.*UCHAR_MAX)
23 #define uchar2uint(uchar) static_cast<unsigned int>(uchar)
24 #define uint2uchar(unint) static_cast<unsigned char>(unint)
26 #define uchar2dfrac(uchar) double(uchar * ucharbin)
27 #define dfrac2uchar(dfrac) lrint(dfrac* UCHAR_MAX)
40 class AssociatedMaterial;
71 bool fullHit =
false);
80 const std::vector<std::vector<unsigned int> >&
binCounts()
const;
133 inline const std::vector<std::vector<unsigned int> >&
144 #endif // TRKGEOMETRY_LAYERMATERIALRECORD_H
BinUtility * m_binUtility
record the BinnedArray
void associateGeantinoHit(const Amg::Vector3D &pos, double s, const Trk::Material &mat)
adding the information about the Geantino hit
std::vector< std::vector< Amg::Vector3D > > m_run_pos
std::vector< std::vector< std::map< unsigned int, double > > > m_run_elements
the final material properties
double m_minFraction
minimum element fraction to be recorded
~LayerMaterialRecord()
Destructor.
MaterialPropertiesMatrix m_associatedLayerMaterial
clear the material -> calls delete
LayerMaterialRecord()
Default Constructor.
std::vector< std::vector< double > > m_run_s_in_x0
std::vector< std::vector< double > > m_run_a
MaterialAssociationType m_assoc
type of hit association
const MaterialPropertiesMatrix & associatedLayerMaterial() const
return method for the LayerMaterial
const Trk::BinUtility * binUtility() const
return the BinUtility
void associateEmptyHit(const Amg::Vector3D &pos)
adding the information about an empty hit scaling- particle crossed layer, but no mapping information
void clearMaterial()
copy from another vector
int m_bins1
number of bins in coordinate 2
LayerMaterialRecord & operator=(const LayerMaterialRecord &lmr)
Assignment operator.
std::vector< std::vector< double > > m_run_s
std::map< unsigned int, double > m_elements
Ensure that the ATLAS eigen extensions are properly loaded.
std::vector< std::vector< double > > m_run_rho
const std::vector< std::vector< unsigned int > > & binCounts() const
return method for the events used for this
Eigen::Matrix< double, 3, 1 > Vector3D
void finalizeRun(bool recordElements=true)
finalize the Run
Amg::Vector3D m_pos
event related information
std::vector< std::vector< const MaterialProperties * > > MaterialPropertiesMatrix
std::vector< std::vector< double > > m_run_s_in_l0
double m_layerThickness
record the layerThickness
std::vector< std::vector< double > > m_run_z
AssociatedMaterial * finalizeEvent(const Trk::Layer &lay, bool fullHit=false)
finalize the Event
void copyMaterial(const MaterialPropertiesMatrix &mat)
int m_bins0
number of bins in coordinate 1
std::vector< std::vector< unsigned int > > m_run_events