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
19
ClassImp
(
o2::mid::Hit
);
20
21
namespace
o2
22
{
23
namespace
mid
24
{
25
Hit::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
30
math_utils::Point3D<float>
Hit::middlePoint
()
const
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
ClassImp(o2::fv0::Hit)
Hit.h
Hit for MID.
ROOT::Math::PositionVector3D
Definition
GPUROOTCartesianFwd.h:36
int
o2::BasicXYZEHit
Definition
BaseHits.h:99
o2::mid::Hit
Definition
Hit.h:30
o2::mid::Hit::Hit
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
o2::mid::Hit::entrancePoint
math_utils::Point3D< float > entrancePoint() const
Definition
Hit.h:36
o2::mid::Hit::exitPoint
math_utils::Point3D< float > exitPoint() const
Definition
Hit.h:37
o2::mid::Hit::middlePoint
math_utils::Point3D< float > middlePoint() const
Definition
Hit.cxx:30
x
GLint GLenum GLint x
Definition
glcorearb.h:403
y
GLint y
Definition
glcorearb.h:270
length
GLuint GLsizei GLsizei * length
Definition
glcorearb.h:790
z
GLdouble GLdouble GLdouble z
Definition
glcorearb.h:843
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
BitstreamReader.h:24
Detectors
MUON
MID
Simulation
src
Hit.cxx
Generated on Tue Feb 25 2025 23:16:10 for Project by
1.9.8