Belle II Software prerelease-10-00-00a
PXDEnergyDepositionEvent.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <framework/datastore/RelationsObject.h>
12#include <algorithm>
13
14namespace Belle2 {
27
28 public:
29
32 m_energyDep(0.0), m_dose(0.0), m_expo(0.0),
33 m_pdg(0), m_layer(0), m_ladder(0), m_sensor(0)
34 {
35 std::fill_n(m_globalPos, 3, 0.0);
36 }
37
51 PXDEnergyDepositionEvent(unsigned short layer, unsigned short ladder, unsigned short sensor,
52 int pdg, float time, float u, float v,
53 const float* globalPos, float energyDep, float dose, float expo):
54 m_time(time), m_u(u), m_v(v), m_energyDep(energyDep), m_dose(dose), m_expo(expo),
55 m_pdg(pdg), m_layer(layer), m_ladder(ladder), m_sensor(sensor)
56 {
57 std::copy_n(globalPos, 3, m_globalPos);
58 }
59
60 float m_globalPos[3];
61 float m_time;
62 float m_u;
63 float m_v;
65 float m_dose;
66 float m_expo;
67 int m_pdg;
68 unsigned short m_layer;
69 unsigned short m_ladder;
70 unsigned short m_sensor;
71
73 };
74
75} // end namespace Belle2
float m_time
time of particle crossing
float m_dose
contribution to dose (in Gy)
PXDEnergyDepositionEvent(unsigned short layer, unsigned short ladder, unsigned short sensor, int pdg, float time, float u, float v, const float *globalPos, float energyDep, float dose, float expo)
Standard constructor.
float m_globalPos[3]
global (x,y,z) of particle crossing
int m_pdg
PDG number of generating particle.
float m_expo
contribution to exposition (J/s)
PXDEnergyDepositionEvent()
default constructor for ROOT
float m_v
local v-coordinate of particle crossing
float m_u
local u-coordinate of particle crossing
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Abstract base class for different kinds of events.