Skip to content

Commit 996785b

Browse files
committed
updated materal properties
1 parent 4706dc8 commit 996785b

2 files changed

Lines changed: 16 additions & 43 deletions

File tree

‎Detectors/Upgrades/ALICE3/FD3/simulation/include/FD3Simulation/Detector.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ class Detector : public o2::base::DetImpl<Detector>
9191
enum EMedia {
9292
Scintillator,
9393
RadiatorOpticalGlass,
94-
Aluminium,
95-
MCPGlass
9694
};
9795

9896
private:

‎Detectors/Upgrades/ALICE3/FD3/simulation/src/Detector.cxx‎

Lines changed: 16 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -196,69 +196,44 @@ void Detector::ConstructGeometry()
196196

197197
void Detector::createMaterials()
198198
{
199-
float density, as[11], zs[11], ws[11];
200-
double radLength, absLength, a_ad, z_ad;
201-
int id;
199+
int matId = 0; // tmp material id number
200+
const int unsens = 0, sens = 1; // sensitive or unsensitive medium
201+
int fieldType;
202+
float maxField;
202203

203204
// EJ-204 scintillator, based on polyvinyltoluene
204-
const int nScint = 2;
205-
float aScint[nScint] = {1.00784, 12.0107};
206-
float zScint[nScint] = {1, 6};
207-
float wScint[nScint] = {0.07085, 0.92915}; // based on EJ-204 datasheet: n_atoms/cm3
205+
float aScint[2] = {1.00784, 12.0107};
206+
float zScint[2] = {1, 6};
207+
float wScint[2] = {0.07085, 0.92915}; // based on EJ-204 datasheet: n_atoms/cm3
208208
const float dScint = 1.023;
209209

210-
// Aluminium
211-
Float_t aAlu = 26.981;
212-
Float_t zAlu = 13;
213-
Float_t dAlu = 2.7;
214-
215-
int matId = 0; // tmp material id number
216-
const int unsens = 0, sens = 1; // sensitive or unsensitive medium
210+
// Radiator glass SiO2
211+
Float_t aglass[2] = {28.0855, 15.9994};
212+
Float_t zglass[2] = {14., 8.};
213+
Float_t wglass[2] = {1., 2.};
214+
Float_t dglass = 2.2;
217215

218-
int fieldType;
219-
float maxField;
220216
o2::base::Detector::initFieldTrackingParams(fieldType, maxField);
221-
222217
// TODO: Comment out two lines below once tested that the above function assigns field type and max correctly
223218
fieldType = 3; // Field type
224219
maxField = 5.0; // Field max.
225220

226-
LOG(info) << "FD3: createMaterials(): fieldType " << fieldType << ", maxField " << maxField;
227-
228221
float tmaxfd3 = -10.0; // max deflection angle due to magnetic field in one step
229222
float stepmax = 0.1; // max step allowed [cm]
230223
float deemax = 1.0; // maximum fractional energy loss in one step 0<deemax<=1
231224
float epsil = 0.03; // tracking precision [cm]
232225
float stepmin = -0.001; // minimum step due to continuous processes [cm] (negative value: choose it automatically)
233226

234-
LOG(info) << "FD3: CreateMaterials(): fieldType " << fieldType << ", maxField " << maxField;
235-
236-
o2::base::Detector::Mixture(++matId, "Scintillator", aScint, zScint, dScint, nScint, wScint);
227+
o2::base::Detector::Mixture(++matId, "Scintillator", aScint, zScint, dScint, 2, wScint);
237228
o2::base::Detector::Medium(Scintillator, "Scintillator", matId, sens, fieldType, maxField,
238229
tmaxfd3, stepmax, deemax, epsil, stepmin);
239230

240-
o2::base::Detector::Material(++matId, "Aluminium", aAlu, zAlu, dAlu, 8.9, 999);
241-
o2::base::Detector::Medium(Aluminium, "Aluminium", matId, unsens, fieldType, maxField,
242-
tmaxfd3, stepmax, deemax, epsil, stepmin);
243-
244231
// Cherenkov radiator glass, modify fieldType and maxField parameters
245232
fieldType = 2;
246233
maxField = 10.;
247234

248-
// Radiator glass SiO2
249-
Float_t aglass[2] = {28.0855, 15.9994};
250-
Float_t zglass[2] = {14., 8.};
251-
Float_t wglass[2] = {1., 2.};
252-
Float_t dglass = 2.2;
253-
254-
// MCP glass SiO2
255-
Float_t dglass_mcp = 1.3;
256-
257-
o2::base::Detector::Mixture(++matId, "MCP glass", aglass, zglass, dglass_mcp, -2, wglass);
258-
o2::base::Detector::Medium(MCPGlass, "Glass", matId, sens, fieldType, maxField,
259-
10., .01, .1, .003, .003);
260235
o2::base::Detector::Mixture(++matId, "Radiator optical glass", aglass, zglass, dglass, -2, wglass);
261-
o2::base::Detector::Medium(RadiatorOpticalGlass, "OpticalGlass$", matId, sens, fieldType, maxField,
236+
o2::base::Detector::Medium(RadiatorOpticalGlass, "OpticalGlass", matId, sens, fieldType, maxField,
262237
10., .01, .1, .003, .01);
263238
}
264239

@@ -328,7 +303,7 @@ TGeoVolumeAssembly* Detector::buildModuleCherenkov_v1()
328303
{
329304
auto mod = new TGeoVolumeAssembly("");
330305

331-
TGeoMedium* medium = gGeoManager->GetMedium("FD3_Glass");
306+
TGeoMedium* medium = gGeoManager->GetMedium("FD3_OpticalGlass");
332307

333308
float rsizeq = Constants::rsizeq, dz = Constants::dzCher;
334309

@@ -364,7 +339,7 @@ TGeoVolumeAssembly* Detector::buildModuleCherenkov_v2()
364339
{
365340
auto mod = new TGeoVolumeAssembly("");
366341

367-
TGeoMedium* medium = gGeoManager->GetMedium("FD3_Glass");
342+
TGeoMedium* medium = gGeoManager->GetMedium("FD3_OpticalGlass");
368343

369344
float rsizeq = Constants::rsizeq, dz = Constants::dzCher;
370345

0 commit comments

Comments
 (0)