9#ifndef TRKGEOMETRY_COMPRESSEDLAYERMATERIAL_H
10#define TRKGEOMETRY_COMPRESSEDLAYERMATERIAL_H
19#include "GaudiKernel/MsgStream.h"
52 const std::vector<unsigned short int>& materialIndices,
53 double splitFactor = 0.);
56 std::unique_ptr<Trk::BinUtility> binutility,
58 const std::vector<unsigned short int>& materialIndices,
59 double splitFactor = 0.);
87 const std::vector<unsigned short int>&
materialBins()
const;
95 size_t bin1)
const override final;
98 virtual MsgStream&
dump(MsgStream& sl)
const override final;
100 virtual std::ostream&
dump(std::ostream& sl)
const override final;
125inline const std::vector<unsigned short int>&
131 size_t bin0,
size_t bin1)
const {
132 int accessBin = bin1 * (
m_binUtility->max(0) + 1) + bin0;
A generic symmetric BinUtility, for fully symmetric binning in terms of binning grid and binning type...
const std::vector< unsigned short int > & materialBins() const
Return method for index vector, needs BinUtility to interpret this.
const MaterialPropertiesVector & fullMaterial() const
Return method for full material description of the Layer - for all bins.
virtual const MaterialProperties * material(size_t bin0, size_t bin1) const override final
Access the single bin.
virtual void updateBinning(BinUtility *bu) override final
Update the BinUtility if necessary - passing ownership of the utility class.
virtual ~CompressedLayerMaterial() override
Destructor.
CompressedLayerMaterial & operator=(const CompressedLayerMaterial &lmp)
Assignment operator.
BinUtility * m_binUtility
the helper for the bin finding
void fillMaterial(const MaterialPropertiesVector &matVector)
helper method - to refill the material
std::vector< unsigned short int > m_materialBins
virtual const BinUtility * binUtility() const override final
Return the BinUtility.
MaterialPropertiesVector m_fullMaterial
The five different MaterialProperties.
virtual CompressedLayerMaterial & operator*=(double scale) override final
Scale operator.
CompressedLayerMaterial()
Default Constructor - needed by POOL.
void clearMaterial()
helper method - to clear the material
virtual CompressedLayerMaterial * clone() const override final
Pseudo-Constructor clone()
LayerMaterialProperties()
Constructor.
Material with information about thickness of material.
Eigen::Matrix< double, 3, 1 > Vector3D
Ensure that the ATLAS eigen extensions are properly loaded.
std::vector< const MaterialProperties * > MaterialPropertiesVector
Useful typedefs.