Belle II Software  release-05-02-19
ECLHitAssignment.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 ECLHITASSIGNMENT_H
12 #define ECLHITASSIGNMENT_H
13 
14 #include <framework/datastore/RelationsObject.h>
15 
16 namespace Belle2 {
22  class ECLHitAssignment : public RelationsObject {
24  public:
25 
27  void setShowerId(int showerId) { m_showerId = showerId; }
28 
30  void setCellId(int cellId) { m_cellId = cellId; }
31 
33  int getShowerId() const { return m_showerId; }
34 
36  int getCellId() const { return m_cellId; }
37 
39 
42  {
43  m_showerId = 0;
44  m_cellId = 0;
45  ;
46  }
47 
50  int showerId,
51  int cellId
52  )
53  {
54  m_showerId = showerId;
55  m_cellId = cellId;
56  }
57 
60  private:
61 
63  int m_showerId;
64 
66  int m_cellId;
67  };
68 
70 } // end namespace Belle2
71 
72 #endif
Belle2::ECLHitAssignment::ClassDef
ClassDef(ECLHitAssignment, 1)
the class title
Belle2::ECLHitAssignment::setCellId
void setCellId(int cellId)
The method to set cell id.
Definition: ECLHitAssignment.h:38
Belle2::ECLHitAssignment::getShowerId
int getShowerId() const
The method to get shower id.
Definition: ECLHitAssignment.h:41
Belle2::ECLHitAssignment
Example Detector.
Definition: ECLHitAssignment.h:31
Belle2::ECLHitAssignment::ECLHitAssignment
ECLHitAssignment()
Empty constructor.
Definition: ECLHitAssignment.h:49
Belle2::ECLHitAssignment::getCellId
int getCellId() const
The method to get cell id.
Definition: ECLHitAssignment.h:44
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ECLHitAssignment::m_cellId
int m_cellId
The cell id of this hit.
Definition: ECLHitAssignment.h:74
Belle2::RelationsObject
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Definition: RelationsObject.h:443
Belle2::ECLHitAssignment::setShowerId
void setShowerId(int showerId)
The method to set shower id.
Definition: ECLHitAssignment.h:35
Belle2::ECLHitAssignment::m_showerId
int m_showerId
The cell id of this hit.
Definition: ECLHitAssignment.h:71