Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

SwimMomentumCondition Class Reference

#include <SwimMomentumCondition.h>

Inheritance diagram for SwimMomentumCondition:

SwimCondition List of all members.

Public Member Functions

 SwimMomentumCondition ()
virtual ~SwimMomentumCondition ()
 SwimMomentumCondition (double pThreshold)
virtual bool Satisfied (const SwimParticle &particle)

Private Attributes

double fPThreshold

Constructor & Destructor Documentation

SwimMomentumCondition::SwimMomentumCondition  )  [inline]
 

Definition at line 21 of file SwimMomentumCondition.h.

00021 {;}

virtual SwimMomentumCondition::~SwimMomentumCondition  )  [inline, virtual]
 

Definition at line 22 of file SwimMomentumCondition.h.

00022 {;}

SwimMomentumCondition::SwimMomentumCondition double  pThreshold  ) 
 

Definition at line 14 of file SwimMomentumCondition.cxx.

00014                                                               :
00015   fPThreshold(pThreshold)
00016 {}


Member Function Documentation

bool SwimMomentumCondition::Satisfied const SwimParticle particle  )  [virtual]
 

Implements SwimCondition.

Definition at line 20 of file SwimMomentumCondition.cxx.

References SwimParticle::GetMomentumModulus().

00021 {
00022   if (particle.GetMomentumModulus() <= fPThreshold)
00023     return true;
00024   return false;
00025 }


Member Data Documentation

double SwimMomentumCondition::fPThreshold [private]
 

Definition at line 28 of file SwimMomentumCondition.h.


The documentation for this class was generated from the following files:
Generated on Mon Feb 15 11:10:21 2010 for loon by  doxygen 1.3.9.1