7#include "GaudiKernel/MsgStream.h"
38 if (
identify() != other.identify()) {
40 <<
identify() <<
" / " << other.identify());
44 if ((fabs(
energy()) > 1e-9) && (fabs(other.energy()) > 1e-9)) {
47 double eabssum = fabs(
energy()) + fabs(other.energy());
48 double esum =
energy() + other.energy();
49 double w1 = fabs(
energy()) / eabssum;
50 double w2 = fabs(other.energy()) / eabssum;
56 }
else if (fabs(
energy()) < 1e-9) {
59 setP(other.position());
61 }
else if (fabs(other.energy()) < 1e-9) {
67 <<
"\nSecond hit: " << other.energy() <<
" "
#define ATH_MSG_WARNING(x)
CLHEP::Hep3Vector position() const
return spacial position
FCS_StepInfo & operator+=(const FCS_StepInfo &other)
energy weighted sum
void setP(const CLHEP::Hep3Vector &p)
set position
FCS_StepInfo()
empty default constructor
double diff2(const FCS_StepInfo &other) const
return spactial distance squared
CLHEP::Hep3Vector m_pos
spatial position
void setTime(float t, int ind=0)
Set time of ind-th sub-hit in a hit.
float time(int ind=0) const
Return time of ind-th sub-hit.
void setEnergy(float e, int ind=0)
Set energy of ind-th sub-hit in a hit.
float energy(int ind=0) const
Return energy of ind-th sub-hit.
Identifier identify(void) const
Return logical ID of the pmt.