Belle II Software development
SADMetaHit.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 <simulation/dataobjects/SimHitBase.h>
12
13namespace Belle2 {
25 class SADMetaHit : public SimHitBase {
26 public:
27
28
29
30
38 SADMetaHit(double inputSAD_ssraw, double inputSAD_sraw, double inputSAD_ss, double inputSAD_s,
39 double inputSAD_Lss, int inputSAD_nturn,
40 double inputSAD_x, double inputSAD_y, double inputSAD_px, double inputSAD_py, double inputSAD_xraw, double inputSAD_yraw,
41 double inputSAD_r, double inputSAD_rr, double inputSAD_dp_over_p0, double inputSAD_E, double inputSAD_rate, double inputSAD_watt,
42 int inputSAD_ring, int inputSAD_ring_section):
43 m_inputSAD_ssraw(inputSAD_ssraw), m_inputSAD_sraw(inputSAD_sraw), m_inputSAD_ss(inputSAD_ss), m_inputSAD_s(inputSAD_s),
44 m_inputSAD_Lss(inputSAD_Lss), m_inputSAD_nturn(inputSAD_nturn),
45 m_inputSAD_x(inputSAD_x), m_inputSAD_y(inputSAD_y), m_inputSAD_px(inputSAD_px), m_inputSAD_py(inputSAD_py),
46 m_inputSAD_xraw(inputSAD_xraw), m_inputSAD_yraw(inputSAD_yraw),
47 m_inputSAD_r(inputSAD_r), m_inputSAD_rr(inputSAD_rr), m_inputSAD_dp_over_p0(inputSAD_dp_over_p0), m_inputSAD_E(inputSAD_E),
48 m_inputSAD_rate(inputSAD_rate), m_inputSAD_watt(inputSAD_watt), m_inputSAD_ring(inputSAD_ring),
49 m_inputSAD_ring_section(inputSAD_ring_section)
50 {
51 }
52
54 double getssraw() const { return m_inputSAD_ssraw; }
56 double getsraw() const { return m_inputSAD_sraw; }
58 double getss() const { return m_inputSAD_ss; }
60 double gets() const { return m_inputSAD_s; }
62 double getLss() const { return m_inputSAD_Lss; }
64 int getn_turn() const { return m_inputSAD_nturn; }
66 double getx() const { return m_inputSAD_x; }
68 double gety() const { return m_inputSAD_y; }
70 double getpx() const { return m_inputSAD_px; }
72 double getpy() const { return m_inputSAD_py; }
74 double getxraw() const { return m_inputSAD_xraw; }
76 double getyraw() const { return m_inputSAD_yraw; }
78 double getr() const { return m_inputSAD_r; }
80 double getrr() const { return m_inputSAD_rr; }
82 double getdp_over_p0() const { return m_inputSAD_dp_over_p0; }
84 double getE() const { return m_inputSAD_E; }
86 double getrate() const { return m_inputSAD_rate; }
88 double getwatt() const { return m_inputSAD_watt; }
90 int getring() const { return m_inputSAD_ring; }
93
94 private:
95
136
138 };
139
141} // end namespace Belle2
142
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
ClassSADMetaHit - digitization simulated metahit for the SAD detector.
Definition: SADMetaHit.h:25
double getrr() const
Return sqrt(x*x+y*y) [m]before matching onto beam pipe inner surface.
Definition: SADMetaHit.h:80
double gety() const
Return y-coordinate of the lost particle
Definition: SADMetaHit.h:68
double getssraw() const
Return scattered position [m].
Definition: SADMetaHit.h:54
SADMetaHit(double inputSAD_ssraw, double inputSAD_sraw, double inputSAD_ss, double inputSAD_s, double inputSAD_Lss, int inputSAD_nturn, double inputSAD_x, double inputSAD_y, double inputSAD_px, double inputSAD_py, double inputSAD_xraw, double inputSAD_yraw, double inputSAD_r, double inputSAD_rr, double inputSAD_dp_over_p0, double inputSAD_E, double inputSAD_rate, double inputSAD_watt, int inputSAD_ring, int inputSAD_ring_section)
Meta hit store array.
Definition: SADMetaHit.h:38
double getyraw() const
Return x at lost position [m] before matching onto beam pipe inner surface.
Definition: SADMetaHit.h:76
double m_inputSAD_x
Return x-coordinate of the lost particle.
Definition: SADMetaHit.h:109
double m_inputSAD_ssraw
Return scattered position [m].
Definition: SADMetaHit.h:97
double getss() const
Return scattered position (|s|<Ltot/2) [m].
Definition: SADMetaHit.h:58
int getring() const
Return ring HER = 1 or LER = 2.
Definition: SADMetaHit.h:90
double getx() const
Return x-coordinate of the lost particle.
Definition: SADMetaHit.h:66
int m_inputSAD_ring
Return ring HER = 1 or LER = 2.
Definition: SADMetaHit.h:133
double m_inputSAD_r
Return sqrt(x*x+y*y) [m].
Definition: SADMetaHit.h:121
double getLss() const
Return length of element in which scattered [m].
Definition: SADMetaHit.h:62
double getpy() const
Return momentum y-coordinate of the lost particle.
Definition: SADMetaHit.h:72
double m_inputSAD_rr
Return sqrt(x*x+y*y) [m] at lost position [m] before matching onto beam pipe inner surface.
Definition: SADMetaHit.h:123
double getrate() const
Return loss rate [Hz].
Definition: SADMetaHit.h:86
double getr() const
Return sqrt(x*x+y*y) [m].
Definition: SADMetaHit.h:78
double m_inputSAD_watt
Return watt loss [Hz].
Definition: SADMetaHit.h:131
double getwatt() const
Return loss wattage [W].
Definition: SADMetaHit.h:88
SADMetaHit()
default constructor for ROOT
Definition: SADMetaHit.h:32
int m_inputSAD_ring_section
Return section of ring where the scattering occures.
Definition: SADMetaHit.h:135
double m_inputSAD_E
Return energy loss.
Definition: SADMetaHit.h:127
double m_inputSAD_yraw
Return y at lost position [m] before matching onto beam pipe inner surface.
Definition: SADMetaHit.h:119
int getring_section() const
Return section of ring where the scattering occures.
Definition: SADMetaHit.h:92
double getsraw() const
Return lost position [m].
Definition: SADMetaHit.h:56
double m_inputSAD_dp_over_p0
Return dp over p0.
Definition: SADMetaHit.h:125
double m_inputSAD_xraw
Return x at lost position [m] before matching onto beam pipe inner surface.
Definition: SADMetaHit.h:117
double m_inputSAD_y
Return y-coordinate of the lost particle.
Definition: SADMetaHit.h:111
double m_inputSAD_sraw
Return lost position [m].
Definition: SADMetaHit.h:99
int m_inputSAD_nturn
Return number of turns from scattered to lost.
Definition: SADMetaHit.h:107
double m_inputSAD_Lss
Return length of element in which scattered [m].
Definition: SADMetaHit.h:105
double getdp_over_p0() const
Return momentum deviation of the lost particle
Definition: SADMetaHit.h:82
double getE() const
Return energy loss.
Definition: SADMetaHit.h:84
double m_inputSAD_rate
Return loss rate [Hz].
Definition: SADMetaHit.h:129
double m_inputSAD_px
Return momentum x-coordinate of the lost particle
Definition: SADMetaHit.h:113
double m_inputSAD_py
Return momentum y-coordinate of the lost particle.
Definition: SADMetaHit.h:115
double m_inputSAD_s
Return lost position (|s|<Ltot/2) [m].
Definition: SADMetaHit.h:103
double m_inputSAD_ss
Return scattered position (|s|<Ltot/2) [m].
Definition: SADMetaHit.h:101
double getpx() const
Return momentum x-coordinate of the lost particle.
Definition: SADMetaHit.h:70
double gets() const
Return lost position (|s|<Ltot/2) [m].
Definition: SADMetaHit.h:60
int getn_turn() const
Return number of turns from scattered to lost.
Definition: SADMetaHit.h:64
double getxraw() const
Return x at lost position [m] before matching onto beam pipe inner surface.
Definition: SADMetaHit.h:74
Class SimHitBase - A common base for subdetector SimHits.
Definition: SimHitBase.h:28
Abstract base class for different kinds of events.