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
62
private
:
63
Int_t mParentID;
64
Bool_t mSecFlag;
65
Float_t
mPrimaryEnergy;
66
Int_t mNoContributingSteps = 1;
67
Int_t mSectorID;
68
math_utils::Vector3D<float>
mMomentum;
69
math_utils::Vector3D<float>
mXImpact;
70
Int_t mNphePMC;
71
Int_t mNphePMQ;
72
73
ClassDefNV(
Hit
, 1);
74
};
75
76
inline
Hit::Hit
(
int
trackID,
int
parent, Bool_t sFlag,
Float_t
primaryEnergy, Int_t detID, Int_t sectorID,
77
math_utils::Vector3D<float>
pos
,
math_utils::Vector3D<float>
mom,
Float_t
tof,
math_utils::Vector3D<float>
xImpact,
Float_t
energyloss,
78
Int_t nphePMC, Int_t nphePMQ)
79
:
BasicXYZEHit
(
pos
.X(),
pos
.Y(),
pos
.Z(), tof, energyloss, trackID, detID),
80
mParentID(parent),
81
mSecFlag(sFlag),
82
mPrimaryEnergy(primaryEnergy),
83
mSectorID(sectorID),
84
mMomentum(mom.X(), mom.Y(), mom.Z()),
85
mXImpact(xImpact),
86
mNphePMC(nphePMC),
87
mNphePMQ(nphePMQ)
88
{
89
}
90
}
// namespace zdc
91
}
// namespace o2
92
93
#ifdef USESHM
94
namespace
std
95
{
96
template
<>
97
class
allocator<
o2
::zdc::Hit> :
public
o2::utils::ShmAllocator
<o2::zdc::Hit>
98
{
99
};
100
}
// namespace std
101
102
#endif
103
104
#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::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 Tue Feb 25 2025 17:02:53 for Project by
1.9.8