Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JEmitter.hh
Go to the documentation of this file.
1#ifndef __JACOUSTICS__JEMITTER__
2#define __JACOUSTICS__JEMITTER__
3
4#include "JLang/JObjectID.hh"
6
7
8/**
9 * \file
10 *
11 * Acoustic emitter.
12 * \author mdejong
13 */
14namespace JACOUSTICS {}
15namespace JPP { using namespace JACOUSTICS; }
16
17namespace JACOUSTICS {
18
19 using JLANG::JObjectID;
22
23
24 /**
25 * Acoustic emitter.
26 */
27 struct JEmitter :
28 public JObjectID,
29 public JPosition3D
30 {
31 /**
32 * Default constructor.
33 */
35 JObjectID (),
37 {}
38
39
40 /**
41 * Constructor.
42 *
43 * \param id identifier
44 * \param pos position
45 */
46 JEmitter(const int id, const JVector3D& pos) :
47 JObjectID (id),
48 JPosition3D(pos)
49 {}
50
51
52 /**
53 * Get emitter.
54 *
55 * \return emitter
56 */
57 const JEmitter& getEmitter() const
58 {
59 return static_cast<const JEmitter&>(*this);
60 }
61 };
62}
63
64#endif
Data structure for position in three dimensions.
Data structure for vector in three dimensions.
Definition JVector3D.hh:36
Auxiliary class for object identification.
Definition JObjectID.hh:25
Auxiliary classes and methods for acoustic position calibration.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Acoustic emitter.
Definition JEmitter.hh:30
JEmitter()
Default constructor.
Definition JEmitter.hh:34
JEmitter(const int id, const JVector3D &pos)
Constructor.
Definition JEmitter.hh:46
const JEmitter & getEmitter() const
Get emitter.
Definition JEmitter.hh:57