#include <CellSmearer.h>
Inheritance diagram for Atlfast::CellSmearer:


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. | |
Based on the lowluminosity JetSmearer with size 0.1*0.1 Cell Smearer honours the ISmearer interface and uses implementation of the DefaultSmearer class.
Definition at line 41 of file CellSmearer.h.
|
||||||||||||
|
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 { } |
|
|
Destructor as in DefaultSmearer.
Definition at line 56 of file CellSmearer.h.
00056 { }
|
|
|
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 }
|
|
|
Transition between Barrel and forward Calo.
Definition at line 63 of file CellSmearer.h. Referenced by CellSmearer(), and smear(). |
1.3-rc1