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