Belle II Software development
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_pdg(0), m_time(0.0), m_u(0.0), m_v(0.0),
33 m_energyDep(0.0), m_dose(0.0), m_expo(0.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_layer(layer), m_ladder(ladder), m_sensor(sensor),
55 m_pdg(pdg), m_time(time), m_u(u), m_v(v), m_energyDep(energyDep),
56 m_dose(dose), m_expo(expo)
57 {
58 std::copy_n(globalPos, 3, m_globalPos);
59 }
60
61 unsigned short m_layer;
62 unsigned short m_ladder;
63 unsigned short m_sensor;
64 int m_pdg;
65 float m_time;
66 float m_u;
67 float m_v;
68 float m_globalPos[3];
70 float m_dose;
71 float m_expo;
74 };
76} // end namespace Belle2
Class PXDEnergyDepositionEvent: PXDSimHit data container for background studies.
float m_time
time of particle crossing
unsigned short m_sensor
sensor number
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
unsigned short m_ladder
ladder number
float m_v
local v-coordinate of particle crossing
float m_u
local u-coordinate of particle crossing
Defines interface for accessing relations of objects in StoreArray.
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
Abstract base class for different kinds of events.