Janis Streib
19.05.23 b21ff09151ca7e87348f1ea38944decc1f46f5db
commit | author | age
4244cc 1 // G4Hub.h: interface for the CG4Hub class.
JS 2 //
3 //////////////////////////////////////////////////////////////////////
4
5 #if !defined(AFX_G4HUB_H__41DD193E_B016_4FF7_93E6_CF8AEC652FF1__INCLUDED_)
6 #define AFX_G4HUB_H__41DD193E_B016_4FF7_93E6_CF8AEC652FF1__INCLUDED_
7
8 #if _MSC_VER > 1000
9 #pragma once
10 #endif // _MSC_VER > 1000
11
12 #include "G4TrackIncl.h"
13
14 #define BYTE unsigned char
15
16 class CG4Hub  
17 {
18 public:
19     void SetId(int id);
20     int GetId();
21     void SetPnoData(float* pno,int sen);
22     float (*GetPnoData())[6];
7fde24 23     void SetDigIOData(uint32_t pno);
JS 24     uint32_t GetDigIOData();
d05d79 25     bool IsSenActive(int i);
4244cc 26     CG4Hub();
JS 27     virtual ~CG4Hub();
28
29 private:
30     bool m_senActive[G4_SENSORS_PER_HUB];
31     float m_invCol[3][3];
32     float m_col[3][3];
33     int m_id;
34     float m_pno[G4_SENSORS_PER_HUB][6];
7fde24 35     uint32_t digio;
4244cc 36 };
JS 37
38 #endif // !defined(AFX_G4HUB_H__41DD193E_B016_4FF7_93E6_CF8AEC652FF1__INCLUDED_)