Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

FastShower::ShowerDemoMoni Class Reference

#include <ShowerDemoMoni.h>

Inheritance diagram for FastShower::ShowerDemoMoni:

Inheritance graph
[legend]
Collaboration diagram for FastShower::ShowerDemoMoni:

Collaboration graph
[legend]
List of all members.

Public Methods

 ShowerDemoMoni ()
virtual ~ShowerDemoMoni ()
virtual void execute ()
virtual void finalise () const

Constructor & Destructor Documentation

FastShower::ShowerDemoMoni::ShowerDemoMoni  
 

Definition at line 20 of file ShowerDemoMoni.cxx.

00020                                 :ShowerDemoBase(){
00021   }

virtual FastShower::ShowerDemoMoni::~ShowerDemoMoni   [inline, virtual]
 

Definition at line 21 of file ShowerDemoMoni.h.

00021 {};

Member Function Documentation

void FastShower::ShowerDemoMoni::execute   [virtual]
 

Implements FastShower::IShowerDemo.

Definition at line 23 of file ShowerDemoMoni.cxx.

References FastShower::IShowerDemo::gridletForger(), and FastShower::GridletForger::makeGridlet().

00023                               {
00024     int maxEvt = 10;
00025     int maxNum = 4;
00026     std::string gFile("gridlets.txt");
00027     std::fstream ofile;
00028     ofile.open(gFile.c_str(), ios::out);
00029     cout<<"*****************************************"<<endl;
00030     cout<<"*        ShowerDemo Execute             *"<<endl;
00031     cout<<"*****************************************"<<endl;
00032     for(int ievt = 0; ievt!=maxEvt;++ievt){
00033       //
00034       for(int num = 0; num!=maxNum; ++num){
00035         cout<<"DEMO  Event: "<<ievt<<endl<<endl;
00036         cout<<"sentry  01"<<endl;
00037         ParticleInfo pi;
00038         //
00039         //                     Phi     Eta     NRG  pdgID
00040         //
00041         if(num==0)  
00042           pi = ParticleInfo(  0.075, -0.0875,  1.00, 211);
00043         cout<<"sentry  01.1"<<endl;
00044         if(num==1)  
00045           pi = ParticleInfo(  1.255,  1.7175,  0.25, 211);
00046         cout<<"sentry  01.2"<<endl;
00047         if(num==2)  
00048           pi = ParticleInfo( -2.023,  -1.263,  0.70, 211);
00049         cout<<"sentry  01.3"<<endl;
00050         if(num==3)  
00051           pi = ParticleInfo(  0.921,  -1.528,  1.35, 211);
00052         //
00053         cout<<"sentry  02"<<endl;
00054         Gridlet* g = gridletForger()->makeGridlet(pi);
00055         cout<<"sentry  03"<<endl;
00056         //
00057         //reset what needs to be reset before using the showerer;
00058         //ComplexArmer ca;
00059         //IDebug* gfDbg = gridletForger();
00060         //gfDbg->ping( ca );
00061         //cout<<"sentry  04"<<endl;
00062 
00063         //
00064         //ComplexStatsCollector sc;
00065         //cout<<"sentry  05"<<endl;
00066         //gfDbg->ping( sc );
00067         //cout<<"sentry  06"<<endl;
00068         //
00069         cout<<"DEMO: Showered Gridlet:"<<endl<<endl;
00070         cout<<*g;
00071         ofile<<*g;
00072         cout<<"DEMO: Showered Gridlet dumped:"<<endl<<endl;
00073       }
00074     }
00075 
00076   }

void FastShower::ShowerDemoMoni::finalise   const [virtual]
 

Implements FastShower::IShowerDemo.

Definition at line 77 of file ShowerDemoMoni.cxx.

References FastShower::IShowerDemo::gridletForger(), and FastShower::IDebug::ping().

00077                                      {
00078     cout<<"ShowerDemoMoni: Finalise "<<endl;
00079     ComplexStatsCollector sc;
00080     IDebug* gfDbg = gridletForger();
00081     gfDbg->ping( sc );
00082   }

The documentation for this class was generated from the following files:
Generated on Tue Mar 18 11:58:27 2003 for FastShowerUtils by doxygen1.3-rc1