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

Atlfast::BremPTScaleBin Class Reference

#include <BremPTScaleBin.h>

List of all members.


Public Methods

 BremPTScaleBin ()
 BremPTScaleBin (double low, double high, double pt, double step)
double calculatePScale (double rand) const
double ptValue () const
double ptStep () const
double low () const
double high () const

Private Attributes

double m_low
double m_high
double m_ptValue
double m_ptStep

Constructor & Destructor Documentation

Atlfast::BremPTScaleBin::BremPTScaleBin   [inline]
 

Definition at line 12 of file BremPTScaleBin.h.

00012 {}

Atlfast::BremPTScaleBin::BremPTScaleBin double    low,
double    high,
double    pt,
double    step
 

Definition at line 5 of file BremPTScaleBin.cxx.

00005                                                                              :m_low(low), 
00006   m_high(high), m_ptValue(pt), m_ptStep(step) {
00007 }

Member Function Documentation

double Atlfast::BremPTScaleBin::calculatePScale double    rand const
 

Definition at line 9 of file BremPTScaleBin.cxx.

References m_high, m_low, m_ptStep, and m_ptValue.

00009                                                         {
00010   double ratio = (m_high - rand) / (m_high - m_low);
00011   return m_ptValue + (1-ratio)*m_ptStep;
00012 }

double Atlfast::BremPTScaleBin::ptValue   const
 

Definition at line 16 of file BremPTScaleBin.cxx.

References m_ptValue.

Referenced by Atlfast::operator<<().

00016 {return m_ptValue;}

double Atlfast::BremPTScaleBin::ptStep   const
 

Definition at line 17 of file BremPTScaleBin.cxx.

References m_ptStep.

Referenced by Atlfast::operator<<().

00017 {return m_ptStep;}

double Atlfast::BremPTScaleBin::low   const
 

Definition at line 14 of file BremPTScaleBin.cxx.

References m_low.

Referenced by Atlfast::operator<<().

00014 {return m_low;}

double Atlfast::BremPTScaleBin::high   const
 

Definition at line 15 of file BremPTScaleBin.cxx.

References m_high.

Referenced by Atlfast::operator<<().

00015 {return m_high;}

Member Data Documentation

double Atlfast::BremPTScaleBin::m_low [private]
 

Definition at line 21 of file BremPTScaleBin.h.

Referenced by calculatePScale(), and low().

double Atlfast::BremPTScaleBin::m_high [private]
 

Definition at line 22 of file BremPTScaleBin.h.

Referenced by calculatePScale(), and high().

double Atlfast::BremPTScaleBin::m_ptValue [private]
 

Definition at line 23 of file BremPTScaleBin.h.

Referenced by calculatePScale(), and ptValue().

double Atlfast::BremPTScaleBin::m_ptStep [private]
 

Definition at line 24 of file BremPTScaleBin.h.

Referenced by calculatePScale(), and ptStep().


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