Universita' di GenovaINFN Sezione di Genova  
AIRWATCH / EUSO Genova

Ground - source file

// $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;
}
About Us | EUSO Official Website | Web pages created by Roberto Pesce and Alessandro Thea - Last Update Wed Nov 16 16:57:39 2005 Wed Nov 16 16:29:22 2005