1 #ifndef GEAR_MATERIALMAP_H
2 #define GEAR_MATERIALMAP_H 1
8 #include "gear/GearMgr.h"
28 double ymin,
double ymax,
int nysteps,
29 double zmin,
double zmax,
int nzsteps,
int coord);
50 double _xmin{}, _xmax{};
52 double _ymin{}, _ymax{};
54 double _zmin{}, _zmax{};
56 double _xstep{},_ystep{},_zstep{};
57 std::pair<double,double> _values{};
58 std::vector< std::vector< std::vector< std::pair<double,double> > > > _myMap{};
59 void calculateGridIndex(std::vector<int> & gpos,
double x,
double y,
double z)
const ;
60 void interpolateOnGrid(std::pair<double,double> &result,
double x,
double y,
double z)
const;
Material map using GearDistanceProperties.
static const int CYLINDRICAL
coord=1 : CYLINDRICAL (r,phi,z)
double getRadiationLength(double x, double y, double z) const
Returns the radiation length from the vertex at (0,0,0) to (x,y,z) using a distance wheighted interpo...
static const int CARTESIAN
coord=0 : CARTESIAN (x,y,z)
static const int SPHERICAL
coord=2 : SPERICAL (r,theta,phi)
Abstract interface for a manager class that returns the Gear classes for the relevant subdetectors...
MaterialMap(GearMgr *gearMgr, double xmin, double xmax, int nxsteps, double ymin, double ymax, int nysteps, double zmin, double zmax, int nzsteps, int coord)
Should be called through the MaterialMapFactory! Creating a material map in memory.
virtual ~MaterialMap()
Destructor.
double getInteractionLength(double x, double y, double z) const
Returns the interaction length from the vertex at (0,0,0) to (x,y,z) using a distance wheighted inter...