BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
geometry_run3.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* pipe = new FairPipe("PIPE");
13 pipe->SetGeometryFileName("pipe_Be_kompozit_gap75cm_3.geo");
14 fRun->AddModule(pipe);
15
16 FairModule* target = new FairTarget("Target");
17 target->SetGeometryFileName("target_au_250mu.geo");
18 fRun->AddModule(target);
19
20 FairModule* magnet = new FairMagnet("MAGNET");
21 magnet->SetGeometryFileName("magnet_modified.root");
22 fRun->AddModule(magnet);
23
24 // ----- Create detectors -------------------------
25 FairDetector* mwpc1 = new BmnMWPC1("MWPC1", kTRUE);
26 mwpc1->SetGeometryFileName("mwpc1_v1_run3.root");
27 fRun->AddModule(mwpc1);
28
29 FairDetector* mwpc2 = new BmnMWPC2("MWPC2", kTRUE);
30 mwpc2->SetGeometryFileName("mwpc2_v1_run3.root");
31 fRun->AddModule(mwpc2);
32
33 FairDetector* mwpc3 = new BmnMWPC3("MWPC3", kTRUE);
34 mwpc3->SetGeometryFileName("mwpc3_v1_run3.root");
35 fRun->AddModule(mwpc3);
36
37 FairDetector* dch1 = new BmnDch1("DCH1", kTRUE);
38 dch1->SetGeometryFileName("dch1_v1_run3.root");
39 fRun->AddModule(dch1);
40
41 FairDetector* dch2 = new BmnDch2("DCH2", kTRUE);
42 dch2->SetGeometryFileName("dch2_v1_run3.root");
43 fRun->AddModule(dch2);
44
45 FairDetector* tof = new CbmTof("TOF", kTRUE);
46 tof->SetGeometryFileName("tof_v07a.geo");
47 fRun->AddModule(tof);
48
49 FairDetector* tof1 = new BmnTOF1("TOF1", kTRUE);
50 tof1->SetGeometryFileName("tof1_W400_v1.geo");
51 fRun->AddModule(tof1);
52
53 BmnZdc* zdc = new BmnZdc("ZDC", kTRUE);
54 zdc->SetGeometryFileName("zdc_52modules_64layers_v1.geo");
55 fRun->AddModule(zdc);
56}
constexpr Bool_t kTRUE
void geometry(FairRunSim *fRun)