|
Jpp
|
Data frame for calibrated hits of one PMT. More...
#include <JFrame.hh>
Public Types | |
| typedef std::vector< JElement_t, JAllocator_t > | container_type |
| typedef JElement_t | value_type |
| typedef JMatch< value_type > | match_type |
| typedef container_type::iterator | iterator |
| typedef container_type::const_iterator | const_iterator |
| typedef container_type::reverse_iterator | reverse_iterator |
| typedef container_type::const_reverse_iterator | const_reverse_iterator |
Public Member Functions | |
| JFrame () | |
| Default constructor. More... | |
| JFrame (const JDAQChronometer &chronometer, const JDAQPMTIdentifier &id, const JAxis3D &axis, const JCalibration &calibration) | |
| Constructor. More... | |
| void | push_back (const JDAQHit &hit) |
| Append DAQ hit. More... | |
| void | putEndMarker () |
| Append end marker to data. More... | |
| const_iterator | u_begin () const |
| iterator without end marker More... | |
| const_iterator | u_end () const |
| iterator without end marker More... | |
| iterator | u_begin () |
| iterator without end marker More... | |
| iterator | u_end () |
| iterator without end marker More... | |
| const_reverse_iterator | u_rbegin () const |
| iterator without end marker More... | |
| const_reverse_iterator | u_rend () const |
| iterator without end marker More... | |
| reverse_iterator | u_rbegin () |
| iterator without end marker More... | |
| reverse_iterator | u_rend () |
| iterator without end marker More... | |
| size_t | u_size () const |
| size without end marker More... | |
| void | reset () |
| Reset. More... | |
| void | applyHighRateVeto (const double rate_Hz) |
| Apply high-rate veto. More... | |
| void | join (const match_type &match) |
| Join consecutive hits when matched according given criterion. More... | |
| void | filter (const match_type &match) |
| Filter-out consecutive hits when matched according given criterion. More... | |
| const JPMTHeader & | getPMTHeader () const |
| Get PMT header. More... | |
| void | setPMTHeader (const JPMTHeader &header) |
| Set PMT header. More... | |
| const JDAQChronometer & | getDAQChronometer () const |
| Get DAQ chronometer. More... | |
| void | setDAQChronometer (const JDAQChronometer &chronometer) |
| Set DAQ chronometer. More... | |
| int | getDetectorID () const |
| Get detector identifier. More... | |
| int | getRunNumber () const |
| Get run number. More... | |
| int | getFrameIndex () const |
| Get frame index. More... | |
| JDAQUTCExtended | getTimesliceStart () const |
| Get start of timeslice. More... | |
| void | setRunNumber (const int run) |
| Set run number. More... | |
| void | setFrameIndex (const int frame_index) |
| Set frame index. More... | |
| void | setTimesliceStart (const JDAQUTCExtended ×lice_start) |
| Set timeslice start time. More... | |
| ClassDef (JDAQChronometer, 3) | |
| const JDAQPMTIdentifier & | getPMTIdentifier () const |
| Get PMT identifier. More... | |
| void | setPMTIdentifier (const JDAQPMTIdentifier &pmt) |
| Set PMT identifier. More... | |
| int | getPMTAddress () const |
| Get PMT identifier. More... | |
| ClassDefNV (JDAQPMTIdentifier, 1) | |
| ClassDefNV (JDAQModuleIdentifier, 1) | |
| const JDAQModuleIdentifier & | getModuleIdentifier () const |
| Get Module identifier. More... | |
| void | setModuleIdentifier (const JDAQModuleIdentifier &module) |
| Set Module identifier. More... | |
| int | getModuleID () const |
| Get module identifier. More... | |
| const JAxis3D & | getAxis () const |
| Get axis. More... | |
| void | setAxis (const JAxis3D &axis) |
| Set axis. More... | |
| JAxis3D & | negate () |
| Negate axis. More... | |
| void | move (const double step) |
| Move vertex along this axis. More... | |
| double | getIntersection (const JVector3D &pos) const |
| Get longitudinal position along axis of position of closest approach with given position. More... | |
| double | getIntersection (const JAxis3D &axis, const double precision=1.0e-8) const |
| Get longitudinal position along axis of position of closest approach with given axis. More... | |
| double | getDistanceSquared (const JVector3D &pos) const |
| Get distance squared. More... | |
| double | getDistance (const JVector3D &pos) const |
| Get distance. More... | |
| JAxis3D & | rotate (const JRotation3D &R) |
| Rotate axis. More... | |
| JAxis3D & | rotate (const JRotation3X &R) |
| Rotate around X-axis. More... | |
| JAxis3D & | rotate (const JRotation3Y &R) |
| Rotate around Y-axis. More... | |
| JAxis3D & | rotate (const JRotation3Z &R) |
| Rotate around Z-axis. More... | |
| JAxis3D & | rotate (const JQuaternion3D &Q) |
| Rotate axis. More... | |
| JAxis3D & | rotate_back (const JRotation3D &R) |
| Rotate back axis. More... | |
| JAxis3D & | rotate_back (const JRotation3X &R) |
| Rotate back around X-axis. More... | |
| JAxis3D & | rotate_back (const JRotation3Y &R) |
| Rotate back around Y-axis. More... | |
| JAxis3D & | rotate_back (const JRotation3Z &R) |
| Rotate back around Z-axis. More... | |
| JPosition3D & | rotate_back (const JQuaternion3D &Q) |
| Rotate back. More... | |
| JDirection3D & | rotate_back (const JQuaternion3D &Q) |
| Rotate back. More... | |
| void | transform (const JAxis3D &axis) |
| Transform axis to reference frame of given axis. More... | |
| void | transform (const JRotation3D &R, const JVector3D &pos) |
| Transform axis. More... | |
| void | transform (const JTransformation3D &T) |
| Transform axis. More... | |
| JVector3D & | transform (const JMatrix3D &T) |
| Transform. More... | |
| JVector3D & | transform (const JMatrix3D &T) |
| Transform. More... | |
| JDirection3D & | transform (const JMatrix3D &T) |
| Transform. More... | |
| void | transform_back (const JRotation3D &R, const JVector3D &pos) |
| Transform back axis. More... | |
| void | transform_back (const JTransformation3D &T) |
| Transform back axis. More... | |
| double | getDot (const JAngle3D &angle) const |
| Get dot product. More... | |
| double | getDot (const JVector3D &pos) const |
| Get dot product. More... | |
| double | getDot (const JVersor3Z &dir) const |
| Get dot product. More... | |
| double | getDot (const JAngle3D &angle) const |
| Get dot product. More... | |
| double | getDot (const JVersor3D &dir) const |
| Get dot product. More... | |
| double | getDot (const JVersor3Z &dir) const |
| Get dot product. More... | |
| double | getDot (const JVector3D &vector) const |
| Get dot product. More... | |
| double | getDot (const JAngle3D &angle) const |
| Get dot product. More... | |
| double | getDot (const JVector3D &pos) const |
| Get dot product. More... | |
| double | getDot (const JVersor3Z &dir) const |
| Get dot product. More... | |
| double | getDot (const JVersor3D &versor) const |
| Get dot product. More... | |
| const JPosition3D & | getPosition () const |
| Get position. More... | |
| JPosition3D & | getPosition () |
| Get position. More... | |
| void | setPosition (const JVector3D &pos) |
| Set position. More... | |
| operator JAngle3D () const | |
| Type conversion operator. More... | |
| operator JAngle3D () const | |
| Type conversion operator. More... | |
| operator JVersor3D () const | |
| Type conversion operator. More... | |
| operator JVector2D () const | |
| Type conversion operator. More... | |
| double | getX () const |
| Get x position. More... | |
| double | getY () const |
| Get y position. More... | |
| double | getZ () const |
| Get z position. More... | |
| JVector3D & | add (const JVector3D &vector) |
| Add vector. More... | |
| JVector3D & | sub (const JVector3D &vector) |
| Subtract vector. More... | |
| JVector3D & | mul (const double factor) |
| Scale vector. More... | |
| JVector3D & | mul (const JSecond_t &object) |
| Multiply with object. More... | |
| JVersor3D & | mul (const JSecond_t &object) |
| Multiply with object. More... | |
| JVector3D & | div (const double factor) |
| Scale vector. More... | |
| bool | equals (const JVector3D &vector, const double precision=std::numeric_limits< double >::min()) const |
| Check equality. More... | |
| bool | equals (const JVersor3D &versor, const double precision=std::numeric_limits< double >::min()) const |
| Check equality. More... | |
| double | getLengthSquared () const |
| Get length squared. More... | |
| double | getLength () const |
| Get length. More... | |
| JVector3D & | cross (const JVector3D &first, const JVector3D &second) |
| Get cross product. More... | |
| const JDirection3D & | getDirection () const |
| Get direction. More... | |
| JDirection3D & | getDirection () |
| Get direction. More... | |
| void | setDirection (const JDirection3D &dir) |
| Set direction. More... | |
| operator JVector3D () const | |
| Type conversion operator. More... | |
| double | getDX () const |
| Get x direction. More... | |
| double | getDY () const |
| Get y direction. More... | |
| double | getDZ () const |
| Get z direction. More... | |
| double | getTheta () const |
| Get theta angle. More... | |
| double | getPhi () const |
| Get phi angle. More... | |
| JVersor3D & | normalise () |
| Normalise versor. More... | |
| const JCalibration & | getCalibration () const |
| Get calibration. More... | |
| void | setCalibration (const JCalibration &cal) |
| Set calibration. More... | |
| double | getT0 () const |
| Get time offset. More... | |
| void | setT0 (const double t0) |
| Set time offset. More... | |
| void | addT0 (const double t0) |
| Add time offset. More... | |
| void | subT0 (const double t0) |
| Subtract time offset. More... | |
Static Public Member Functions | |
| static bool | compare (const JDAQPMTIdentifier &first, const JDAQPMTIdentifier &second) |
| Compare PMT identifiers. More... | |
Protected Attributes | |
| int | detector_id |
| int | run |
| int | frame_index |
| JDAQUTCExtended | timeslice_start |
| int | address |
| int | id |
| double | __x |
| double | __y |
| double | __z |
| double | __dx |
| double | __dy |
| double | __dz |
| double | t0 |
Data frame for calibrated hits of one PMT.
Note that the calibration is applied on the fly in the method JFrame::push_back.
| typedef std::vector<JElement_t, JAllocator_t> JTRIGGER::JFrame< JElement_t, JAllocator_t >::container_type |
| typedef JElement_t JTRIGGER::JFrame< JElement_t, JAllocator_t >::value_type |
| typedef JMatch<value_type> JTRIGGER::JFrame< JElement_t, JAllocator_t >::match_type |
| typedef container_type::iterator JTRIGGER::JFrame< JElement_t, JAllocator_t >::iterator |
| typedef container_type::const_iterator JTRIGGER::JFrame< JElement_t, JAllocator_t >::const_iterator |
| typedef container_type::reverse_iterator JTRIGGER::JFrame< JElement_t, JAllocator_t >::reverse_iterator |
| typedef container_type::const_reverse_iterator JTRIGGER::JFrame< JElement_t, JAllocator_t >::const_reverse_iterator |
|
inline |
|
inline |
|
inline |
Append DAQ hit.
The time calibration is applied before the hit is appended.
| hit | DAQ hit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Reset.
The contents of this frame are reduced to a single end marker.
|
inline |
|
inline |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Set DAQ chronometer.
| chronometer | DAQ chronometer |
Definition at line 99 of file JDAQChronometer.hh.
|
inlineinherited |
Get detector identifier.
Definition at line 110 of file JDAQChronometer.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Set frame index.
| frame_index | frame index |
Definition at line 166 of file JDAQChronometer.hh.
|
inlineinherited |
Set timeslice start time.
| timeslice_start | timeslice start time |
Definition at line 177 of file JDAQChronometer.hh.
|
inherited |
|
inlineinherited |
|
inlineinherited |
Set PMT identifier.
| pmt | PMT identifier |
Definition at line 67 of file JDAQPMTIdentifier.hh.
|
inlineinherited |
|
inlinestaticinherited |
Compare PMT identifiers.
The comparison is applied to the module identifer and to the PMT address. If the module identifier or PMT address is -1, the corresponding comparison evaluates to true.
| first | PMT identifier |
| second | PMT identifier |
Definition at line 126 of file JDAQPMTIdentifier.hh.
|
inherited |
|
inherited |
|
inlineinherited |
Get Module identifier.
Definition at line 50 of file JDAQModuleIdentifier.hh.
|
inlineinherited |
Set Module identifier.
| module | Module identifier |
Definition at line 61 of file JDAQModuleIdentifier.hh.
|
inlineinherited |
Get module identifier.
Definition at line 72 of file JDAQModuleIdentifier.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Get longitudinal position along axis of position of closest approach with given position.
| pos | position |
Definition at line 157 of file JAxis3D.hh.
|
inlineinherited |
Get longitudinal position along axis of position of closest approach with given axis.
If the axes are paralel, this position corresponds to the vertex of the given axis.
| axis | axis |
| precision | precision |
Definition at line 175 of file JAxis3D.hh.
|
inlineinherited |
Get distance squared.
| pos | position |
Definition at line 206 of file JAxis3D.hh.
|
inlineinherited |
|
inlineinherited |
Rotate axis.
| R | rotation matrix |
Definition at line 236 of file JAxis3D.hh.
|
inlineinherited |
Rotate around X-axis.
| R | rotation matrix |
Definition at line 266 of file JAxis3D.hh.
|
inlineinherited |
Rotate around Y-axis.
| R | rotation matrix |
Definition at line 296 of file JAxis3D.hh.
|
inlineinherited |
Rotate around Z-axis.
| R | rotation matrix |
Definition at line 326 of file JAxis3D.hh.
|
inlineinherited |
|
inlineinherited |
Rotate back axis.
| R | rotation matrix |
Definition at line 251 of file JAxis3D.hh.
|
inlineinherited |
Rotate back around X-axis.
| R | rotation matrix |
Definition at line 281 of file JAxis3D.hh.
|
inlineinherited |
Rotate back around Y-axis.
| R | rotation matrix |
Definition at line 311 of file JAxis3D.hh.
|
inlineinherited |
Rotate back around Z-axis.
| R | rotation matrix |
Definition at line 341 of file JAxis3D.hh.
|
inlineinherited |
Rotate back.
| Q | quaternion |
Definition at line 311 of file JPosition3D.hh.
|
inlineinherited |
Rotate back.
| Q | quaternion |
Definition at line 319 of file JDirection3D.hh.
|
inlineinherited |
Transform axis to reference frame of given axis.
| axis | axis |
Definition at line 370 of file JAxis3D.hh.
|
inlineinherited |
Transform axis.
The final position and direction are obtained as follows:
R);pos);| R | rotation matrix |
| pos | position of origin |
Definition at line 390 of file JAxis3D.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Transform back axis.
The final position and direction are obtained as follows:
| R | rotation matrix |
| pos | position of origin (before rotation) |
Definition at line 426 of file JAxis3D.hh.
|
inlineinherited |
|
inlineinherited |
Get dot product.
| angle | angle |
Definition at line 333 of file JDirection3D.hh.
|
inlineinherited |
Get dot product.
| pos | position |
Definition at line 348 of file JDirection3D.hh.
|
inlineinherited |
Get dot product.
| dir | direction |
Definition at line 363 of file JDirection3D.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Scale vector.
| factor | multiplication factor |
Definition at line 173 of file JVector3D.hh.
|
inlineinherited |
Multiply with object.
| object | object |
Definition at line 273 of file JMath.hh.
|
inlineinherited |
Multiply with object.
| object | object |
Definition at line 273 of file JMath.hh.
|
inlineinherited |
Scale vector.
| factor | division factor |
Definition at line 189 of file JVector3D.hh.
|
inlineinherited |
Check equality.
| vector | vector |
| precision | precision |
Definition at line 220 of file JVector3D.hh.
|
inlineinherited |
Check equality.
| versor | versor |
| precision | precision |
Definition at line 78 of file JVersor3D.hh.
|
inlineinherited |
|
inlineinherited |
|
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 298 of file JVector3D.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Normalise versor.
This operation may set the result to the unit z-vector.
Definition at line 168 of file JVersor3D.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Set time offset.
| t0 | time offset [ns] |
Definition at line 94 of file JDetector/JCalibration.hh.
|
inlineinherited |
Add time offset.
| t0 | time offset [ns] |
Definition at line 105 of file JDetector/JCalibration.hh.
|
inlineinherited |
Subtract time offset.
| t0 | time offset [ns] |
Definition at line 116 of file JDetector/JCalibration.hh.
|
protectedinherited |
Definition at line 187 of file JDAQChronometer.hh.
|
protectedinherited |
Definition at line 188 of file JDAQChronometer.hh.
|
protectedinherited |
Definition at line 189 of file JDAQChronometer.hh.
|
protectedinherited |
Definition at line 190 of file JDAQChronometer.hh.
|
protectedinherited |
Definition at line 141 of file JDAQPMTIdentifier.hh.
|
protectedinherited |
Definition at line 112 of file JDAQModuleIdentifier.hh.
|
protectedinherited |
Definition at line 309 of file JVector3D.hh.
|
protectedinherited |
Definition at line 310 of file JVector3D.hh.
|
protectedinherited |
Definition at line 311 of file JVector3D.hh.
|
protectedinherited |
Definition at line 182 of file JVersor3D.hh.
|
protectedinherited |
Definition at line 183 of file JVersor3D.hh.
|
protectedinherited |
Definition at line 184 of file JVersor3D.hh.
|
protectedinherited |
Definition at line 183 of file JDetector/JCalibration.hh.
1.8.16