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

SwimPrintStepAction Class Reference

#include <SwimPrintStepAction.h>

Inheritance diagram for SwimPrintStepAction:

SwimStepAction List of all members.

Public Member Functions

 SwimPrintStepAction ()
virtual ~SwimPrintStepAction ()
virtual void Perform (SwimParticle &p, SwimStepData *stepData)

Private Attributes

int fNcall
int fCount
TVector3 fLastPosition

Constructor & Destructor Documentation

SwimPrintStepAction::SwimPrintStepAction  )  [inline]
 

Definition at line 27 of file SwimPrintStepAction.h.

References fCount, fLastPosition, and fNcall.

00027 : fNcall(0), fLastPosition(0.0,0.0,0.0) { fCount = 0;};

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

Definition at line 28 of file SwimPrintStepAction.h.

00028 {;}


Member Function Documentation

virtual void SwimPrintStepAction::Perform SwimParticle p,
SwimStepData stepData
[inline, virtual]
 

Implements SwimStepAction.

Definition at line 29 of file SwimPrintStepAction.h.

References SwimGeo::AsString(), fCount, fLastPosition, fNcall, SwimParticle::GetEnergy(), SwimStepData::GetIsForward(), SwimParticle::GetMomentum(), SwimParticle::GetMomentumModulus(), SwimParticle::GetPosition(), SwimStepData::GetStepSize(), and SwimStepData::GetSwimMaterial().

00029                                                                 {
00030     //if (fCount==10) fCount = 0;
00031     //if (fCount==0) {    
00032       std::cout << ++fNcall << " "
00033            << p.GetPosition().X() << " "
00034            << p.GetPosition().Y() << " "
00035            << p.GetPosition().Z() << " "
00036            << p.GetMomentum().X() << " "
00037            << p.GetMomentum().Y() << " "
00038            << p.GetMomentum().Z() << " "
00039            << p.GetMomentumModulus() << " "
00040            << p.GetEnergy() << " "
00041            << stepData->GetStepSize() << " "
00042            << fLastPosition.X() << " "
00043            << fLastPosition.Y() << " "
00044            << fLastPosition.Z() << " "
00045            << stepData->GetIsForward() << " "
00046            << SwimGeo::AsString(stepData->GetSwimMaterial()) << " ("
00047            << stepData->GetSwimMaterial() << ") "
00048            << std::endl;
00049       //}
00050     fCount = fCount + 1;
00051 
00052     fLastPosition = p.GetPosition();
00053   }


Member Data Documentation

int SwimPrintStepAction::fCount [private]
 

Definition at line 56 of file SwimPrintStepAction.h.

Referenced by Perform(), and SwimPrintStepAction().

TVector3 SwimPrintStepAction::fLastPosition [private]
 

Definition at line 57 of file SwimPrintStepAction.h.

Referenced by Perform(), and SwimPrintStepAction().

int SwimPrintStepAction::fNcall [private]
 

Definition at line 55 of file SwimPrintStepAction.h.

Referenced by Perform(), and SwimPrintStepAction().


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