BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
geometry_run.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_mods_6_10_14_18_detailed.root");
56 silicon->SetGeometryFileName("Silicon_Run8.root");
57 // silicon->SetGeometryFileName("Silicon_Run8_detailed_aligned.root");
58 fRun->AddModule(silicon);
59
60 FairDetector* gems = new CbmSts("GEM", kTRUE);
61 gems->SetGeometryFileName("GEMS_Run8_detailed.root");
62 // gems->SetGeometryFileName("GEMS_Run8_detailed_aligned.root");
63 fRun->AddModule(gems);
64
65 FairDetector* csc = new BmnCSC("CSC", kTRUE);
66 csc->SetGeometryFileName("FullCSC_Run8_detailed.root");
67 fRun->AddModule(csc);
68
69 FairDetector* tof1 = new BmnTOF1("TOF1", kTRUE);
70 tof1->SetGeometryFileName("TOF400_RUN8_v2.root");
71 fRun->AddModule(tof1);
72 /*
73 FairDetector* dch = new BmnDch("DCH", kTRUE);
74 dch->SetGeometryFileName("DCH_Run8.root");
75 fRun->AddModule(dch);
76 */
77 FairDetector* tof2 = new BmnTOF("TOF", kTRUE);
78 tof2->SetGeometryFileName("tof700_run8_with_support.root");
79 fRun->AddModule(tof2);
80
81 // FairDetector* ecal = new BmnEcal("ECAL", kTRUE);
82 // ecal->SetGeometryFileName("ECAL_v3_run8_pos5.root");
83 // fRun->AddModule(ecal);
84
85 FairDetector* scwall = new BmnScWall("SCWALL", kTRUE);
86 // scwall->SetGeometryFileName("ScWall_for_run8_with_hole_with_hole_in_box_cells_numbering_for_run8_Zpos_741.5cm_Xshift_68.70cm_Yshift_0.0cm_rotationY_0.0deg_v1.root");
87
88 scwall->SetGeometryFileName("ScWall_with_hole_with_hole_in_box_cells_numbering_for_run8_Zpos_697.4cm_Xshift_65."
89 "65cm_Yshift-0.43cm_rotationY_0.0deg_v1.root");
90 fRun->AddModule(scwall);
91
92 FairDetector* hodo = new BmnHodo("HODO", kTRUE);
93 // hodo->SetGeometryFileName("Hodo_for_run8_with_box_Zpos_970.2cm_Xshift_64.90cm_Yshift_-1.0cm_rotationY_1.6deg_v1.root");
94
95 hodo->SetGeometryFileName("Hodo_with_box_Zpos_970.2cm_Xshift_64.90cm_Yshift_-1.0cm_rotationY_4.2deg_v1.root");
96
97 fRun->AddModule(hodo);
98
99 BmnZdc* vacwall = new BmnZdc("ZDC", kTRUE);
100 // vacwall->SetBirk();
101 // vacwall->SetGeometryFileName("wall_vacuum_zdc_12x12cm_Zpos_529.286cm_Xshift_-267.034cm_Yshift_0.518cm_rotationY_-27.3deg_v1.root");
102
103 // vacwall->SetGeometryFileName("wall_vacuum_zdc_270x120cm_Zpos_741.39cm_Xshift_68.70cm_Yshift_0.0cm_rotationY_0.0deg_v1.root");
104
105 // PROTOTYPE
106 // vacwall->SetGeometryFileName("vacBox_ONEDET_for_nDet_PROTOTYPE_12x12cm_15slices_Zdist_595.517cm_Ysh_0.518cm_rotY_-27.30deg_rotX_0.0deg.root");
107
108 // RNF
109 vacwall->SetGeometryFileName("vacBox_TWODET_for_nDet_RNF_44x44cm_8slices_ZdistDET_1_699.90cm_rotY_-10.0deg_rotX_-4."
110 "50deg_ZdistDET_2_699.90cm_rotY_-10.0deg_rotX_4.50deg.root");
111
112 fRun->AddModule(vacwall);
113
114 FairDetector* ndet = new BmnNdet("NDET", kTRUE);
115 // ndet->SetGeometryFileName("nDet_PROTOTYPE_12x12cm_9mods_4x4cm_VETO_25mm_5sl_PLA_2mm_Pb_8mm_9sl_Cu_30mm_Sc_25mm_G10_2mm_Air_no_hole_Zpos_529.375cm_Xshift_-267.080cm_Yshift_0.518cm_rotationY_-27.3deg_v1.root");//nDet
116 // at 27.3 deg.
117
118 // ndet->SetGeometryFileName("nDet_PROTOTYPE_ONEDET_12x12cm_9mods_4x4cm_with_rows_columns_VETO_25mm_5slices_PLA_2mm_Pb_8mm_9slices_Cu_30mm_Sc_25mm_G10_2mm_Air_no_hole_ZdistDET_1_595.617cm_rotY_-27.30deg_rotX_0.0deg.root");//nDet
119 // at 27.3 deg.
120
121 // PROTOTYPE
122 // ndet->SetGeometryFileName("nDet_PROTOTYPE_ONEDET_12x12cm_9mods_4x4cm_with_rows_columns_NEW_NUMBERING_VETO_25mm_5slices_PLA_2mm_Pb_8mm_9slices_Cu_30mm_Sc_25mm_G10_2mm_Air_no_hole_ZdistDET_1_595.617cm_Ysh_0.518cm_rotY_-27.30deg_rotX_0.0deg.root");//nDet
123 // at 27.3 deg.
124
125 // RNF
126 ndet->SetGeometryFileName("nDet_RNF_TWODET_44x44cm_121mods_4x4cm_with_rows_columns_NEW_NUMBERING_VETO_25mm_7slices_"
127 "Cu_30mm_Sc_25mm_PCB_2mm_PLA_2mm_no_hole_ZdistDET_1_700cm_rotY_-10.0deg_rotX_-4.50deg_"
128 "ZdistDET_2_700cm_rotY_-10.0deg_rotX_4.50deg.root");
129
130 fRun->AddModule(ndet);
131
132 FairDetector* fhcal = new BmnFHCal("FHCAL", kTRUE);
133 // zdc->SetBirk();
134 // fhcal->SetGeometryFileName("FHCal_for_run8_CBM_20mods_NICA_34mods_54mods_hole_Zpos_977.8cm_Xshift_65.30cm_Yshift-0.8cm_rotationY_1.6deg_v1.root");
135
136 fhcal->SetGeometryFileName(
137 "FHCal_CBM_20mods_NICA_34mods_54mods_hole_Zpos_977.8cm_Xshift_65.30cm_Yshift-0.8cm_rotationY_4.2deg_v1.root");
138
139 fRun->AddModule(fhcal);
140}
constexpr Bool_t kTRUE
Definition BmnBd.h:8
Definition BmnFD.h:20
CbmSts.h.
Definition CbmSts.h:23
void geometry(FairRunSim *fRun)
Definition geometry_run.C:2