10#include "EmcRecEventModel/RecEmcFraction.h"
11#include "Identifier/EmcID.h"
56 unsigned int tht, phi;
57 unsigned int tht2,
phi2;
58 unsigned int dtht, dphi;
66 dtht = tht > tht2 ? tht - tht2 : tht2 - tht;
70 dist = sqrt(
double( dtht * dtht + dphi * dphi ) );
82 cout.setf( ios::right );
86 cout.setf( ios::right );
87 cout <<
fTime <<
", ";
90 cout.setf( ios::right );
102 os.setf( ios::right );
106 os.setf( ios::right );
107 os << aFraction.
getTime() <<
", ";
110 os.setf( ios::right );
114 os.setf( ios::right );
ostream & operator<<(ostream &os, const RecEmcFraction &aFraction)
static unsigned int getPHI_BARREL_MAX()
static unsigned int theta_module(const Identifier &id)
static unsigned int phi_module(const Identifier &id)
RecEmcFrac Fraction(const RecEmcFrac &Fraction)
double Distance(const RecEmcID id) const
RecEmcFrac getFraction() const
RecEmcEnergy getEnergy() const
RecEmcID getCellId() const
RecEmcTime getTime() const