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

FastShower::SNSamplerRouterC0Sample Class Reference

UML: Sampler.unm A SampelrRouter chooses the appropriate router dependending on some indexable quantity (eg energy). More...

#include <SNSamplerRouterC0Sample.h>

Inheritance diagram for FastShower::SNSamplerRouterC0Sample:

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

Collaboration graph
[legend]
List of all members.

Public Methods

 SNSamplerRouterC0Sample (const std::vector< std::pair< double, ISampler * > > &, double floor=0.0, std::string label="")
 SNSamplerRouterC0Sample (const SNSamplerRouterC0Sample &s)
virtual ISamplerclone () const
 make a copy of objects viewed through ISampler interface.

 ~SNSamplerRouterC0Sample ()
virtual double indexQ (const ParticleParameters &, const CoreSamples &) const
 method to get the indexable quantity

virtual double lastValue (const CoreSamples &) const
 for monitoring - get the last "Sampler" value.


Detailed Description

UML: Sampler.unm A SampelrRouter chooses the appropriate router dependending on some indexable quantity (eg energy).

This value is binned - the bin number serves to select the Sampler. This class provides the quantity that serves to provides a specisific indexable quantity used by the router (a base class) - here it is the value of the SN sample.

Definition at line 38 of file SNSamplerRouterC0Sample.h.


Constructor & Destructor Documentation

FastShower::SNSamplerRouterC0Sample::SNSamplerRouterC0Sample const std::vector< std::pair< double, ISampler * > > &   ,
double    floor = 0.0,
std::string    label = ""
 

Definition at line 10 of file SNSamplerRouterC0Sample.cxx.

Referenced by clone().

00016                                                     :
00017     SamplerRouter(v, floor, label){};
  //

FastShower::SNSamplerRouterC0Sample::SNSamplerRouterC0Sample const SNSamplerRouterC0Sample &    s
 

Definition at line 19 of file SNSamplerRouterC0Sample.cxx.

00020                                                                               : 
00021     SamplerRouter(s){};

FastShower::SNSamplerRouterC0Sample::~SNSamplerRouterC0Sample   [inline]
 

Definition at line 45 of file SNSamplerRouterC0Sample.h.

00045 {}

Member Function Documentation

ISampler * FastShower::SNSamplerRouterC0Sample::clone   const [virtual]
 

make a copy of objects viewed through ISampler interface.

Implements FastShower::ISampler.

Definition at line 23 of file SNSamplerRouterC0Sample.cxx.

References SNSamplerRouterC0Sample().

00023                                                   {
00024     return new SNSamplerRouterC0Sample(*this);
00025   }

double FastShower::SNSamplerRouterC0Sample::indexQ const ParticleParameters  ,
const CoreSamples  
const [virtual]
 

method to get the indexable quantity

Implements FastShower::SamplerRouter.

Definition at line 27 of file SNSamplerRouterC0Sample.cxx.

00028                                                                     {
00029     return cs.cell0();
00030   }

double FastShower::SNSamplerRouterC0Sample::lastValue const CoreSamples   const [virtual]
 

for monitoring - get the last "Sampler" value.

Implements FastShower::ISampler.

Definition at line 32 of file SNSamplerRouterC0Sample.cxx.

References FastShower::CoreSamples::give().

00032                                                                        {
00033     return cs.give(this);
00034   }

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