// G4Hub.h: interface for the CG4Hub class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_G4HUB_H__41DD193E_B016_4FF7_93E6_CF8AEC652FF1__INCLUDED_) #define AFX_G4HUB_H__41DD193E_B016_4FF7_93E6_CF8AEC652FF1__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "G4TrackIncl.h" #define BYTE unsigned char class CG4Hub { public: void SetId(int id); int GetId(); void SetPnoData(float* pno,int sen); float (*GetPnoData())[6]; void SetDigIOData(uint32_t pno); uint32_t GetDigIOData(); bool IsSenActive(int i); CG4Hub(); virtual ~CG4Hub(); private: bool m_senActive[G4_SENSORS_PER_HUB]; float m_invCol[3][3]; float m_col[3][3]; int m_id; float m_pno[G4_SENSORS_PER_HUB][6]; uint32_t digio; }; #endif // !defined(AFX_G4HUB_H__41DD193E_B016_4FF7_93E6_CF8AEC652FF1__INCLUDED_)