ALERT
Loading...
Searching...
No Matches
AhdcGeom.h
1/****************************************************
2 * AhdcGeom.h
3 *
4 *
5 * @author Felix Touchte Codjo
6 * @date November 20, 2024
7 * *************************************************/
8
9#ifndef GEOM_AHDC
10#define GEOM_AHDC
11
12#include "Point3D.h"
13
14//#define PI 3.14159265358979323846
15
16
17
24class AhdcWire {
25 int sector;
26 int superlayer;
27 int layer;
28 int component;
29public :
32 AhdcWire(int _sector, int _superlayer, int _layer, int _component);
33};
34
39class AhdcLayer {
40 int sector;
41 int superlayer;
42 int layer;
43public :
44 AhdcLayer(int _sector, int _superlayer, int _layer);
45 AhdcWire GetAhdcWire(int component);
46};
47
53 int sector;
54 int superlayer;
55public :
56 AhdcSuperLayer(int _sector, int _superlayer);
57 AhdcLayer GetAhdcLayer(int layer);
58};
59
65 int sector;
66public :
67 AhdcSector(int _sector);
68 AhdcSuperLayer GetAhdcSuperLayer(int superlayer);
69};
70
75class AhdcCell : public AhdcWire {
76 Point3D topFaces[6];
77 Point3D bottomfaces[6];
78public :
79 AhdcCell(int _sector, int _superlayer, int _layer, int _component);
80};
81
86class AhdcGeom {
87 int db[8] = {11147,12156,12256,13172,13272,14187,14287,15199};
88public :
89 bool IsAhdcSector(int sector);
90 bool IsAhdcSuperLayer(int sector, int superlayer);
91 bool IsAhdcLayer(int sector, int superlayer,int layer);
92 bool IsAhdcWire(int sector, int superlayer, int layer, int component);
93 AhdcSector GetAhdcSector(int sector);
94 void Show();
95 int GetDataBaseEntry(int entry);
96 int GetDataBaseSize();
97};
98
99namespace futils {
100 double toRadian(double);
101}
102
103#endif
Definition AhdcGeom.h:75
AhdcCell(int _sector, int _superlayer, int _layer, int _component)
Definition AhdcGeom.cpp:59
Definition AhdcGeom.h:86
bool IsAhdcSuperLayer(int sector, int superlayer)
Definition AhdcGeom.cpp:102
bool IsAhdcSector(int sector)
Definition AhdcGeom.cpp:97
AhdcSector GetAhdcSector(int sector)
Definition AhdcGeom.cpp:133
bool IsAhdcWire(int sector, int superlayer, int layer, int component)
Definition AhdcGeom.cpp:114
void Show()
Definition AhdcGeom.cpp:138
int GetDataBaseEntry(int entry)
Definition AhdcGeom.cpp:158
bool IsAhdcLayer(int sector, int superlayer, int layer)
Definition AhdcGeom.cpp:108
Definition AhdcGeom.h:39
AhdcLayer(int _sector, int _superlayer, int _layer)
Definition AhdcGeom.cpp:64
AhdcWire GetAhdcWire(int component)
Definition AhdcGeom.cpp:70
Definition AhdcGeom.h:64
AhdcSector(int _sector)
Definition AhdcGeom.cpp:86
AhdcSuperLayer GetAhdcSuperLayer(int superlayer)
Definition AhdcGeom.cpp:92
Definition AhdcGeom.h:52
AhdcLayer GetAhdcLayer(int layer)
Definition AhdcGeom.cpp:81
AhdcSuperLayer(int _sector, int _superlayer)
Definition AhdcGeom.cpp:75
Definition AhdcGeom.h:24
Point3D end
coordonates of the bottom face (z = 300 mm)
Definition AhdcGeom.h:31
Point3D start
coordonates of the top face (z = 0 mm)
Definition AhdcGeom.h:30
AhdcWire(int _sector, int _superlayer, int _layer, int _component)
Definition AhdcGeom.cpp:16
Definition Point3D.h:11