00001 #include "FastShowerUtils/RTest.h" 00002 #include "FastShowerUtils/Pinger/ComplexStatsCollector2.h" 00003 #include "FastShowerUtils/Gridlet.h" 00004 #include "FastShowerUtils/GridletForger.h" 00005 00006 #include "FastShowerUtils/ParticleInfo.h" 00007 #include "FastShowerUtils/ParticleParameters.h" 00008 #include "FastShowerUtils/Pinger/ComplexArmer.h" 00009 00010 #include <fstream> 00011 #include <iostream> 00012 namespace FastShower{ 00013 void RTest::execute(){ 00014 cout<<"*****************************************"<<endl; 00015 cout<<"* RTest Execute *"<<endl; 00016 cout<<"*****************************************"<<endl; 00017 00018 ParticleInfo* pi; 00019 bool more = true; 00020 00021 while(more){ 00022 if(!(pi = m_generator.next()) ){ 00023 m_generator.report(); 00024 cout<<"End of run"<<endl; 00025 more = false; 00026 }else{ 00027 // cout<<*pp; 00028 Gridlet* g = gridletForger()->makeGridlet(*pi); 00029 delete g; 00030 delete pi; 00031 } 00032 } 00033 } 00034 void RTest::finalise() const{ 00035 cout<<"RTest: Finalise "<<endl; 00036 ComplexStatsCollector2 sc("RTest.txt"); 00037 //convert to an IDebug for debug functionality 00038 IDebug* gfDbg = gridletForger(); 00039 //ping structure 00040 gfDbg->ping( sc ); 00041 } 00042 }//namespace 00043 00044 00045 00046 00047 00048 00049 00050 00051 00052 00053