Project
Loading...
Searching...
No Matches
Hit.cxx
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
16
17#include "MIDSimulation/Hit.h"
18
20
21namespace o2
22{
23namespace mid
24{
25Hit::Hit(int trackId, short deId, math_utils::Point3D<float> entrancePoint, math_utils::Point3D<float> exitPoint,
26 float eloss, float length, float tof) : o2::BasicXYZEHit<float>(entrancePoint.x(), entrancePoint.y(), entrancePoint.z(), tof, eloss, trackId, deId), mLength{length}, mExitPoint(exitPoint)
27{
28}
29
31{
33 math_utils::Point3D<float> middle(0.5 * (entrancePoint().x() + exitPoint().x()), 0.5 * (entrancePoint().y() + exitPoint().y()), 0.5 * (entrancePoint().z() + exitPoint().z()));
34 return std::move(middle);
35}
36
37} // namespace mid
38} // namespace o2
ClassImp(o2::fv0::Hit)
Hit for MID.
Hit(int trackId=0, short deId=0, math_utils::Point3D< float > entrancePoint={}, math_utils::Point3D< float > exitPoint={}, float eloss=0.0, float length=0.0, float tof=0.0)
Definition Hit.cxx:25
math_utils::Point3D< float > entrancePoint() const
Definition Hit.h:36
math_utils::Point3D< float > exitPoint() const
Definition Hit.h:37
math_utils::Point3D< float > middlePoint() const
Definition Hit.cxx:30
GLint GLenum GLint x
Definition glcorearb.h:403
GLint y
Definition glcorearb.h:270
GLuint GLsizei GLsizei * length
Definition glcorearb.h:790
GLdouble GLdouble GLdouble z
Definition glcorearb.h:843
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...