BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
geometry_run9.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_Run9_detailed.root");
36 fRun->AddModule(sibt);
37
38 FairDetector* siprof = new BmnSiProf("SiProf", kTRUE);
39 siprof->SetGeometryFileName("SiProf_Run9_detailed.root");
40 fRun->AddModule(siprof);
41
42 FairDetector* bd = new BmnBd("BD", kTRUE);
43 bd->SetGeometryFileName("BD_run9.root");
44 fRun->AddModule(bd);
45
46 FairDetector* fd = new BmnFD("FD", kTRUE);
47 fd->SetGeometryFileName("FD_run9.root");
48 fRun->AddModule(fd);
49
50 FairDetector* vsp = new BmnVSP("VSP", kTRUE);
51 vsp->SetGeometryFileName("VSP_Run9.root");
52 fRun->AddModule(vsp);
53
54 FairDetector* silicon = new BmnSilicon("SILICON", kTRUE);
55 silicon->SetGeometryFileName("Silicon_Run9_detailed.root");
56 fRun->AddModule(silicon);
57
58 FairDetector* gems = new CbmSts("GEM", kTRUE);
59 gems->SetGeometryFileName("GEMS_Run9_detailed.root");
60 fRun->AddModule(gems);
61
62 FairDetector* csc = new BmnCSC("CSC", kTRUE);
63 csc->SetGeometryFileName("CSC_Run9_detailed.root");
64 fRun->AddModule(csc);
65
66 FairDetector* tof1 = new BmnTOF1("TOF400", kTRUE);
67 tof1->SetGeometryFileName("TOF400_RUN9.root");
68 fRun->AddModule(tof1);
69
70 FairDetector* tof2 = new BmnTOF701("TOF700", kTRUE);
71 tof2->SetGeometryFileName("tof700_RUN9_v1.root");
72 fRun->AddModule(tof2);
73
74 // FairDetector* ecal = new BmnEcal("ECAL", kTRUE);
75 // ecal->SetGeometryFileName("ECAL_v3_run8_pos5.root");
76 // fRun->AddModule(ecal);
77
78 FairDetector* scwall = new BmnScWall("SCWALL", kTRUE);
79 scwall->SetGeometryFileName("ScWall_geo_period9.root");
80 fRun->AddModule(scwall);
81
82 FairDetector* hodo = new BmnHodo("HODO", kTRUE);
83 hodo->SetGeometryFileName("Hodo_geo_period9.root");
84 fRun->AddModule(hodo);
85
86 // FairDetector* vacwall = new BmnVacWall("VacWall", kTRUE);
87 // vacwall->SetGeometryFileName("vacBox_ONEDET_for_nDet_PROTOTYPE_12x12cm_15slices_Zdist_595.517cm_Ysh_0.518cm_rotY_-27.30deg_rotX_0.0deg.root");
88 // vacwall->SetGeometryFileName("vacBox_ONEDET_for_nDet_PROTOTYPE_12x12cm_15slices_Zdist_838.4cm_Ysh_0.52cm_rotY_0.70deg_rotX_0.0deg.root");
89 // fRun->AddModule(vacwall);
90
91 FairDetector* ndet = new BmnNdet("NDET", kTRUE);
92 ndet->SetGeometryFileName("Ndet_geo_period9.root");
93 fRun->AddModule(ndet);
94
95 FairDetector* fhcal = new BmnFHCal("FHCAL", kTRUE);
96 // zdc->SetBirk();
97 fhcal->SetGeometryFileName("FHCal_geo_period9.root");
98 fRun->AddModule(fhcal);
99}
constexpr Bool_t kTRUE
Definition BmnBd.h:8
Definition BmnFD.h:20
CbmSts.h.
Definition CbmSts.h:23
void geometry(FairRunSim *fRun)