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

Detailed Description

Definition at line 24 of file SwimPrintStepAction.h.


Constructor & Destructor Documentation

SwimPrintStepAction::SwimPrintStepAction (  )  [inline]

Definition at line 27 of file SwimPrintStepAction.h.

References fCount.

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 bfld::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

Definition at line 56 of file SwimPrintStepAction.h.

Referenced by Perform(), and SwimPrintStepAction().

Definition at line 57 of file SwimPrintStepAction.h.

Referenced by Perform().

Definition at line 55 of file SwimPrintStepAction.h.

Referenced by Perform().


The documentation for this class was generated from the following file:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1