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

FastShower::ShowerDemoDumper Class Reference

#include <ShowerDemoDumper.h>

Inheritance diagram for FastShower::ShowerDemoDumper:

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

Collaboration graph
[legend]
List of all members.

Public Methods

 ShowerDemoDumper (int nEvents, std::string key, int pdgId, double minEta, double maxEta, double energy)
virtual ~ShowerDemoDumper ()
virtual void initialise (const std::string)
virtual void execute ()
virtual void finalise () const
virtual GridletForgergridletForger () const

Private Methods

ParticleInfo makePI (int pdgId, double energy) const

Private Attributes

int m_nEvents
int m_pdgId
std::string m_key
double m_minEta
double m_maxEta
double m_energy
GridletForgerm_gridletForger
std::ostream m_ofile

Constructor & Destructor Documentation

FastShower::ShowerDemoDumper::ShowerDemoDumper int    nEvents,
std::string    key,
int    pdgId,
double    minEta,
double    maxEta,
double    energy
 

Definition at line 15 of file ShowerDemoDumper.cxx.

References m_energy, m_key, m_maxEta, m_minEta, m_nEvents, m_pdgId, FastShower::maxEta, and FastShower::minEta.

00018                                                    :
00019     m_nEvents(nEvents), m_pdgId(pdgId), 
00020     m_minEta(minEta), m_maxEta(maxEta), m_energy(energy){
00021     cout<<"ShowerDemoDumper(int nEvents, string key, int pdgId, "
00022         <<"double minEta, double maxEta, double energy): "<<m_nEvents<<" "
00023         <<m_key<<" "<<m_pdgId<<" "<<m_minEta<<" "<<m_maxEta<<" "<<m_energy<<endl;
00024   }

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

Definition at line 36 of file ShowerDemoDumper.h.

00036 {};

Member Function Documentation

void FastShower::ShowerDemoDumper::initialise const std::string    [virtual]
 

Implements FastShower::IShowerDumper.

Definition at line 27 of file ShowerDemoDumper.cxx.

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

00027                                                     {
00028     cout<<"ShowerDemoDumper - initialising"<<endl;
00029     m_gridletForger = new GridletForger(s);
00030     cout<<"*****************************************"<<endl;
00031     cout<<"*       GridletForger Structure         *"<<endl;
00032     cout<<"*****************************************"<<endl;
00033     ComplexPinger p;
00034     IDebug* gfDbg = gridletForger();
00035     gfDbg->ping(p);
00036   } 

void FastShower::ShowerDemoDumper::execute   [virtual]
 

Implements FastShower::IShowerDumper.

Definition at line 39 of file ShowerDemoDumper.cxx.

References gridletForger(), m_energy, m_nEvents, m_pdgId, FastShower::GridletForger::makeGridlet(), and makePI().

00039                                 {
00040     std::string eFile("Test.txt");
00041     std::fstream ofile;
00042     ofile.open(eFile.c_str(), ios::out);
00043     cout<<"*****************************************"<<endl;
00044     cout<<"*       ShowerDemoDumper Execute        *"<<endl;
00045     cout<<"*****************************************"<<endl;
00046 
00047     for(int ievt = 0; ievt!=m_nEvents; ++ievt){
00048       cout<<"DEMO  Event: "<<ievt<<endl<<endl;
00049       ofile<<"DEMO  Event: "<<ievt<<endl<<endl;
00050       //
00051       ParticleInfo pi = makePI(m_pdgId, m_energy);
00052       ofile<<pi;
00053       //
00054       Gridlet* g = gridletForger()->makeGridlet(pi);
00055       cout<<*g;
00056       ofile<<*g;
00057       delete g;
00058       //reset what needs to be reset before using the showerer;
00059       //ComplexArmer ca;
00060       //IDebug* gfDbg = gridletForger();
00061       //gfDbg->ping( ca );
00062       //
00063       //      ComplexStatsCollector sc;
00064       //      gfDbg->ping( sc );
00065       //
00066     }
00067   }

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

Implements FastShower::IShowerDumper.

Definition at line 70 of file ShowerDemoDumper.cxx.

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

00070                                        {
00071     cout<<"ShowerDemoDumper: Finalise "<<endl;
00072     ComplexStatsCollector sc;
00073     IDebug* gfDbg = gridletForger();
00074     gfDbg->ping( sc );
00075   }

GridletForger * FastShower::ShowerDemoDumper::gridletForger   const [virtual]
 

Implements FastShower::IShowerDumper.

Definition at line 78 of file ShowerDemoDumper.cxx.

References m_gridletForger.

Referenced by execute(), finalise(), and initialise().

00078                                                       {
00079     return m_gridletForger;
00080   }

ParticleInfo FastShower::ShowerDemoDumper::makePI int    pdgId,
double    energy
const [private]
 

Definition at line 83 of file ShowerDemoDumper.cxx.

References m_maxEta, m_minEta, and FastShower::ProcessedFlat::sample().

Referenced by execute().

00083                                                                       {
00084     ProcessedFlat pf;
00085     LinearProcessor etaLp( (m_maxEta-m_minEta), m_minEta );
00086     LinearProcessor phiLp( 2*M_PI, -M_PI );
00087     double eta = pf.sample(&etaLp);
00088     double phi = pf.sample(&phiLp);
00089     ParticleInfo pi(phi,eta,energy,pdgId);
00090     return pi;
00091   }

Member Data Documentation

int FastShower::ShowerDemoDumper::m_nEvents [private]
 

Definition at line 45 of file ShowerDemoDumper.h.

Referenced by execute(), and ShowerDemoDumper().

int FastShower::ShowerDemoDumper::m_pdgId [private]
 

Definition at line 46 of file ShowerDemoDumper.h.

Referenced by execute(), and ShowerDemoDumper().

std::string FastShower::ShowerDemoDumper::m_key [private]
 

Definition at line 47 of file ShowerDemoDumper.h.

Referenced by ShowerDemoDumper().

double FastShower::ShowerDemoDumper::m_minEta [private]
 

Definition at line 48 of file ShowerDemoDumper.h.

Referenced by makePI(), and ShowerDemoDumper().

double FastShower::ShowerDemoDumper::m_maxEta [private]
 

Definition at line 49 of file ShowerDemoDumper.h.

Referenced by makePI(), and ShowerDemoDumper().

double FastShower::ShowerDemoDumper::m_energy [private]
 

Definition at line 50 of file ShowerDemoDumper.h.

Referenced by execute(), and ShowerDemoDumper().

GridletForger* FastShower::ShowerDemoDumper::m_gridletForger [private]
 

Definition at line 52 of file ShowerDemoDumper.h.

Referenced by gridletForger(), and initialise().

std::ostream FastShower::ShowerDemoDumper::m_ofile [private]
 

Definition at line 53 of file ShowerDemoDumper.h.


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