Janis Streib
19.05.23 b21ff09151ca7e87348f1ea38944decc1f46f5db
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// 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_)