Skip to content

Commit d14ef27

Browse files
committed
Add sensor region and type in the registry
1 parent 3972075 commit d14ef27

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Detectors/Upgrades/ALICE3/TRK/simulation/include/TRKSimulation/VDSensorRegistry.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,15 @@ namespace o2::trk
88
{
99

1010
struct VDSensorDesc {
11-
enum class Kind { Barrel,
12-
Disk };
11+
enum class Region { Barrel,
12+
Disk };
13+
enum class Type { Curved,
14+
Plane,
15+
};
1316
std::string name; // sensor volume name
1417
int petal = -1;
15-
Kind kind = Kind::Barrel;
18+
Region region = Region::Barrel;
19+
Type type = Type::Curved;
1620
int idx = -1; // layer or disk index
1721
};
1822

@@ -21,7 +25,7 @@ std::vector<VDSensorDesc>& vdSensorRegistry();
2125

2226
// Utilities (defined in VDGeometryBuilder.cxx)
2327
void clearVDSensorRegistry();
24-
void registerSensor(const std::string& volName, int petal, VDSensorDesc::Kind kind, int idx);
28+
void registerSensor(const std::string& volName, int petal, VDSensorDesc::Region region, VDSensorDesc::Type type, int idx);
2529

2630
} // namespace o2::trk
2731
#endif

0 commit comments

Comments
 (0)