Skip to content

Commit b8968e7

Browse files
authored
Update FT3Module.cxx
1 parent f18bdbe commit b8968e7

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎Detectors/Upgrades/ALICE3/TRKFT3/FT3/simulation/src/FT3Module.cxx‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ void FT3Module::initialize_materials()
5858

5959
auto& matmgr = o2::base::MaterialManager::Instance();
6060

61-
int ifield = 2;
62-
float fieldm = 10.0;
61+
int ifield; // Initialized below
62+
float fieldm; // Initialized below
6363
o2::base::Detector::initFieldTrackingParams(ifield, fieldm);
6464

6565
float tmaxfdSi = 0.1;
@@ -74,7 +74,9 @@ void FT3Module::initialize_materials()
7474
float epsilPas = 1.0E-4;
7575
float stminPas = 0.0;
7676

77-
// local ids 10-15: chosen to not clash with FT3's own createMaterials() (1, 3)
77+
// FT3-local material/medium IDs: 10-15. Keep them distinct from IDs 1 and 3,
78+
// which are already used by FT3 Detector::createMaterials() for AIR and SILICON.
79+
// MaterialManager maps these local IDs to globally unique VMC medium IDs.
7880
matmgr.Material("FT3", 10, "Silicon", 28.0855, 14, 2.33, 0, 0);
7981
matmgr.Medium("FT3", 10, "Silicon", 10, 0, ifield, fieldm, tmaxfdSi, stemaxSi, deemaxSi, epsilSi, stminSi);
8082
siliconMed = matmgr.getTGeoMedium("FT3", 10);

0 commit comments

Comments
 (0)