#include <ProcessedFlat.h>
Inheritance diagram for FastShower::ProcessedFlat:
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 IProcessedDist * | clone () const |
make a copy of a condcrete object seen through this interface |
|
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 }
|
|
processed
Implements FastShower::IProcessedDist. Definition at line 9 of file ProcessedFlat.cxx. References FastShower::IDistProcessor::process().
00009 {
00010 return dp->process(RandFlat::shoot());
00011 }
|
|
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 } |
|
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 } |