Detector subset without binary search functionality.
More...
#include <JDetectorSubset.hh>
Detector subset without binary search functionality.
Definition at line 38 of file JDetectorSubset.hh.
JDETECTOR::JDetectorSubset_t::JDetectorSubset_t |
( |
const JDetector & |
detector, |
|
|
const JAxis3D & |
track, |
|
|
const double |
Rmax = std::numeric_limits<double>::max() , |
|
|
const JRange< double > & |
Z = JRange<double>() |
|
) |
| |
|
inline |
Constructor.
The positions and orientations of the modules and the PMTs after the transformation are relative to given particle track (see ANTARES-SOFT 2010-002). Only modules within given road width and z-axis range are accepted.
- Parameters
-
detector | detector |
track | particle track |
Rmax | maximal distance of approach [m] |
Z | range of positions along z-axis [m] |
Definition at line 54 of file JDetectorSubset.hh.
59 const JTransformation3D transformation(track.getPosition(), track.getDirection());
63 for (JDetector::const_iterator i = detector.begin(); i != detector.end(); ++i) {
65 JPosition3D pos(i->getPosition());
67 pos.
transform(transformation.getRotation(), transformation.getPosition());
69 if (
Z(pos.getZ()) && pos.getX() <= Rmax) {
73 module.transform(transformation);
75 this->push_back(module);
Data structure for a composite optical module.
void transform(const JRotation3D &R, const JVector3D &pos)
Transformation of geometry (see method JGEOMETRY3D::JPosition3D::transform(const JRotation3D&, const JVector3D&)).
do set_variable MODULE getModule a $WORKDIR detector_a datx L $STRING JEditDetector a $WORKDIR detector_a datx M $MODULE setz o $WORKDIR detector_a datx JEditDetector a $WORKDIR detector_b datx M $MODULE setz o $WORKDIR detector_b datx done echo Output stored at $WORKDIR detector_a datx and $WORKDIR tripod_a txt JDrawDetector2D a $WORKDIR detector_a datx a $WORKDIR detector_b datx L BL o detector $FORMAT $BATCH JDrawDetector2D T $WORKDIR tripod_a txt T $WORKDIR tripod_b txt L BL o tripod $FORMAT $BATCH JCompareDetector a $WORKDIR detector_a datx b $WORKDIR detector_b datx o $WORKDIR abc root &dev null for KEY in X Y Z
JDETECTOR::JDetectorSubset_t::JDetectorSubset_t |
( |
const JDetector & |
detector, |
|
|
const JVector3D & |
position, |
|
|
const double |
Dmax = std::numeric_limits<double>::max() |
|
) |
| |
|
inline |
Constructor.
The positions and orientations of the modules and the PMTs are offset with respect to given position. Only modules within given distance are accepted.
- Parameters
-
detector | detector |
position | position of vertex |
Dmax | maximal distance [m] |
Definition at line 92 of file JDetectorSubset.hh.
96 for (JDetector::const_iterator i = detector.begin(); i != detector.end(); ++i) {
98 JPosition3D pos(i->getPosition());
102 if (pos.getLength() <= Dmax) {
106 module.sub(position);
108 this->push_back(module);
Data structure for a composite optical module.
The documentation for this class was generated from the following file: