You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Detectors/Upgrades/ALICE3/TRK/simulation/include/TRKSimulation/Detector.h
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -30,9 +30,6 @@ namespace trk
30
30
classDetector : publico2::base::DetImpl<Detector>
31
31
{
32
32
public:
33
-
staticconstexpr Int_t mNumberOfVolumes = 44; /// hardcoded for the current geometry = 8 MLOT layers + 36 volumes in the VD. TODO: automatize or change according to the current geometry
34
-
staticconstexpr Int_t mNumberOfVolumesVD = 36; /// hardcoded for the current geometry = 36 volumes in the VD. TODO: automatize or change according to the current geometry
35
-
36
33
Detector(bool active);
37
34
Detector();
38
35
~Detector();
@@ -79,6 +76,9 @@ class Detector : public o2::base::DetImpl<Detector>
79
76
voidcreateGeometry();
80
77
81
78
private:
79
+
intmNumberOfVolumes;
80
+
intmNumberOfVolumesVD;
81
+
82
82
// Transient data about track passing the sensor
83
83
structTrackData {
84
84
boolmHitStarted; // hit creation started
@@ -90,7 +90,7 @@ class Detector : public o2::base::DetImpl<Detector>
90
90
GeometryTGeo* mGeometryTGeo; //!
91
91
std::vector<o2::itsmft::Hit>* mHits; // ITSMFT ones for the moment
92
92
std::vector<TRKLayer> mLayers;
93
-
TRKServices mServices; // Houses the services of the TRK, but not the Iris tracker
93
+
TRKServices mServices; // Houses the services of the TRK, but not the Iris tracker
94
94
95
95
std::vector<std::string> mFirstOrLastLayers; // Names of the first or last layers
mSensorName.resize(mNumberOfVolumes); // hardcoded. TODO: change size when a different naming scheme for VD is in place. Ideally could be 4 petals + 8 layers = 12
60
-
int VDvolume = 0;
61
-
for (int i = 0; i < 4; i++) { /// VD
62
-
for (int j = 0; j < 3; j++) {
63
-
mSensorName[VDvolume].Form("%s%d_%s%d_%s%d", GeometryTGeo::getTRKPetalPattern(), i, GeometryTGeo::getTRKPetalLayerPattern(), j, GeometryTGeo::getTRKSensorPattern(), j);
64
-
VDvolume++;
65
-
}
66
-
for (int j = 0; j < 6; j++) {
67
-
mSensorName[VDvolume].Form("%s%d_%s%d_%s%d", GeometryTGeo::getTRKPetalPattern(), i, GeometryTGeo::getTRKPetalDiskPattern(), j, GeometryTGeo::getTRKSensorPattern(), j);
0 commit comments