Belle II Software development
TOPChannelMap.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 <TObject.h>
12
13namespace Belle2 {
22 class TOPChannelMap: public TObject {
23 public:
24
29 {}
30
38 TOPChannelMap(unsigned row, unsigned col, unsigned asic, unsigned chan):
39 m_row(row), m_col(col), m_asic(asic), m_channel(chan)
40 {}
41
46 unsigned getRow() const {return m_row;}
47
52 unsigned getColumn() const {return m_col;}
53
58 unsigned getRowNumber() const {return m_row + 1;}
59
64 unsigned getColumnNumber() const {return m_col + 1;}
65
70 unsigned getASICNumber() const {return m_asic;}
71
76 unsigned getASICChannel() const {return m_channel;}
77
78 private:
79
80 unsigned m_row;
81 unsigned m_col;
82 unsigned m_asic;
83 unsigned m_channel;
87 };
88
90} // end namespace Belle2
Map of pixels and channels within the carrier board.
Definition: TOPChannelMap.h:22
TOPChannelMap(unsigned row, unsigned col, unsigned asic, unsigned chan)
Full constructor.
Definition: TOPChannelMap.h:38
unsigned getASICNumber() const
Return ASIC number.
Definition: TOPChannelMap.h:70
unsigned getColumnNumber() const
Return pixel column number within carrier board.
Definition: TOPChannelMap.h:64
unsigned m_asic
ASIC number.
Definition: TOPChannelMap.h:82
TOPChannelMap()
Default constructor.
Definition: TOPChannelMap.h:28
unsigned getRowNumber() const
Return pixel row number within carrier board.
Definition: TOPChannelMap.h:58
unsigned m_channel
ASIC channel.
Definition: TOPChannelMap.h:83
unsigned m_col
pixel column within carrier board
Definition: TOPChannelMap.h:81
unsigned getColumn() const
Return 0-based pixel column within carrier board.
Definition: TOPChannelMap.h:52
unsigned getASICChannel() const
Return ASIC channel number.
Definition: TOPChannelMap.h:76
unsigned m_row
pixel row within carrier board
Definition: TOPChannelMap.h:80
ClassDef(TOPChannelMap, 1)
ClassDef.
unsigned getRow() const
Return 0-based pixel row within carrier board.
Definition: TOPChannelMap.h:46
Abstract base class for different kinds of events.