Project
Loading...
Searching...
No Matches
Hit.h
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
14
15
#ifndef ALICEO2_ZDC_HIT_H_
16
#define ALICEO2_ZDC_HIT_H_
17
18
#include "
SimulationDataFormat/BaseHits.h
"
// for BasicXYZEHit
19
#include "
CommonUtils/ShmAllocator.h
"
20
21
namespace
o2
22
{
23
namespace
zdc
24
{
25
26
class
Hit
:
public
o2::BasicXYZEHit
<Float_t, Float_t>
27
{
28
29
public
:
30
// Default constructor
31
Hit
() =
default
;
32
48
Hit
(
int
trackID,
int
parent, Bool_t sFlag,
Float_t
primaryEnergy, Int_t detID, Int_t sectorID,
49
math_utils::Vector3D<float>
pos
,
math_utils::Vector3D<float>
mom,
Float_t
tof,
math_utils::Vector3D<float>
xImpact,
Float_t
energyloss, Int_t nphePMC,
50
Int_t nphePMQ);
51
52
void
setPMCLightYield
(
float
val
) { mNphePMC =
val
; }
53
void
setPMQLightYield
(
float
val
) { mNphePMQ =
val
; }
54
void
setNoNumContributingSteps
(
int
val
) { mNoContributingSteps =
val
; }
55
56
int
getParentID
()
const
{
return
mParentID; }
57
int
getSector
()
const
{
return
mSectorID; }
58
float
getPMCLightYield
()
const
{
return
mNphePMC; }
59
float
getPMQLightYield
()
const
{
return
mNphePMQ; }
60
int
getNumContributingSteps
()
const
{
return
mNoContributingSteps; }
61
bool
getSecFlag
()
const
{
return
mSecFlag; }
62
63
private
:
64
Int_t mParentID;
65
Bool_t mSecFlag;
66
Float_t
mPrimaryEnergy;
67
Int_t mNoContributingSteps = 1;
68
Int_t mSectorID;
69
math_utils::Vector3D<float>
mMomentum;
70
math_utils::Vector3D<float>
mXImpact;
71
Int_t mNphePMC;
72
Int_t mNphePMQ;
73
74
ClassDefNV(
Hit
, 1);
75
};
76
77
inline
Hit::Hit
(
int
trackID,
int
parent, Bool_t sFlag,
Float_t
primaryEnergy, Int_t detID, Int_t sectorID,
78
math_utils::Vector3D<float>
pos
,
math_utils::Vector3D<float>
mom,
Float_t
tof,
math_utils::Vector3D<float>
xImpact,
Float_t
energyloss,
79
Int_t nphePMC, Int_t nphePMQ)
80
:
BasicXYZEHit
(
pos
.X(),
pos
.Y(),
pos
.Z(), tof, energyloss, trackID, detID),
81
mParentID(parent),
82
mSecFlag(sFlag),
83
mPrimaryEnergy(primaryEnergy),
84
mSectorID(sectorID),
85
mMomentum(mom.X(), mom.Y(), mom.Z()),
86
mXImpact(xImpact),
87
mNphePMC(nphePMC),
88
mNphePMQ(nphePMQ)
89
{
90
}
91
}
// namespace zdc
92
}
// namespace o2
93
94
#ifdef USESHM
95
namespace
std
96
{
97
template
<>
98
class
allocator<
o2
::zdc::Hit> :
public
o2::utils::ShmAllocator
<o2::zdc::Hit>
99
{
100
};
101
}
// namespace std
102
103
#endif
104
105
#endif
BaseHits.h
pos
uint16_t pos
Definition
RawData.h:3
ShmAllocator.h
Float_t
ROOT::Math::DisplacementVector3D
Definition
GPUROOTCartesianFwd.h:40
o2::BasicXYZEHit
Definition
BaseHits.h:99
o2::utils::ShmAllocator
Definition
ShmAllocator.h:35
o2::zdc::Hit
Definition
Hit.h:27
o2::zdc::Hit::getPMCLightYield
float getPMCLightYield() const
Definition
Hit.h:58
o2::zdc::Hit::setPMQLightYield
void setPMQLightYield(float val)
Definition
Hit.h:53
o2::zdc::Hit::getSecFlag
bool getSecFlag() const
Definition
Hit.h:61
o2::zdc::Hit::setNoNumContributingSteps
void setNoNumContributingSteps(int val)
Definition
Hit.h:54
o2::zdc::Hit::getPMQLightYield
float getPMQLightYield() const
Definition
Hit.h:59
o2::zdc::Hit::getParentID
int getParentID() const
Definition
Hit.h:56
o2::zdc::Hit::setPMCLightYield
void setPMCLightYield(float val)
Definition
Hit.h:52
o2::zdc::Hit::Hit
Hit()=default
o2::zdc::Hit::getSector
int getSector() const
Definition
Hit.h:57
o2::zdc::Hit::getNumContributingSteps
int getNumContributingSteps() const
Definition
Hit.h:60
val
GLuint GLfloat * val
Definition
glcorearb.h:1582
o2::upgrades_utils::zdc
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
BitstreamReader.h:24
std
Defining DataPointCompositeObject explicitly as copiable.
Definition
CcdbObjectInfo.h:121
DataFormats
Detectors
ZDC
include
DataFormatsZDC
Hit.h
Generated on Fri Aug 22 2025 14:28:57 for Project by
1.9.8