Belle II Software  release-05-02-19
ECLDebugHit.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Poyuan Chen *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #ifndef ECLDEBUGHIT_H
12 #define ECLDEBUGHIT_H
13 
14 #include <framework/datastore/RelationsObject.h>
15 
16 namespace Belle2 {
28  class ECLDebugHit : public RelationsObject {
29  public:
31  ECLDebugHit() {
32  m_cellId = 0;
33  m_Edep = 0;
34  m_TimeAve = 0;
35  }
36 
39  void setCellId(int cellId) { m_cellId = cellId; }
40 
43  void setEnergyDep(double Edep) { m_Edep = (float) Edep; }
44 
47  void setTimeAve(double TimeAve) { m_TimeAve = (float)TimeAve; }
48 
49 
53  int getCellId() const { return m_cellId; }
54 
58  double getEnergyDep() const { return (double) m_Edep; }
59 
63  double getTimeAve() const {return (double) m_TimeAve;}
64 
68  void shiftInTime(float delta) { m_TimeAve += delta; }
69 
70 
71  private:
72 
73  int m_cellId;
74  float m_Edep;
75  float m_TimeAve;
77  ClassDef(ECLDebugHit, 1);
79  };
80 
82 } // end namespace Belle2
83 
84 #endif
Belle2::ECLDebugHit::setCellId
void setCellId(int cellId)
Set Cell ID.
Definition: ECLDebugHit.h:47
Belle2::ECLDebugHit::m_TimeAve
float m_TimeAve
average time
Definition: ECLDebugHit.h:83
Belle2::ECLDebugHit::getCellId
int getCellId() const
Get Cell ID.
Definition: ECLDebugHit.h:61
Belle2::ECLDebugHit::ECLDebugHit
ECLDebugHit()
default constructor for ROOT
Definition: ECLDebugHit.h:39
Belle2::ECLDebugHit::shiftInTime
void shiftInTime(float delta)
Shift the Hit in time (needed for beam background mixing)
Definition: ECLDebugHit.h:76
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ECLDebugHit
Class to store the average of ECLSimHit on crystals for debug only input for digitization module (ECL...
Definition: ECLDebugHit.h:36
Belle2::ECLDebugHit::setTimeAve
void setTimeAve(double TimeAve)
Set average time.
Definition: ECLDebugHit.h:55
Belle2::RelationsObject
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Definition: RelationsObject.h:443
Belle2::ECLDebugHit::m_cellId
int m_cellId
Cell ID.
Definition: ECLDebugHit.h:81
Belle2::ECLDebugHit::getTimeAve
double getTimeAve() const
Get average time.
Definition: ECLDebugHit.h:71
Belle2::ECLDebugHit::ClassDef
ClassDef(ECLDebugHit, 1)
ClassDef.
Belle2::ECLDebugHit::setEnergyDep
void setEnergyDep(double Edep)
Set deposit energy.
Definition: ECLDebugHit.h:51
Belle2::ECLDebugHit::m_Edep
float m_Edep
deposited energy
Definition: ECLDebugHit.h:82
Belle2::ECLDebugHit::getEnergyDep
double getEnergyDep() const
Get deposit energy.
Definition: ECLDebugHit.h:66