1 #ifndef __JTRIGGER__JHITL1__
2 #define __JTRIGGER__JHITL1__
21 namespace JPP {
using namespace JTRIGGER; }
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);
362 static const struct {
373 return first.
getT() < second.
getT();
double getY() const
Get y position.
int getModuleID() const
Get module identifier.
Data structure for L1 hit.
void transform_back(const JRotation3D &R, const JVector3D &pos)
Transform back hit.
JHitL1(const JDAQModuleIdentifier &id)
Constructor.
double getT(const unsigned int i) const
Get time of hit i.
JHitL1()
Default constructor.
const JPosition3D & getPosition() const
Get position.
Basic data structure for time and time over threshold information of hit.
int getN() const
Get count.
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
Basic data structure for L0 hit.
double getToT() const
Get calibrated time over threshold of hit.
void transform(const JRotation3D &R, const JVector3D &pos)
Transform hit.
Data structure for vector in three dimensions.
do set_variable OUTPUT_DIRECTORY $WORKDIR T
JHitL1(const JHitL0 &hit)
Constructor.
const JPosition3D & getPosition() const
Get position.
double getW() const
Get weight.
then usage $script[distance] fi case set_variable R
double getZ() const
Get z position.
static struct JTRIGGER::JHitL1::@84 compare
Auxiliary data structure for sorting of hits.
Data structure for L0 hit.
const JHitL1 & sort()
Sort L0 hits.
Data structure for position in three dimensions.
const JDAQModuleIdentifier & getModuleIdentifier() const
Get Module identifier.
JHitL1(const JDAQModuleIdentifier &id, T __begin, T __end)
Constructor.
double getX() const
Get x position.
JHitL1 & rotate(const JRotation3D &R)
Rotate hit.
double getToT() const
Get overall time over threshold.
JHitL1 & rotate_back(const JRotation3D &R)
Rotate back hit.
double getT() const
Get time.
JHitL1 & add(const JVector3D &pos)
Add position.
JHitL1 & sub(const JVector3D &pos)
Subtract position.