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

SplitDecision.cxx

Go to the documentation of this file.
00001 #include "FastShowerUtils/SplitDecision.h"
00002 #include <assert.h>
00003 namespace FastShower{
00004   SplitDecision::SplitDecision():m_boundary(0.){
00005   }
00006   SplitDecision::SplitDecision(double boundary ):m_boundary(boundary){
00007   assert(m_boundary>=0. && m_boundary<=1.0);
00008   }
00009   void SplitDecision::setBoundary(double boundary){
00010     m_boundary=boundary;
00011     assert(m_boundary>=0. && m_boundary<=1.0);
00012   }
00013   bool SplitDecision::lower(){return  m_flat.sample() <m_boundary;}
00014 }

Generated on Tue Mar 18 11:50:06 2003 for FastShowerUtils by doxygen1.3-rc1