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

Atlfast::CellSmearer Class Reference

Provides parameterised cell smearing. More...

#include <CellSmearer.h>

Inheritance diagram for Atlfast::CellSmearer:

Inheritance graph
[legend]
Collaboration diagram for Atlfast::CellSmearer:

Collaboration graph
[legend]
List of all members.

Public Methods

 CellSmearer (const int aseed, const double barrelForwardEta)
 Constructor as in DefaultSmearer.

virtual ~CellSmearer ()
 Destructor as in DefaultSmearer.

virtual HepLorentzVector smear (const HepLorentzVector &avec)
 Smear method.


Private Attributes

double m_BarrelForwardEta
 Transition between Barrel and forward Calo.


Detailed Description

Provides parameterised cell smearing.

Based on the lowluminosity JetSmearer with size 0.1*0.1 Cell Smearer honours the ISmearer interface and uses implementation of the DefaultSmearer class.

Author:
J.Couchman

Definition at line 41 of file CellSmearer.h.


Constructor & Destructor Documentation

Atlfast::CellSmearer::CellSmearer const int    aseed,
const double    barrelForwardEta
[inline]
 

Constructor as in DefaultSmearer.

Definition at line 49 of file CellSmearer.h.

References m_BarrelForwardEta.

00050                                                  : 
00051         ISmearer(), 
00052         DefaultSmearer(aseed), 
00053         m_BarrelForwardEta(barrelForwardEta) 
00054         { }

virtual Atlfast::CellSmearer::~CellSmearer   [inline, virtual]
 

Destructor as in DefaultSmearer.

Definition at line 56 of file CellSmearer.h.

00056 { }

Member Function Documentation

HepLorentzVector Atlfast::CellSmearer::smear const HepLorentzVector &    avec [virtual]
 

Smear method.

Reimplemented from Atlfast::DefaultSmearer.

Definition at line 22 of file CellSmearer.cxx.

References m_BarrelForwardEta, and Atlfast::DefaultSmearer::randGauss().

00022                                                                   {
00023 //........................................................
00024 //.....smear Cells energy
00025 //........................................................
00026 //     parametrizes smearing for hadronic energy deposition
00027 //     parametrization from L. Poggioli
00028 //     no pileup added
00029 
00030     float sigma=0.;
00031     HepLorentzVector smearedVec(vec);
00032     float aa, bb;
00033     float sqrtene = sqrt(vec.e());
00034     float abseta  = fabs(vec.pseudoRapidity());
00035     while(1) {
00036       aa=randGauss()->fire();
00037       bb=randGauss()->fire();
00038       if(abseta < m_BarrelForwardEta) sigma = aa*0.5/sqrtene + bb*0.03;
00039       else            sigma = aa*1.0/sqrtene + bb*0.07;
00040       if(1.+sigma > .0) break;
00041     }
00042     smearedVec.setPx(vec.px()*(1.0+sigma));
00043     smearedVec.setPy(vec.py()*(1.0+sigma));
00044     smearedVec.setPz(vec.pz()*(1.0+sigma));
00045     smearedVec.setE(vec.e()*(1.0+sigma));
00046     return smearedVec;
00047     
00048   }

Member Data Documentation

double Atlfast::CellSmearer::m_BarrelForwardEta [private]
 

Transition between Barrel and forward Calo.

Definition at line 63 of file CellSmearer.h.

Referenced by CellSmearer(), and smear().


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