Jpp 19.3.0-rc.2
the software that should make you happy
|
Event. More...
Public Member Functions | |
event_type () | |
Default constructor. | |
event_type (const JEvent &event, const JVertex3D &vertex=JVertex3D()) | |
Constructor. | |
const JEvent & | getEvent () const |
Get event. | |
const JVertex3D & | getVertex () const |
Get vertex. | |
const int | getDetectorID () const |
Get detector identifier. | |
int | getOverlays () const |
Get number of overlayed events. | |
int | getID () const |
Get emitter identifier. | |
void | merge (const JEvent &event) |
Merge event. | |
virtual JReader & | read (JReader &in) override |
Read from input. | |
virtual JWriter & | write (JWriter &out) const override |
Write to output. | |
ClassDefOverride (JEvent, 4) | |
int | getCounter () const |
Get counter. | |
ClassDefNV (JCounter, 1) | |
JVertex3D & | negate () |
Prefix unary minus. | |
JVertex3D & | add (const JVertex3D &value) |
Addition operator. | |
JTime & | add (const JTime &value) |
Addition operator. | |
JVector3D & | add (const JVector3D &vector) |
Add vector. | |
JVertex3D & | sub (const JVertex3D &value) |
Subtraction operator. | |
JTime & | sub (const JTime &value) |
Subtraction operator. | |
JVector3D & | sub (const JVector3D &vector) |
Subtract vector. | |
JVertex3D & | mul (const double value) |
Multiplication operator. | |
JFirst_t & | mul (const JSecond_t &object) |
Multiply with object. | |
JFirst_t & | mul (const JSecond_t &object) |
Multiply with object. | |
JVertex3D & | div (const double value) |
Division operator. | |
double | getT (const JVector3D &pos) const |
Get arrival time of Cherenkov light at given position. | |
double | getT () const |
Get time. | |
JVersor3D | getDirection (const JVector3D &pos) const |
Get photon direction of Cherenkov light on PMT. | |
double | getDot (const JAxis3D &axis) const |
Get cosine angle of impact of Cherenkov light on PMT. | |
double | getDot (const JAngle3D &angle) const |
Get dot product. | |
double | getDot (const JVersor3D &dir) const |
Get dot product. | |
double | getDot (const JVersor3Z &dir) const |
Get dot product. | |
double | getDot (const JVector3D &vector) const |
Get dot product. | |
const JPosition3D & | getPosition () const |
Get position. | |
JPosition3D & | getPosition () |
Get position. | |
void | setPosition (const JVector3D &pos) |
Set position. | |
operator JAngle3D () const | |
Type conversion operator. | |
operator JVersor3D () const | |
Type conversion operator. | |
JPosition3D & | rotate (const JRotation3D &R) |
Rotate. | |
JPosition3D & | rotate (const JRotation3X &R) |
Rotate around X-axis. | |
JPosition3D & | rotate (const JRotation3Y &R) |
Rotate around Y-axis. | |
JPosition3D & | rotate (const JRotation3Z &R) |
Rotate around Z-axis. | |
JPosition3D & | rotate (const JQuaternion3D &Q) |
Rotate. | |
JPosition3D & | rotate_back (const JRotation3D &R) |
Rotate back. | |
JPosition3D & | rotate_back (const JRotation3X &R) |
Rotate back around X-axis. | |
JPosition3D & | rotate_back (const JRotation3Y &R) |
Rotate back around Y-axis. | |
JPosition3D & | rotate_back (const JRotation3Z &R) |
Rotate back around Z-axis. | |
JPosition3D & | rotate_back (const JQuaternion3D &Q) |
Rotate back. | |
void | transform (const JRotation3D &R, const JVector3D &pos) |
Transform position. | |
JVector3D & | transform (const JMatrix3D &T) |
Transform. | |
void | transform_back (const JRotation3D &R, const JVector3D &pos) |
Transform back position. | |
operator JVector2D () const | |
Type conversion operator. | |
double | getX () const |
Get x position. | |
double | getY () const |
Get y position. | |
double | getZ () const |
Get z position. | |
bool | equals (const JVector3D &vector, const double precision=std::numeric_limits< double >::min()) const |
Check equality. | |
double | getLengthSquared () const |
Get length squared. | |
double | getLength () const |
Get length. | |
double | getDistanceSquared (const JVector3D &pos) const |
Get squared of distance to point. | |
double | getDistance (const JVector3D &pos) const |
Get distance to point. | |
JVector3D & | getCross (const JVector3D &first, const JVector3D &second) |
Get cross product. | |
void | setT (const double time) |
Set time. | |
Static Public Member Functions | |
template<class T > | |
static void | overlap (T p, T q, const double Tmax_s) |
Empty overlapping events. | |
Protected Attributes | |
int | detid |
int | overlays |
int | id |
int | counter |
double | __x |
double | __y |
double | __z |
double | __t |
Event.
Definition at line 141 of file JAcousticsTriggerProcessor.cc.
|
inline |
Default constructor.
Definition at line 148 of file JAcousticsTriggerProcessor.cc.
|
inline |
Constructor.
event | event |
vertex | vertex |
Definition at line 160 of file JAcousticsTriggerProcessor.cc.
|
inline |
|
inline |
|
inlineinherited |
Get detector identifier.
Definition at line 129 of file JAcoustics/JEvent.hh.
|
inlineinherited |
Get number of overlayed events.
Definition at line 140 of file JAcoustics/JEvent.hh.
|
inlineinherited |
|
inlineinherited |
Merge event.
It is assumed that the transmissions in both events are ordered according the default less-than operator.
event | event |
Definition at line 165 of file JAcoustics/JEvent.hh.
|
inlinestaticinherited |
Empty overlapping events.
The events should be time sorted on input.
The time window applies to the difference between the first transmission of an event and the last transmission of the previous event.
p | begin of events |
q | end of events |
Tmax_s | time window [s] |
Definition at line 247 of file JAcoustics/JEvent.hh.
Read from input.
in | reader |
Implements JIO::JSerialisable.
Definition at line 326 of file JAcoustics/JEvent.hh.
Write to output.
out | writer |
Implements JIO::JSerialisable.
Definition at line 344 of file JAcoustics/JEvent.hh.
|
inherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
Prefix unary minus.
Definition at line 73 of file JVertex3D.hh.
Addition operator.
value | line |
Definition at line 87 of file JVertex3D.hh.
Addition operator.
value | time |
Definition at line 67 of file JGeometry3D/JTime.hh.
Add vector.
vector | vector |
Definition at line 142 of file JVector3D.hh.
Subtraction operator.
value | line |
Definition at line 102 of file JVertex3D.hh.
Subtraction operator.
value | time |
Definition at line 81 of file JGeometry3D/JTime.hh.
Subtract vector.
vector | vector |
Definition at line 158 of file JVector3D.hh.
|
inlineinherited |
Multiplication operator.
value | multiplication factor |
Definition at line 117 of file JVertex3D.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Division operator.
value | multiplication factor |
Definition at line 132 of file JVertex3D.hh.
|
inlineinherited |
Get arrival time of Cherenkov light at given position.
pos | position [m] |
Definition at line 147 of file JVertex3D.hh.
|
inlineinherited |
Get photon direction of Cherenkov light on PMT.
pos | PMT position |
Definition at line 161 of file JVertex3D.hh.
|
inlineinherited |
Get cosine angle of impact of Cherenkov light on PMT.
axis | PMT axis |
Definition at line 177 of file JVertex3D.hh.
|
inlineinherited |
Get dot product.
angle | angle |
Definition at line 378 of file JPosition3D.hh.
|
inlineinherited |
Get dot product.
dir | direction |
Definition at line 393 of file JPosition3D.hh.
|
inlineinherited |
Get dot product.
dir | direction |
Definition at line 408 of file JPosition3D.hh.
|
inlineinherited |
Get dot product.
vector | vector |
Definition at line 282 of file JVector3D.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Rotate.
R | rotation matrix |
Definition at line 186 of file JPosition3D.hh.
|
inlineinherited |
Rotate around X-axis.
R | rotation matrix |
Definition at line 214 of file JPosition3D.hh.
|
inlineinherited |
Rotate around Y-axis.
R | rotation matrix |
Definition at line 242 of file JPosition3D.hh.
|
inlineinherited |
Rotate around Z-axis.
R | rotation matrix |
Definition at line 270 of file JPosition3D.hh.
|
inlineinherited |
|
inlineinherited |
Rotate back.
R | rotation matrix |
Definition at line 200 of file JPosition3D.hh.
|
inlineinherited |
Rotate back around X-axis.
R | rotation matrix |
Definition at line 228 of file JPosition3D.hh.
|
inlineinherited |
Rotate back around Y-axis.
R | rotation matrix |
Definition at line 256 of file JPosition3D.hh.
|
inlineinherited |
Rotate back around Z-axis.
R | rotation matrix |
Definition at line 284 of file JPosition3D.hh.
|
inlineinherited |
Rotate back.
Q | quaternion |
Definition at line 312 of file JPosition3D.hh.
|
inlineinherited |
Transform position.
The final position is obtained as follows:
R | rotation matrix |
pos | position of origin (after rotation) |
Definition at line 331 of file JPosition3D.hh.
|
inlineinherited |
Transform back position.
The final position is obtained as follows:
R | rotation matrix |
pos | position of origin (before rotation) |
Definition at line 359 of file JPosition3D.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Check equality.
vector | vector |
precision | precision |
Definition at line 221 of file JVector3D.hh.
|
inlineinherited |
|
inlineinherited |
Get length.
Definition at line 246 of file JVector3D.hh.
|
inlineinherited |
Get squared of distance to point.
pos | position |
Definition at line 258 of file JVector3D.hh.
|
inlineinherited |
Get distance to point.
pos | position |
Definition at line 270 of file JVector3D.hh.
|
inlineinherited |
Get cross product.
Note that this vector should not overlap with the first or second vector,
first | first vector |
second | second vector |
Definition at line 299 of file JVector3D.hh.
|
inlineinherited |
|
protectedinherited |
Definition at line 358 of file JAcoustics/JEvent.hh.
|
protectedinherited |
Definition at line 359 of file JAcoustics/JEvent.hh.
|
protectedinherited |
Definition at line 360 of file JAcoustics/JEvent.hh.
|
protectedinherited |
Definition at line 88 of file JAcoustics/JCounter.hh.
|
protectedinherited |
Definition at line 310 of file JVector3D.hh.
|
protectedinherited |
Definition at line 311 of file JVector3D.hh.
|
protectedinherited |
Definition at line 312 of file JVector3D.hh.
|
protectedinherited |
Definition at line 202 of file JGeometry3D/JTime.hh.