BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
geometry_run8.C
Go to the documentation of this file.
1// construct detector geometry
3{
4 // Set Material file Name
5 fRun->SetMaterials("media.geo");
6
7 // ----- Create passive volumes -------------------------
8 FairModule* cave = new FairCave("CAVE");
9 cave->SetGeometryFileName("cave.geo");
10 fRun->AddModule(cave);
11
12 FairModule* magnet = new FairMagnet("MAGNET");
13 magnet->SetGeometryFileName("magnet_modified.root");
14 fRun->AddModule(magnet);
15
16 FairModule* target = new FairTarget("Target");
17 target->SetGeometryFileName("target_CsI.geo");
18 fRun->AddModule(target);
19
20 FairModule* pipe1 = new FairPipe("Pipe_sec1");
21 pipe1->SetGeometryFileName("VacuumPipe_section1_Run8.root");
22 fRun->AddModule(pipe1);
23
24 FairModule* pipe2 = new FairPipe("Pipe_sec2");
25 pipe2->SetGeometryFileName("VacuumPipe_section2_Run8.root");
26 fRun->AddModule(pipe2);
27
28 FairModule* pipe3 = new FairPipe("Pipe_sec3");
29 pipe3->SetGeometryFileName("VacuumPipe_section3_Run8.root");
30 fRun->AddModule(pipe3);
31
32 // ----- Create detectors -------------------------
33
34 FairDetector* sibt = new BmnSiBT("SiBT", kTRUE);
35 sibt->SetGeometryFileName("SiBT_Run8.root");
36 fRun->AddModule(sibt);
37
38 // FairDetector* siprof = new BmnSiProf("SiProf", kTRUE);
39 // siprof->SetGeometryFileName("SiProf_Run8.root");
40 // fRun->AddModule(siprof);
41
42 // FairDetector* simd = new BmnSiMD("SiMD", kTRUE);
43 // simd->SetGeometryFileName("SiMD_run8_v1.root");
44 // fRun->AddModule(simd);
45
46 FairDetector* bd = new BmnBd("BD", kTRUE);
47 bd->SetGeometryFileName("BD_run8_v1.root");
48 fRun->AddModule(bd);
49
50 FairDetector* fd = new BmnFD("FD", kTRUE);
51 fd->SetGeometryFileName("FD_run8.root");
52 fRun->AddModule(fd);
53
54 FairDetector* silicon = new BmnSilicon("SILICON", kTRUE);
55 // silicon->SetGeometryFileName("Silicon_Run8.root");
56 silicon->SetGeometryFileName("Silicon_Run8_detailed.root");
57 fRun->AddModule(silicon);
58
59 FairDetector* gems = new CbmSts("GEM", kTRUE);
60 gems->SetGeometryFileName("GEMS_Run8_detailed.root");
61 // gems->SetGeometryFileName("GEMS_Run8_detailed_aligned.root");
62 fRun->AddModule(gems);
63
64 FairDetector* csc = new BmnCSC("CSC", kTRUE);
65 csc->SetGeometryFileName("FullCSC_Run8_detailed.root");
66 fRun->AddModule(csc);
67
68 FairDetector* tof1 = new BmnTOF1("TOF1", kTRUE);
69 tof1->SetGeometryFileName("TOF400_RUN8_v3.root");
70 fRun->AddModule(tof1);
71
72 FairDetector* dch = new BmnDch("DCH", kTRUE);
73 dch->SetGeometryFileName("DCH_Run8.root");
74 fRun->AddModule(dch);
75
76 FairDetector* tof2 = new BmnTOF701("TOF", kTRUE);
77 tof2->SetGeometryFileName("tof701_run8_v2.root");
78 fRun->AddModule(tof2);
79
80 // FairDetector* ecal = new BmnEcal("ECAL", kTRUE);
81 // ecal->SetGeometryFileName("ECAL_v3_run8_pos5.root");
82 // fRun->AddModule(ecal);
83
84 FairDetector* scwall = new BmnScWall("SCWALL", kTRUE);
85 scwall->SetGeometryFileName("ScWall_for_run8_with_hole_with_hole_in_box_cells_numbering_for_run8_Zpos_741.5cm_"
86 "Xshift_68.70cm_Yshift_0.0cm_rotationY_0.0deg_v1.root");
87 fRun->AddModule(scwall);
88
89 FairDetector* hodo = new BmnHodo("HODO", kTRUE);
90 hodo->SetGeometryFileName("Hodo_run8_v2.root");
91 fRun->AddModule(hodo);
92
93 FairDetector* vacwall = new BmnVacWall("VacWall", kTRUE);
94 vacwall->SetGeometryFileName("vacBox_ONEDET_for_nDet_PROTOTYPE_12x12cm_15slices_Zdist_595.517cm_Ysh_0.518cm_rotY_-"
95 "27.30deg_rotX_0.0deg.root");
96 // vacwall->SetGeometryFileName("vacBox_ONEDET_for_nDet_PROTOTYPE_12x12cm_15slices_Zdist_838.4cm_Ysh_0.52cm_rotY_"
97 // "0.70deg_rotX_0.0deg.root");
98
99 fRun->AddModule(vacwall);
100
101 FairDetector* ndet = new BmnNdet("NDET", kTRUE);
102 // nDet at -27.3 deg.
103 ndet->SetGeometryFileName(
104 "nDet_PROTOTYPE_ONEDET_Planes_ZdistDET_1_595.617cm_Ysh_0.518cm_rotY_-27.30deg_rotX_0.0deg.root");
105
106 // nDet at 0.7 deg.
107 // ndet->SetGeometryFileName(
108 //"nDet_PROTOTYPE_ONEDET_Planes_ZdistDET_1_838.50cm_Ysh_0.52cm_rotY_0.70deg_rotX_0.0deg.root");
109
110 fRun->AddModule(ndet);
111
112 FairDetector* fhcal = new BmnFHCal("FHCAL", kTRUE);
113 // zdc->SetBirk();
114 fhcal->SetGeometryFileName("FHCal_for_run8_CBM_20mods_NICA_34mods_54mods_hole_Zpos_977.8cm_Xshift_65.30cm_Yshift-0."
115 "8cm_rotationY_1.6deg_v1.root");
116 fRun->AddModule(fhcal);
117}
constexpr Bool_t kTRUE
Definition BmnBd.h:8
DCH.h.
Definition BmnDch.h:25
Definition BmnFD.h:20
CbmSts.h.
Definition CbmSts.h:23
void geometry(FairRunSim *fRun)