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

FastShower::ProcessedFlat Class Reference

#include <ProcessedFlat.h>

Inheritance diagram for FastShower::ProcessedFlat:

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

Collaboration graph
[legend]
List of all members.

Public Methods

virtual double sample () const
 underlying dist

virtual double sample (const IDistProcessor *) const
 processed

virtual double sample (double, double, const IDistProcessor *) const
 processed + truncated

virtual IProcessedDistclone () const
 make a copy of a condcrete object seen through this interface


Member Function Documentation

double FastShower::ProcessedFlat::sample   const [virtual]
 

underlying dist

Implements FastShower::IProcessedDist.

Definition at line 6 of file ProcessedFlat.cxx.

Referenced by FastShower::SplitDecision::lower(), FastShower::ShowerDemoDumper::makePI(), and FastShower::ProcessedFlatTester::test1().

00006                                     {
00007     return RandFlat::shoot();
00008   }

double FastShower::ProcessedFlat::sample const IDistProcessor   const [virtual]
 

processed

Implements FastShower::IProcessedDist.

Definition at line 9 of file ProcessedFlat.cxx.

References FastShower::IDistProcessor::process().

00009                                                             {
00010     return dp->process(RandFlat::shoot());
00011   }

double FastShower::ProcessedFlat::sample double   ,
double   ,
const IDistProcessor  
const [virtual]
 

processed + truncated

Implements FastShower::IProcessedDist.

Definition at line 12 of file ProcessedFlat.cxx.

References FastShower::IDistProcessor::process().

00014                                                               {
00015     
00016     assert(lowLim<upLim);
00017     
00018     double value = dp->process( RandFlat::shoot() );
00019     
00020     //keep going until within truncation limits;
00021     while(value < lowLim || value > upLim){
00022       value = dp->process( RandFlat::shoot() );
00023     }
00024     
00025     return value;
00026   }

IProcessedDist * FastShower::ProcessedFlat::clone   const [virtual]
 

make a copy of a condcrete object seen through this interface

Implements FastShower::IProcessedDist.

Definition at line 27 of file ProcessedFlat.cxx.

00027                                              {
00028     return new ProcessedFlat(*this);
00029   } 

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