1#ifndef __JTRIGGER__JHITL1__
2#define __JTRIGGER__JHITL1__
83 for (T i = __begin; i != __end; ++i) {
99 std::sort(this->begin(), this->end(), std::less<JHit>());
135 return this->begin()->getX();
147 return this->begin()->getY();
159 return this->begin()->getZ();
170 inline double getT(
const unsigned int i)
const
172 static const double t0 = 1.29;
174 return at(i).getT() - t0;
224 if (this->size() >= t0.size())
225 return this->begin()->getT() - t0.back();
227 return this->begin()->getT() - t0[this->size()];
238 return JHit(this->begin(), this->end()).
getToT();
273 for (
iterator i = this->begin(); i != this->end(); ++i) {
289 for (
iterator i = this->begin(); i != this->end(); ++i) {
305 for (
iterator i = this->begin(); i != this->end(); ++i) {
321 for (
iterator i = this->begin(); i != this->end(); ++i) {
338 for (
iterator i = this->begin(); i != this->end(); ++i) {
339 i->transform(R, pos);
353 for (
iterator i = this->begin(); i != this->end(); ++i) {
354 i->transform_back(R, pos);
373 return first.
getT() < second.
getT();
Basic data structure for L0 hit.
Basic data structure for time and time over threshold information of hit.
Data structure for position in three dimensions.
const JPosition3D & getPosition() const
Get position.
Data structure for vector in three dimensions.
Data structure for L0 hit.
Data structure for L1 hit.
JHitL1 & rotate_back(const JRotation3D &R)
Rotate back hit.
double getToT() const
Get overall time over threshold.
const JPosition3D & getPosition() const
Get position.
JHitL1(const JHitL0 &hit)
Constructor.
double getT() const
Get time.
double getZ() const
Get z position.
JHitL1(const JDAQModuleIdentifier &id, T __begin, T __end)
Constructor.
double getW() const
Get weight.
JHitL1(const JDAQModuleIdentifier &id)
Constructor.
double getY() const
Get y position.
static const struct JTRIGGER::JHitL1::compare compare
JHitL1 & sub(const JVector3D &pos)
Subtract position.
JHitL1()
Default constructor.
void transform_back(const JRotation3D &R, const JVector3D &pos)
Transform back hit.
double getT(const unsigned int i) const
Get time of hit i.
JHitL1 & add(const JVector3D &pos)
Add position.
void transform(const JRotation3D &R, const JVector3D &pos)
Transform hit.
int getN() const
Get count.
const JHitL1 & sort()
Sort L0 hits.
double getX() const
Get x position.
JHitL1 & rotate(const JRotation3D &R)
Rotate hit.
double getToT() const
Get calibrated time over threshold of hit.
int getModuleID() const
Get module identifier.
const JDAQModuleIdentifier & getModuleIdentifier() const
Get Module identifier.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary classes and methods for triggering.
Auxiliary data structure for sorting of hits.
bool operator()(const JHitL1 &first, const JHitL1 &second) const
Compare hits by module identifier and time.