Belle II Software  release-05-02-19
TOPChannelMap.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Marko Staric *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <TObject.h>
14 
15 namespace Belle2 {
24  class TOPChannelMap: public TObject {
25  public:
26 
30  TOPChannelMap(): m_row(0), m_col(0), m_asic(0), m_channel(0)
31  {}
32 
40  TOPChannelMap(unsigned row, unsigned col, unsigned asic, unsigned chan):
41  m_row(row), m_col(col), m_asic(asic), m_channel(chan)
42  {}
43 
48  unsigned getRow() const {return m_row;}
49 
54  unsigned getColumn() const {return m_col;}
55 
60  unsigned getRowNumber() const {return m_row + 1;}
61 
66  unsigned getColumnNumber() const {return m_col + 1;}
67 
72  unsigned getASICNumber() const {return m_asic;}
73 
78  unsigned getASICChannel() const {return m_channel;}
79 
80  private:
81 
82  unsigned m_row;
83  unsigned m_col;
84  unsigned m_asic;
85  unsigned m_channel;
89  };
90 
92 } // end namespace Belle2
Belle2::TOPChannelMap::ClassDef
ClassDef(TOPChannelMap, 1)
ClassDef.
Belle2::TOPChannelMap::getASICNumber
unsigned getASICNumber() const
Return ASIC number.
Definition: TOPChannelMap.h:80
Belle2::TOPChannelMap::getColumn
unsigned getColumn() const
Return 0-based pixel column within carrier board.
Definition: TOPChannelMap.h:62
Belle2::TOPChannelMap::getColumnNumber
unsigned getColumnNumber() const
Return pixel column number within carrier board.
Definition: TOPChannelMap.h:74
Belle2::TOPChannelMap::getRowNumber
unsigned getRowNumber() const
Return pixel row number within carrier board.
Definition: TOPChannelMap.h:68
Belle2::TOPChannelMap::TOPChannelMap
TOPChannelMap()
Default constructor.
Definition: TOPChannelMap.h:38
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TOPChannelMap::getRow
unsigned getRow() const
Return 0-based pixel row within carrier board.
Definition: TOPChannelMap.h:56
Belle2::TOPChannelMap::m_asic
unsigned m_asic
ASIC number.
Definition: TOPChannelMap.h:92
Belle2::TOPChannelMap::m_col
unsigned m_col
pixel column within carrier board
Definition: TOPChannelMap.h:91
Belle2::TOPChannelMap
Map of pixels and channels within the carrier board.
Definition: TOPChannelMap.h:32
Belle2::TOPChannelMap::m_channel
unsigned m_channel
ASIC channel.
Definition: TOPChannelMap.h:93
Belle2::TOPChannelMap::getASICChannel
unsigned getASICChannel() const
Return ASIC channel number.
Definition: TOPChannelMap.h:86
Belle2::TOPChannelMap::m_row
unsigned m_row
pixel row within carrier board
Definition: TOPChannelMap.h:90