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

C0SamplerRouterEnergySample.cxx

Go to the documentation of this file.
00001 // ================================================
00002 // Implementation of C0SamplerRouterEnergySample
00003 // ================================================
00004 
00005 #include "FastShowerUtils/C0SamplerRouterEnergySample.h"
00006 #include "FastShowerUtils/CoreSamples.h"
00007 #include <assert.h>
00008 
00009 namespace FastShower{
00010   C0SamplerRouterEnergySample::C0SamplerRouterEnergySample(const std::vector<
00011                                                            std::pair<double, ISampler*> 
00012                                                            >& v,
00013                                                            double floor,
00014                                                            std::string label
00015                                                            ): 
00016     SamplerRouter(v, floor, label){};
00017   //
00018   C0SamplerRouterEnergySample::C0SamplerRouterEnergySample(const 
00019                                                            C0SamplerRouterEnergySample& s): 
00020     SamplerRouter(s){};
00021   //
00022   ISampler*  C0SamplerRouterEnergySample::clone() const {
00023     return new C0SamplerRouterEnergySample(*this);
00024   }
00025   //
00026   double C0SamplerRouterEnergySample::indexQ(const ParticleParameters& pp, 
00027                                              const CoreSamples&)const{
00028     return pp.energy();
00029   }
00030   //
00031   double C0SamplerRouterEnergySample::lastValue(const CoreSamples& cs) const {
00032     return cs.give(this);
00033   }
00034 }//namespace
00035 
00036 
00037 

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