1 #ifndef __JACOUSTICS__JHIT__
2 #define __JACOUSTICS__JHIT__
22 namespace JACOUSTICS {}
23 namespace JPP {
using namespace JACOUSTICS; }
25 namespace JACOUSTICS {
99 template<
class JPDF_t = JPDFGauss>
174 out << setw(3) << hit.
getID() <<
' '
177 <<
FIXED(20,5) << hit.getValue();
friend std::ostream & operator<<(std::ostream &out, const JHit &hit)
Write hit to output stream.
std::string getLabel(const JLocation &location)
Get module label for monitoring and other applications.
int getCounter() const
Get counter.
Auxiliary data structure for floating point format specification.
JEKey getEKey() const
Get emitter hash key of this hot.
double getValue() const
Get expectation value of time-of-arrival.
double getWeight() const
Get weight.
JPDFGauss()
Default constructor.
JHit()
Default constructor.
I/O formatting auxiliaries.
Data structure for vector in three dimensions.
Logical location of module.
const JLocation & getLocation() const
Get location.
JHit(const JEmitter &emitter, const JCounter &counter, const JLocation &location, const JPDF_t &pdf)
Constructor.
int getID() const
Get identifier.
Logical location of module.
JHit(const JEKey &key, const JVector3D &position, const JLocation &location, const JPDF_t &pdf)
Constructor.
double getValue(const double x) const
Function value.
Custom probability density function of time-of-arrival.
JPDFGauss(const double t1_s, const double sigma_s, const double background=0.0)
Constructor.