// $Id: Ground.cc,v 1.9 2005/02/16 12:17:21 moreggia 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"
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)) ? true : false;
return rtn;
}