// $Id: Ground.cc,v 1.11 2005/10/02 14:17:55 thea Exp $
// Author: S.Moreggia Oct, 27 2003
/*****************************************************************************
* ESAF: Euso Simulation and Analysis Framework *
* *
* Id: Ground *
* Package: RadiativeTransfer *
* Coordinator: Sylvain Moreggia *
* *
*****************************************************************************/
//_____________________________________________________________________________
// Interface for ground description //
// ================================
//
//
//
#include "Ground.hh"
#include "BunchOfPhotons.hh"
using namespace sou;
ClassImp(Ground)
//______________________________________________________________________________
Ground::Ground() : EsafConfigurable(), EsafMsgSource() {
//
// ctor
//
}
//______________________________________________________________________________
Ground::~Ground(){
//
// dtor
//
}
//______________________________________________________________________________
Bool_t Ground::IsUnderGround(const EarthVector& pos) const {
//
// to know if position is underground
//
Bool_t rtn(false);
if(pos.IsUnderSeaLevel()) rtn = true;
else rtn = (pos.Zv() < (Altitude(pos) - 1*mm)) ? true : false;
return rtn;
}