Vertex locator.
More...
Vertex locator.
Definition at line 300 of file JAcousticsTriggerProcessor.cc.
◆ JVelo()
JACOUSTICS::JVelo::JVelo |
( |
const JAbstractSoundVelocity & | V, |
|
|
const double | RMax_m, |
|
|
const double | Xv_m, |
|
|
const double | factor = 1.0 ) |
|
inline |
Constructor.
- Parameters
-
V | sound velocity |
RMax_m | radius for generation of vertices [m] |
Xv_m | step size for generation of vertices [m] |
factor | multiplication factor for corresponding time window |
Definition at line 311 of file JAcousticsTriggerProcessor.cc.
314 :
317 {
319
320 if (RMax_m > 0.0 && Xv_m > 0.0) {
321 for (
double x = 0.5*Xv_m;
x <= RMax_m;
x += Xv_m) {
322 for (
double y = 0.5*Xv_m;
y <= RMax_m;
y += Xv_m) {
323 if (x*x + y*y <= RMax_m*RMax_m) {
328 }
329 }
330 }
331 }
332 }
Data structure for vector in three dimensions.
const JAbstractSoundVelocity & V
◆ operator()() [1/2]
template<class T >
int JACOUSTICS::JVelo::operator() |
( |
const JVertex3D & | vx, |
|
|
T | __begin, |
|
|
T | __end ) const |
|
inline |
Check vertex.
- Parameters
-
vx | vertex |
__begin | begin of data |
__end | end of data |
- Returns
- number of hits
Definition at line 344 of file JAcousticsTriggerProcessor.cc.
345 {
347 const double t0 = vx.
getT();
348
349 int n0 = 0;
350
351 for (T p = __begin; p != __end; ++p) {
352
354
355 if (fabs(t1 - t0) <=
Tmax_s) {
356 n0 += 1;
357 }
358 }
359
360 return n0;
361 }
Data structure for position in three dimensions.
const JPosition3D & getPosition() const
Get position.
double getDistance(const JVector3D &pos) const
Get distance to point.
double getZ() const
Get z position.
double getT(const JVector3D &pos) const
Get arrival time of Cherenkov light at given position.
virtual double getTime(const double D_m, const double z1, const double z2) const =0
Get propagation time of sound.
◆ operator()() [2/2]
template<class T >
vertex_type JACOUSTICS::JVelo::operator() |
( |
const JPosition3D & | position, |
|
|
const hit_type & | root, |
|
|
T | __begin, |
|
|
T | __end, |
|
|
const int | numberOfHits = 0 ) const |
|
inline |
Locate vertex around given position.
- Parameters
-
position | position |
root | root hit |
__begin | begin of data |
__end | end of data |
numberOfHits | number of hits |
- Returns
- vertex
Definition at line 375 of file JAcousticsTriggerProcessor.cc.
376 {
378
379 for (const_iterator i = this->cbegin(); i != this->cend(); ++i) {
380
384
385 int n0 = 1;
386 double q0 =
root.getQ();
387
388 for (T p = __begin; p != __end && n0 +
distance(p, __end) >= numberOfHits && n0 +
distance(p, __end) >= vertex.
N; ++p) {
389
390 const double d1 = p0.
getDistance(p->getPosition());
391 const double t1 = p->getToA() -
V.
getTime(d1, p0.
getZ(), p->getZ());
392
393 if (fabs(t1 - t0) <=
Tmax_s) {
394 n0 += 1;
395 q0 += p->getQ();
396 }
397 }
398
401 }
402 }
403
404 return vertex;
405 }
◆ Tmax_s
const double JACOUSTICS::JVelo::Tmax_s |
The documentation for this struct was generated from the following file: