566 ed <<
"ERROR : No mesh is currently open. Open/create a mesh first. "
578 if(command == qTouchCmd)
582 else if(command == qGetUnitCmd)
586 else if(command == qSetUnitCmd)
590 else if(command == qCellChgCmd)
595 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
607 else if(command == qCellFluxCmd)
612 if(shape == MeshShape::box)
616 else if(shape == MeshShape::cylinder)
623 pps->SetNumberOfSegments(nSeg);
626 else if(shape == MeshShape::realWorldLogVol)
628 ed <<
"Cell flux for real world volume is not yet supported. Command "
633 else if(shape == MeshShape::probe)
641 else if(command == qPassCellFluxCmd)
646 if(shape == MeshShape::box)
650 else if(shape == MeshShape::cylinder)
657 pps->SetNumberOfSegments(nSeg);
660 else if(shape == MeshShape::realWorldLogVol)
662 ed <<
"Passing cell flux for real world volume is not yet supported. "
667 else if(shape == MeshShape::probe)
675 else if(command == qeDepCmd)
680 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
692 else if(command == qdoseDepCmd)
697 if(shape == MeshShape::box)
701 else if(shape == MeshShape::cylinder)
705 pps->SetUnit(token[1]);
709 pps->SetNumberOfSegments(nSeg);
712 else if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
720 else if(command == qnOfStepCmd)
725 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
737 else if(command == qnOfSecondaryCmd)
742 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
753 else if(command == qTrackLengthCmd)
758 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
767 ps->MultiplyKineticEnergy(
StoB(token[2]));
768 ps->DivideByVelocity(
StoB(token[3]));
769 ps->SetUnit(token[4]);
773 else if(command == qPassCellCurrCmd)
778 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
790 else if(command == qPassTrackLengthCmd)
795 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
804 ps->SetUnit(token[2]);
808 else if(command == qFlatSurfCurrCmd)
813 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
823 ps->DivideByArea(
StoB(token[3]));
826 ps->SetUnit(token[4]);
835 else if(command == qFlatSurfFluxCmd)
840 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
850 ps->DivideByArea(
StoB(token[3]));
853 ps->SetUnit(token[4]);
862 else if(command == qVolFluxCmd)
867 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
880 else if(command == qNofCollisionCmd)
885 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
897 else if(command == qPopulationCmd)
902 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
914 else if(command == qTrackCountCmd)
919 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
932 else if(command == qTerminationCmd)
937 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
949 else if(command == qMinKinEAtGeneCmd)
954 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
966 else if(command == qStepCheckerCmd)
971 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
986 else if(command == fchargedCmd)
995 <<
"] : Current quantity is not set. Set or touch a quantity first.";
999 else if(command == fneutralCmd)
1008 <<
"] : Current quantity is not set. Set or touch a quantity first.";
1012 else if(command == fkinECmd)
1026 <<
"] : Current quantity is not set. Set or touch a quantity first.";
1030 else if(command == fparticleKinECmd)
1039 <<
"] : Current quantity is not set. Set or touch a quantity first.";
1043 else if(command == fparticleCmd)
1052 <<
"] : Current quantity is not set. Set or touch a quantity first.";