567 ed <<
"ERROR : No mesh is currently open. Open/create a mesh first. "
579 if(command == qTouchCmd)
583 else if(command == qGetUnitCmd)
587 else if(command == qSetUnitCmd)
591 else if(command == qCellChgCmd)
596 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
608 else if(command == qCellFluxCmd)
613 if(shape == MeshShape::box)
617 else if(shape == MeshShape::cylinder)
624 pps->SetNumberOfSegments(nSeg);
627 else if(shape == MeshShape::realWorldLogVol)
629 ed <<
"Cell flux for real world volume is not yet supported. Command "
634 else if(shape == MeshShape::probe)
639 ps->ScoreWeighted(
StoB(token[2]));
643 else if(command == qPassCellFluxCmd)
648 if(shape == MeshShape::box)
652 else if(shape == MeshShape::cylinder)
659 pps->SetNumberOfSegments(nSeg);
662 else if(shape == MeshShape::realWorldLogVol)
664 ed <<
"Passing cell flux for real world volume is not yet supported. "
669 else if(shape == MeshShape::probe)
677 else if(command == qeDepCmd)
682 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
694 else if(command == qdoseDepCmd)
699 if(shape == MeshShape::box)
703 else if(shape == MeshShape::cylinder)
707 pps->SetUnit(token[1]);
711 pps->SetNumberOfSegments(nSeg);
714 else if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
722 else if(command == qnOfStepCmd)
727 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
739 else if(command == qnOfSecondaryCmd)
744 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
755 else if(command == qTrackLengthCmd)
760 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
769 ps->MultiplyKineticEnergy(
StoB(token[2]));
770 ps->DivideByVelocity(
StoB(token[3]));
771 ps->SetUnit(token[4]);
775 else if(command == qPassCellCurrCmd)
780 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
792 else if(command == qPassTrackLengthCmd)
797 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
806 ps->SetUnit(token[2]);
810 else if(command == qFlatSurfCurrCmd)
815 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
825 ps->DivideByArea(
StoB(token[3]));
828 ps->SetUnit(token[4]);
837 else if(command == qFlatSurfFluxCmd)
842 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
852 ps->DivideByArea(
StoB(token[3]));
855 ps->SetUnit(token[4]);
864 else if(command == qVolFluxCmd)
869 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
882 else if(command == qNofCollisionCmd)
887 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
899 else if(command == qPopulationCmd)
904 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
916 else if(command == qTrackCountCmd)
921 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
934 else if(command == qTerminationCmd)
939 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
951 else if(command == qMinKinEAtGeneCmd)
956 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
968 else if(command == qStepCheckerCmd)
973 if(shape == MeshShape::realWorldLogVol || shape == MeshShape::probe)
988 else if(command == fchargedCmd)
996 ed <<
"WARNING[" << fchargedCmd->GetCommandPath()
997 <<
"] : Current quantity is not set. Set or touch a quantity first.";
1001 else if(command == fneutralCmd)
1009 ed <<
"WARNING[" << fneutralCmd->GetCommandPath()
1010 <<
"] : Current quantity is not set. Set or touch a quantity first.";
1014 else if(command == fkinECmd)
1027 ed <<
"WARNING[" << fkinECmd->GetCommandPath()
1028 <<
"] : Current quantity is not set. Set or touch a quantity first.";
1032 else if(command == fparticleKinECmd)
1040 ed <<
"WARNING[" << fparticleKinECmd->GetCommandPath()
1041 <<
"] : Current quantity is not set. Set or touch a quantity first.";
1045 else if(command == fparticleCmd)
1053 ed <<
"WARNING[" << fparticleCmd->GetCommandPath()
1054 <<
"] : Current quantity is not set. Set or touch a quantity first.";