|
FlyoDoc_2011 Pisa 2011 by GmP --- 011
|
#include <devhac.h>
Public Member Functions | |
| virtual void | DataSmear () |
| virtual void | Prgeom () |
Public Attributes | |
| double | sepm |
| void DevHac::DataSmear | ( | ) | [virtual] |
operate on the dev_variable of type (2)
Reimplemented from Device.
Definition at line 35 of file devhac.cpp.
{
double xh,yh,ep,norma;
emDev=0.0;
int i=0;
sepm=120.;
while ( i<=nhit )
{
xh=M_Hits[i].Xdev.x;
yh=M_Hits[i].Xdev.y;
norma=sqrt ( xh*xh+yh*yh );
// distanza minima dal centro
if ( norma<sepm ) sepm=norma;
// calcolo degli errori per il calorimetro da rivedere.
ep=M_Hits[i].e_rivela;
if ( ep>0.0 )
{
double err=20./sqrt ( ep ); // energy error for hac
emDev+=M_Hits[i].e_rivela =Pgauss ( err,ep );
}
i++;
}
}