Belle II Software  release-08-01-10
TRGECLBGTCHit.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 //-----------------------------------------------------------
10 // Description : A class to represent TRG ECL.
11 //-----------------------------------------------------------
12 
13 #pragma once
14 
15 #include <TObject.h>
16 
17 namespace Belle2 {
24  class TRGECLBGTCHit : public TObject {
25 
26  public:
27 
29  void setTCId(int TCId) { m_TCId = TCId; }
31  void setEnergyDep(double edep) { m_edep = edep; }
33  void setTimeAve(double TimeAve) { m_TimeAve = TimeAve; }
35  int getTCId() const { return m_TCId; }
37  double getEnergyDep() const { return m_edep; }
39  double getTimeAve() const {return m_TimeAve;}
40 
41  // Empty constructor
42  // Recommended for ROOT IO
44  {
45  m_TCId = 0;
46  }
49  int TCId,
50  double edep,
51  double TimeAve):
52  m_edep(edep), m_TimeAve(TimeAve)
53  {
54  m_TCId = TCId;
55  }
56 
57  private:
58 
60  int m_TCId;
62  Double32_t m_edep;
64  Double32_t m_TimeAve;
65 
68 
69  };
70 
72 } // end namespace Belle2
Example Detector.
Definition: TRGECLBGTCHit.h:24
int m_TCId
The TC id of this hit.
Definition: TRGECLBGTCHit.h:60
double getTimeAve() const
The method to get hit average time.
Definition: TRGECLBGTCHit.h:39
void setTCId(int TCId)
The method to set TC id.
Definition: TRGECLBGTCHit.h:29
Double32_t m_edep
Deposited energy of this hit.
Definition: TRGECLBGTCHit.h:62
double getEnergyDep() const
The method to get deposited energy.
Definition: TRGECLBGTCHit.h:37
TRGECLBGTCHit(int TCId, double edep, double TimeAve)
Useful Constructor.
Definition: TRGECLBGTCHit.h:48
void setEnergyDep(double edep)
The method to set deposited energy.
Definition: TRGECLBGTCHit.h:31
Double32_t m_TimeAve
Hit average time.
Definition: TRGECLBGTCHit.h:64
int getTCId() const
The method to get TC id.
Definition: TRGECLBGTCHit.h:35
ClassDef(TRGECLBGTCHit, 1)
the class title
void setTimeAve(double TimeAve)
The method to set hit average time.
Definition: TRGECLBGTCHit.h:33
Abstract base class for different kinds of events.