GeoSwimZCondition Class Reference

#include <GeoSwimZCondition.h>

List of all members.

Public Member Functions

 GeoSwimZCondition ()
 GeoSwimZCondition (double zFinal)
virtual ~GeoSwimZCondition ()
virtual bool Satisfied (const GeoSwimParticle &particle)
void SetZFinal (double zFinal)
double GetZFinal ()

Private Attributes

double fZFinal


Detailed Description

Definition at line 20 of file GeoSwimZCondition.h.


Constructor & Destructor Documentation

GeoSwimZCondition::GeoSwimZCondition (  ) 

Definition at line 20 of file GeoSwimZCondition.cxx.

00020                                      :
00021   fZFinal(0.0)
00022 {}

GeoSwimZCondition::GeoSwimZCondition ( double  zFinal  ) 

Definition at line 26 of file GeoSwimZCondition.cxx.

00026                                                   :
00027   fZFinal(zFinal)
00028 {}

virtual GeoSwimZCondition::~GeoSwimZCondition (  )  [inline, virtual]

Definition at line 25 of file GeoSwimZCondition.h.

00025 {;}


Member Function Documentation

double GeoSwimZCondition::GetZFinal (  ) 

Definition at line 52 of file GeoSwimZCondition.cxx.

References fZFinal.

Referenced by GeoSwimApplication::SetZCondition().

00053 {
00054   return fZFinal;
00055 }

bool GeoSwimZCondition::Satisfied ( const GeoSwimParticle particle  )  [virtual]

Definition at line 32 of file GeoSwimZCondition.cxx.

References fZFinal, GeoSwimParticle::GetInitPosition(), and GeoSwimParticle::GetPosition().

Referenced by GeoSwimmer::Swim().

00033 {
00034   if ((particle.GetInitPosition().Z() < fZFinal 
00035        && particle.GetPosition().Z() >= fZFinal)
00036       || (particle.GetInitPosition().Z() > fZFinal 
00037           && particle.GetPosition().Z() <= fZFinal))
00038     return true;
00039   
00040   return false;
00041 }

void GeoSwimZCondition::SetZFinal ( double  zFinal  ) 

Definition at line 45 of file GeoSwimZCondition.cxx.

References fZFinal.

00046 {
00047   fZFinal = zFinal;
00048 }


Member Data Documentation

double GeoSwimZCondition::fZFinal [private]

Definition at line 32 of file GeoSwimZCondition.h.

Referenced by GetZFinal(), Satisfied(), and SetZFinal().


The documentation for this class was generated from the following files:
Generated on Mon Aug 11 01:05:52 2014 for loon by  doxygen 1.4.7