Belle II Software  release-08-01-10
SVDEnergyDepositionEvent.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 #ifndef SVD_DATAOBJECTS_SVDENERGYDEPOSITIONEVENT_H
11 #define SVD_DATAOBJECTS_SVDENERGYDEPOSITIONEVENT_H
12 
13 #include <framework/datastore/RelationsObject.h>
14 #include <algorithm>
15 
16 namespace Belle2 {
29 
30  public:
31 
34  m_pdg(0), m_time(0.0), m_u(0.0), m_v(0.0),
35  m_energyDep(0.0), m_dose(0.0), m_expo(0.0)
36  {
37  std::fill_n(m_globalPos, 3, 0.0);
38  }
39 
53  SVDEnergyDepositionEvent(unsigned short layer, unsigned short ladder, unsigned short sensor,
54  int pdg, float time, float u, float v,
55  const float* globalPos, float energyDep, float dose, float expo):
56  m_layer(layer), m_ladder(ladder), m_sensor(sensor),
57  m_pdg(pdg), m_time(time), m_u(u), m_v(v), m_energyDep(energyDep),
58  m_dose(dose), m_expo(expo)
59  {
60  std::copy_n(globalPos, 3, m_globalPos);
61  }
62 
63  unsigned short m_layer;
64  unsigned short m_ladder;
65  unsigned short m_sensor;
66  int m_pdg;
67  float m_time;
68  float m_u;
69  float m_v;
70  float m_globalPos[3];
71  float m_energyDep;
72  float m_dose;
73  float m_expo;
76  };
78 } // end namespace Belle2
79 
80 #endif
Defines interface for accessing relations of objects in StoreArray.
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
Class SVDEnergyDepositionEvent: SVDSimHit data container for background studies.
float m_time
time of particle crossing
SVDEnergyDepositionEvent()
default constructor for ROOT
unsigned short m_sensor
sensor number
SVDEnergyDepositionEvent(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_dose
contribution to dose (in Gy)
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)
unsigned short m_ladder
ladder number
float m_v
local v-coordinate of particle crossing
float m_u
local u-coordinate of particle crossing
Abstract base class for different kinds of events.