MirrorParamsReader.hh
Go to the documentation of this file.
1 #ifndef _MIRROR_PRAMS_READER_HH_
2 #define _MIRROR_PRAMS_READER_HH_
3 
4 #include <map>
5 #include "globals.hh"
6 
7 using namespace std;
8 
9 
10 namespace TelescopeSimulatorLX {
11 
12  enum eTelescope {
18  };
19 
20  struct MIRRORPARAMS {
22  G4int nPosition;
23  G4int nType;
24  G4int nMirrorID;
25  G4double fReflec375;
26  G4double fRadius;
27  G4double fHorzAnglePos;
28  G4double fVertAnglePos;
29  };
30 
32 
34  protected:
35  map<int, MIRRORPARAMS> m_MirrorParams;
36 
37  protected:
40 
41  public:
42  virtual G4int ReadMirrorParams(eTelescope eTelescopeName) = 0;
43  G4bool GetMirrorParams(PMIRRORPARAMS pparams,G4int& nParamsCnt);
44  const MIRRORPARAMS& GetMirrorParams(const G4int nIndex);
45  };
46 
48  private:
49  char m_szFilename[512];
50 
51  public:
52  CMirrorParamsReaderFromFile(const char szFilename[]);
53 
54  public:
55  virtual G4int ReadMirrorParams(eTelescope eTelescopeName);
56  };
57 
59  private:
60  char m_szUser[64];
61  char m_szPassword[64];
62  char m_szServerIP[32];
63  char m_szDbName[256];
64  public:
65  CMirrorParamsReaderFromDb(const char szUser[], const char szPassword[],
66  const char szServerIP[], const char szDbName[]);
67 
68  public:
69  virtual G4int ReadMirrorParams(eTelescope eTelescopeName);
70  };
71 
72 }
73 
74 #endif //_MIRROR_PRAMS_READER_HH_
MIRRORPARAMS * PMIRRORPARAMS

, generated on Tue Sep 26 2023.