79 ecalLeft.Set(-175, 12.4, 883.1, -10);
82 ecalLeft.Set(-175, 12.4, 283.1, -10);
88 ecalLeft.Set(-175, 12.4, 283.1, -20);
98 ecalLeft.Set(-48 - 4, 12.4, 283.1, -10);
108 ecalLeft.Set(-175, 12.4, 283.1, -10);
112 ecalLeft.Set(-55, 12.4, 283.1, -10);
116 ecalLeft.Set(-175, 12.4, 283.1, -20);
121 Fatal(
"Main",
"ECAL run %d position %d is not defined in " __FILE__, run, pos);
194 const TString geoDetectorName =
"ECAL";
195 const TString geoDetectorVersion =
"v3";
197 geoFileName.
Form(
"%s/geometry/%s_%s_run%d_pos%d.root", gPath.
Data(), geoDetectorName.
Data(),
198 geoDetectorVersion.
Data(), run, pos);
199 cout << geoFileName << endl;
207 FairGeoLoader* geoLoad =
new FairGeoLoader(
"TGeo",
"FairGeoLoader");
208 FairGeoInterface* geoFace = geoLoad->getGeoInterface();
211 TString medFile = gPath +
"/geometry/media.geo";
212 geoFace->setMediaFile(medFile);
213 geoFace->readMedia();
214 FairGeoMedia* geoMedia = geoFace->getMedia();
215 FairGeoBuilder* geoBuild = geoLoad->getGeoBuilder();
246 ecal->
AddNode(ecal1, 0, combi1);
251 ecal->
AddNode(ecal2, 1, combi2);
283 module->AddNode(covSteel, 0, new TGeoTranslation(0, 0, thickSteel / 2 - modlength / 2));
287 for (
int zlayer = 0; zlayer <
Zlayers; zlayer++) {
289 module->AddNode(layerPaint, nlay, new TGeoTranslation(0, 0, z + thickPaint / 2 - modlength / 2));
290 module->AddNode(layerPb, nlay, new TGeoTranslation(0, 0, z + thickPaint + thickPb / 2 - modlength / 2));
291 module->AddNode(layerPaint, nlay,
292 new TGeoTranslation(0, 0, z + thickPaint + thickPb + thickPaint / 2 - modlength / 2));
295 new TGeoTranslation(0, 0, z + thickPaint + thickPb + thickPaint + thickSci / 2 - modlength / 2));
317 for (
int xmod = 0; xmod <
Xmodules; xmod++) {
318 for (
int ymod = 0; ymod <
Ymodules; ymod++) {
330 for (
int xmod = 0; xmod <
Xmodules; xmod++) {
331 for (
int ymod = 0; ymod <
Ymodules; ymod++) {
350 TFile* geoFile =
new TFile(geoFileName,
"RECREATE");