|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef LARG4GENSHOWERLIB_STEPINFO_H
6 #define LARG4GENSHOWERLIB_STEPINFO_H
12 #include "CLHEP/Vector/ThreeVector.h"
64 inline double x()
const {
return m_pos.x(); }
66 inline double y()
const {
return m_pos.y(); }
68 inline double z()
const {
return m_pos.z(); }
103 w1 =
first.m_dep/esum;
126 w2 =
other.m_dep/esum;
128 std::cout <<
"Error: hit combination: sum of deposited energy is zero!" << std::endl;
139 #endif // LARG4GENSHOWERLIB_STEPINFO_H
void setTime(const double t)
set time
StepInfo & operator+=(const StepInfo &other)
energy weighted sum
void setValid(const bool flag)
set validity
CLHEP::Hep3Vector position() const
return spacial position
double m_dep
deposited energy
double time() const
return time of hit
void setP(const CLHEP::Hep3Vector &p)
set position
void setX(const double x)
set x position
CLHEP::Hep3Vector m_pos
spatial position
void setZ(const double z)
set z position
bool m_valid
flag, if hit is valid
double y() const
return y position
bool valid() const
return validity flag
StepInfo()
empty default constructor
double x() const
return x position
double diff2(const StepInfo &other) const
return spactial distance squared
void setE(const double t)
set depoisted energy
Namespace for the ShowerLib related classes.
double z() const
return z position
Class to collect information about G4 steps.
double dep() const
return deposited energy
void setY(const double y)
set y position