Belle II Software  release-08-01-10
CsiHit.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 #ifndef CSIHIT_H
10 #define CSIHIT_H
11 
12 #include <simulation/dataobjects/SimHitBase.h>
13 
14 namespace Belle2 {
26  class CsiHit : public SimHitBase {
27  public:
30  {
31  m_CellId = 0;
32  m_Edep = 0;
33  m_TimeAve = 0;
34  m_TimeVar = 0;
35  ;
36  }
37 
40  int CellId,
41  float Edep,
42  float TimeAve,
43  float TimeVar
44  ): SimHitBase()
45  {
46  m_CellId = CellId;
47  m_Edep = Edep;
48  m_TimeAve = TimeAve;
49  m_TimeVar = TimeVar;
50  }
51 
52 
55  void setCellId(int CellId) { m_CellId = CellId; }
56 
59  void setEnergyDep(double Edep) { m_Edep = (float) Edep; }
60 
63  void setTimeAve(double TimeAve) { m_TimeAve = (float)TimeAve; }
64 
67  void setTimeVar(double TimeVar) { m_TimeVar = (float)TimeVar; }
68 
69 
73  int getCellId() const { return m_CellId; }
74 
78  double getEnergyDep() const { return (double) m_Edep; }
79 
83  double getTimeAve() const {return (double) m_TimeAve;}
84 
88  double getTimeVar() const {return (double) m_TimeVar;}
89 
90 
94  void shiftInTime(float delta) override { m_TimeAve += delta; }
95 
96 
97  private:
98 
99  int m_CellId;
100  float m_Edep;
101  float m_TimeAve;
102  float m_TimeVar;
106  };
107 
109 } // end namespace Belle2
110 
111 #endif
Class to store simulated hits which equate to average of CsiSimHit on crystals Input for digitization...
Definition: CsiHit.h:26
double getTimeAve() const
Get average time.
Definition: CsiHit.h:83
void setEnergyDep(double Edep)
Set deposit energy.
Definition: CsiHit.h:59
int getCellId() const
Get Cell ID.
Definition: CsiHit.h:73
int m_CellId
Cell ID.
Definition: CsiHit.h:99
void setCellId(int CellId)
Set Cell ID.
Definition: CsiHit.h:55
double getEnergyDep() const
Get deposit energy.
Definition: CsiHit.h:78
float m_Edep
deposited energy
Definition: CsiHit.h:100
float m_TimeAve
average time
Definition: CsiHit.h:101
ClassDefOverride(CsiHit, 3)
ClassDef.
CsiHit(int CellId, float Edep, float TimeAve, float TimeVar)
Useful Constructor.
Definition: CsiHit.h:39
float m_TimeVar
time variance
Definition: CsiHit.h:102
double getTimeVar() const
Get time variance.
Definition: CsiHit.h:88
void setTimeVar(double TimeVar)
Set time variance.
Definition: CsiHit.h:67
void shiftInTime(float delta) override
Shift the Hit in time (needed for beam background mixing)
Definition: CsiHit.h:94
CsiHit()
default constructor for ROOT
Definition: CsiHit.h:29
void setTimeAve(double TimeAve)
Set average time.
Definition: CsiHit.h:63
Class SimHitBase - A common base for subdetector SimHits.
Definition: SimHitBase.h:28
Abstract base class for different kinds of events.