Belle II Software development
ECLDebugHit.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
13namespace Belle2 {
26 public:
29 {
30 m_cellId = 0;
31 m_Edep = 0;
32 m_TimeAve = 0;
33 }
34
37 void setCellId(int cellId) { m_cellId = cellId; }
38
41 void setEnergyDep(double Edep) { m_Edep = (float) Edep; }
42
45 void setTimeAve(double TimeAve) { m_TimeAve = (float)TimeAve; }
46
47
51 int getCellId() const { return m_cellId; }
52
56 double getEnergyDep() const { return (double) m_Edep; }
57
61 double getTimeAve() const {return (double) m_TimeAve;}
62
66 void shiftInTime(float delta) { m_TimeAve += delta; }
67
68
69 private:
70
72 float m_Edep;
73 float m_TimeAve;
77 };
78
80} // end namespace Belle2
81
Class to store the average of ECLSimHit on crystals for debug only input for digitization module (ECL...
Definition: ECLDebugHit.h:25
double getTimeAve() const
Get average time.
Definition: ECLDebugHit.h:61
void setEnergyDep(double Edep)
Set deposit energy.
Definition: ECLDebugHit.h:41
int getCellId() const
Get Cell ID.
Definition: ECLDebugHit.h:51
int m_cellId
Cell ID.
Definition: ECLDebugHit.h:71
void setCellId(int cellId)
Set Cell ID.
Definition: ECLDebugHit.h:37
double getEnergyDep() const
Get deposit energy.
Definition: ECLDebugHit.h:56
float m_Edep
deposited energy
Definition: ECLDebugHit.h:72
float m_TimeAve
average time
Definition: ECLDebugHit.h:73
void shiftInTime(float delta)
Shift the Hit in time (needed for beam background mixing)
Definition: ECLDebugHit.h:66
ECLDebugHit()
default constructor for ROOT
Definition: ECLDebugHit.h:28
ClassDef(ECLDebugHit, 1)
ClassDef.
void setTimeAve(double TimeAve)
Set average time.
Definition: ECLDebugHit.h:45
Defines interface for accessing relations of objects in StoreArray.
Abstract base class for different kinds of events.