00001 #include "Swimmer/SwimPlaneInterface.h" 00002 00003 #include "MessageService/MsgService.h" 00004 CVSID("$Id: SwimPlaneInterface.cxx,v 1.3 2003/07/10 19:47:31 rhatcher Exp $"); 00005 00006 #include "MessageService/MsgFormat.h" 00007 using namespace std; 00008 00009 //...................................................................... 00010 00011 SwimPlaneInterface::SwimPlaneInterface(Double_t z, 00012 SwimGeo::SwimMaterial_t matBefore, 00013 SwimGeo::SwimMaterial_t matAfter) 00014 : fZ(z), fMatBefore(matBefore), fMatAfter(matAfter) 00015 { 00016 // basic ctor just initialized data members 00017 } 00018 00019 //...................................................................... 00020 00021 void SwimPlaneInterface::Print(Option_t *option) const 00022 { 00023 // Print the relevant features of this interface 00024 // Option "0" mean suppress newline. 00025 static const MsgFormat f10p5("%f10.5f"); 00026 00027 MsgStream& msg = MSGSTREAM("Swim",Msg::kInfo); 00028 00029 msg << " SwimPlaneInterface z= " << f10p5(fZ) 00030 << setw(7) << SwimGeo::AsString(fMatBefore) << "->" 00031 << setw(7) << SwimGeo::AsString(fMatAfter); 00032 if (option[0] != '0') msg << endl; 00033 00034 }
1.3.9.1