@@ -214,16 +214,15 @@ void Detector::createMaterials()
214214
215215 int matId = 0 ; // tmp material id number
216216 const int unsens = 0 , sens = 1 ; // sensitive or unsensitive medium
217- //
218217
219218 int fieldType;
220219 float maxField;
220+ o2::base::Detector::initFieldTrackingParams (fieldType, maxField);
221221
222222 // TODO: Comment out two lines below once tested that the above function assigns field type and max correctly
223- fieldType = 2 ; // Field type
224- maxField = 10 . ; // Field max.
223+ fieldType = 3 ; // Field type
224+ maxField = 5.0 ; // Field max.
225225
226- o2::base::Detector::initFieldTrackingParams (fieldType, maxField);
227226 LOG (info) << " FD3: createMaterials(): fieldType " << fieldType << " , maxField " << maxField;
228227
229228 float tmaxfd3 = -10.0 ; // max deflection angle due to magnetic field in one step
@@ -242,9 +241,9 @@ void Detector::createMaterials()
242241 o2::base::Detector::Medium (Aluminium, " Aluminium" , matId, unsens, fieldType, maxField,
243242 tmaxfd3, stepmax, deemax, epsil, stepmin);
244243
245- // Cherenkov radiator
246- fieldType = 2 ; // magneticField->Integ();
247- maxField = 10 .; // magneticField->Max();
244+ // Cherenkov radiator glass, modify fieldType and maxField parameters
245+ fieldType = 2 ;
246+ maxField = 10 .;
248247
249248 // Radiator glass SiO2
250249 Float_t aglass[2 ] = {28.0855 , 15.9994 };
0 commit comments