Acoustics hit.
More...
#include <JHit.hh>
|
| std::ostream & | operator<< (std::ostream &out, const JHit &hit) |
| | Write hit to output stream.
|
| |
Acoustics hit.
Definition at line 31 of file JHit.hh.
◆ JHit() [1/2]
| JACOUSTICS::JHit::JHit |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 39 of file JHit.hh.
◆ JHit() [2/2]
| JACOUSTICS::JHit::JHit |
( |
const JEmitter & | emitter, |
|
|
const JCounter & | counter, |
|
|
const JLocation & | location, |
|
|
const double | toa_s, |
|
|
const double | sigma_s, |
|
|
const double | weight ) |
|
inline |
Constructor.
- Parameters
-
| emitter | emitter |
| counter | counter |
| location | receiver location |
| toa_s | time-of-arrival [s] |
| sigma_s | resolution [s] |
| weight | weight |
Definition at line 53 of file JHit.hh.
58 :
61 JLocation(location),
65 {}
JCounter()
Default constructor.
JEmitter()
Default constructor.
◆ getEKey()
| JEKey JACOUSTICS::JHit::getEKey |
( |
| ) |
const |
|
inline |
Get emitter hash key of this hit.
- Returns
- hash key
Definition at line 73 of file JHit.hh.
74 {
76 }
int getCounter() const
Get counter.
◆ getValue()
| double JACOUSTICS::JHit::getValue |
( |
| ) |
const |
|
inline |
Get expectation value of time-of-arrival.
- Returns
- time-of-arrival [s]
Definition at line 84 of file JHit.hh.
◆ getSigma()
| double JACOUSTICS::JHit::getSigma |
( |
| ) |
const |
|
inline |
Get resolution of time-of-arrival.
- Returns
- resulution [s]
Definition at line 95 of file JHit.hh.
◆ getWeight()
| double JACOUSTICS::JHit::getWeight |
( |
| ) |
const |
|
inline |
Get weight.
- Returns
- weight
Definition at line 106 of file JHit.hh.
◆ getEmitter()
| const JEmitter & JACOUSTICS::JEmitter::getEmitter |
( |
| ) |
const |
|
inlineinherited |
Get emitter.
- Returns
- emitter
Definition at line 57 of file JEmitter.hh.
58 {
59 return static_cast<const JEmitter&
>(*this);
60 }
◆ getCounter()
| int JACOUSTICS::JCounter::getCounter |
( |
| ) |
const |
|
inlineinherited |
Get counter.
- Returns
- counter
Definition at line 50 of file JCounter.hh.
◆ ClassDefNV()
| JACOUSTICS::JCounter::ClassDefNV |
( |
JCounter | , |
|
|
1 | ) |
|
inherited |
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & | out, |
|
|
const JHit & | hit ) |
|
friend |
Write hit to output stream.
- Parameters
-
- Returns
- output stream
Definition at line 119 of file JHit.hh.
120 {
121 using namespace std;
123
124 out << setw(3) << hit.getID() << ' '
125 << setw(3) << hit.getCounter() << ' '
126 << getLabel(hit.getLocation())
127 << FIXED(20,5) << hit.getValue() << ' '
128 << FIXED(9,6) << hit.getSigma() << ' '
129 << FIXED(6,2) << hit.getWeight();
130
131 return out;
132 }
◆ toa
| double JACOUSTICS::JHit::toa |
|
protected |
◆ sigma
| double JACOUSTICS::JHit::sigma |
|
protected |
◆ weight
| double JACOUSTICS::JHit::weight |
|
protected |
◆ counter
| int JACOUSTICS::JCounter::counter |
|
protectedinherited |
The documentation for this struct was generated from the following file: