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

FastShower::ANSamplerRouterSNSample Class Reference

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

#include <ANSamplerRouterSNSample.h>

Inheritance diagram for FastShower::ANSamplerRouterSNSample:

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

Collaboration graph
[legend]
List of all members.

Public Methods

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

 ~ANSamplerRouterSNSample ()
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 AN sample.

Definition at line 38 of file ANSamplerRouterSNSample.h.


Constructor & Destructor Documentation

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

Definition at line 10 of file ANSamplerRouterSNSample.cxx.

Referenced by clone().

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

FastShower::ANSamplerRouterSNSample::ANSamplerRouterSNSample const ANSamplerRouterSNSample &    s
 

Definition at line 19 of file ANSamplerRouterSNSample.cxx.

00020                                                                               : 
00021     SamplerRouter(s){};

FastShower::ANSamplerRouterSNSample::~ANSamplerRouterSNSample   [inline]
 

Definition at line 45 of file ANSamplerRouterSNSample.h.

00045 {}

Member Function Documentation

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

make a copy of objects viewed through ISampler interface.

Implements FastShower::ISampler.

Definition at line 23 of file ANSamplerRouterSNSample.cxx.

References ANSamplerRouterSNSample().

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

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

method to get the indexable quantity

Implements FastShower::SamplerRouter.

Definition at line 27 of file ANSamplerRouterSNSample.cxx.

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

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

for monitoring - get the last "Sampler" value.

Implements FastShower::ISampler.

Definition at line 32 of file ANSamplerRouterSNSample.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:55:05 2003 for FastShowerUtils by doxygen1.3-rc1