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
20
21namespace o2
22{
23namespace zdc
24{
25
26class 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,
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;
70 Int_t mNphePMC;
71 Int_t mNphePMQ;
72
73 ClassDefNV(Hit, 1);
74};
75
76inline Hit::Hit(int trackID, int parent, Bool_t sFlag, Float_t primaryEnergy, Int_t detID, Int_t sectorID,
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
94namespace std
95{
96template <>
97class allocator<o2::zdc::Hit> : public o2::utils::ShmAllocator<o2::zdc::Hit>
98{
99};
100} // namespace std
101
102#endif
103
104#endif
uint16_t pos
Definition RawData.h:3
float getPMCLightYield() const
Definition Hit.h:58
void setPMQLightYield(float val)
Definition Hit.h:53
void setNoNumContributingSteps(int val)
Definition Hit.h:54
float getPMQLightYield() const
Definition Hit.h:59
int getParentID() const
Definition Hit.h:56
void setPMCLightYield(float val)
Definition Hit.h:52
Hit()=default
int getSector() const
Definition Hit.h:57
int getNumContributingSteps() const
Definition Hit.h:60
GLuint GLfloat * val
Definition glcorearb.h:1582
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Defining DataPointCompositeObject explicitly as copiable.