FlyoDoc_2011 Pisa 2011 by GmP --- 011
Public Member Functions | Public Attributes

DevHac Class Reference

#include <devhac.h>

Inheritance diagram for DevHac:
DevRtCl DevRt Device

List of all members.

Public Member Functions

virtual void DataSmear ()
virtual void Prgeom ()

Public Attributes

double sepm

Detailed Description

Calorimetro adronico

Author:
Giuseppe Pierazzini

Definition at line 18 of file devhac.h.


Member Function Documentation

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++;
        }

}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables