38 void SetDetPos(
double rad,
double lat = 0,
46 std::string filename);
52 int layer,
double zoa);
62 virtual void AddLayer(
double radius,
double density,
double zoa,
Base class for implementing an earth model.
Implements an earth model with spherical shells.
virtual void AddLayer(double radius, double density, double zoa, double layer)
Add a layer to the model.
virtual void SetTopLayerSize(double thick)
Set the outermost layer thickness in km.
virtual void CleanIdentical()
Clear identical consecutive layers.
int fDetLayer
The layer index of the detector.
virtual void AddDetLayer()
Add the detector layer.
virtual void LoadModel(std::string filename)
Load an earth model from a file.
void SetDetPos(double rad, double lat=0, double lon=0)
int FillPath(double cosT, double phi=0)
Fill the path sequence in a vector.
static const double DET_TOL
The detector position tolerance near boundaries.
PremModel(std::string filename="")
Constructor.
std::vector< PremLayer > fPremLayers
The layers in the earth model.
virtual ~PremModel()
Destructor.
virtual void ClearModel()
Clear the earth model information.
virtual void SetLayerZoA(int layer, double zoa)
Set Z/A of all layers of a given type.
virtual void AddPath(double length, PremLayer pl)
Add a path segment to the sequence.
std::string fFilename
The input filename.
virtual std::vector< PremLayer > GetPremLayers()
virtual double GetLayerZoA(int layer)
Get Z/A of all layers of a given type.
Some useful general definitions.
A struct representing a spherical shell of matter for earth models.