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 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;
71 Int_t mNphePMC;
72 Int_t mNphePMQ;
73
74 ClassDefNV(Hit, 1);
75};
76
77inline Hit::Hit(int trackID, int parent, Bool_t sFlag, Float_t primaryEnergy, Int_t detID, Int_t sectorID,
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
95namespace std
96{
97template <>
98class allocator<o2::zdc::Hit> : public o2::utils::ShmAllocator<o2::zdc::Hit>
99{
100};
101} // namespace std
102
103#endif
104
105#endif
uint16_t pos
Definition RawData.h:3
float getPMCLightYield() const
Definition Hit.h:58
void setPMQLightYield(float val)
Definition Hit.h:53
bool getSecFlag() const
Definition Hit.h:61
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.