Skip to content

Commit 9fc3c39

Browse files
authored
The ALICE 3 geometry v1 LUT writer (#88)
1 parent edac356 commit 9fc3c39

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

src/lutWrite.geometry_v1.cc

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/// @author: Roberto Preghenella
2+
/// @email: [email protected]
3+
4+
#include "lutWrite.cc"
5+
6+
float scale = 1.;
7+
8+
void
9+
fatInit_geometry_v1(float field = 0.5, float rmin = 100.)
10+
{
11+
fat.SetBField(field);
12+
fat.SetdNdEtaCent(1600.);
13+
// new ideal Pixel properties?
14+
Double_t x0IB = 0.001;
15+
Double_t x0OB = 0.01;
16+
Double_t xrhoIB = 2.3292e-02; // 100 mum Si
17+
Double_t xrhoOB = 2.3292e-01; // 1000 mum Si
18+
19+
Double_t resRPhiIB = 0.00025;
20+
Double_t resZIB = 0.00025;
21+
Double_t resRPhiOB = 0.00100;
22+
Double_t resZOB = 0.00100;
23+
Double_t eff = 0.98;
24+
fat.AddLayer((char*)"vertex", 0.0, 0, 0); // dummy vertex for matrix calculation
25+
fat.AddLayer((char*)"bpipe0", 0.48 * scale, 0.00042, 2.772e-02); // 150 mum Be
26+
//
27+
fat.AddLayer((char*)"B00", 0.50 * scale, x0IB, xrhoIB, resRPhiIB, resZIB, eff);
28+
fat.AddLayer((char*)"B01", 1.20 * scale, x0IB, xrhoIB, resRPhiIB, resZIB, eff);
29+
fat.AddLayer((char*)"B02", 2.50 * scale, x0IB, xrhoIB, resRPhiIB, resZIB, eff);
30+
//
31+
fat.AddLayer((char*)"bpipe1", 3.7 * scale, 0.0014, 9.24e-02); // 500 mum Be
32+
//
33+
fat.AddLayer((char*)"B03", 3.75 * scale, x0IB, xrhoIB, resRPhiIB, resZIB, eff);
34+
//
35+
fat.AddLayer((char*)"B04", 7.00 * scale, x0OB, xrhoOB, resRPhiOB, resZOB, eff);
36+
fat.AddLayer((char*)"B05", 12.0 * scale, x0OB, xrhoOB, resRPhiOB, resZOB, eff);
37+
fat.AddLayer((char*)"B06", 20.0 * scale, x0OB, xrhoOB, resRPhiOB, resZOB, eff);
38+
fat.AddLayer((char*)"B07", 30.0 * scale, x0OB, xrhoOB, resRPhiOB, resZOB, eff);
39+
fat.AddLayer((char*)"B08", 45.0 * scale, x0OB, xrhoOB, resRPhiOB, resZOB, eff);
40+
fat.AddLayer((char*)"B09", 60.0 * scale, x0OB, xrhoOB, resRPhiOB, resZOB, eff);
41+
fat.AddLayer((char*)"B10", 80.0 * scale, x0OB, xrhoOB, resRPhiOB, resZOB, eff);
42+
fat.AddLayer((char*)"B11", 100. * scale, x0OB, xrhoOB, resRPhiOB, resZOB, eff);
43+
fat.SetAtLeastHits(4);
44+
fat.SetAtLeastCorr(4);
45+
fat.SetAtLeastFake(0);
46+
//
47+
fat.SetMinRadTrack(rmin);
48+
//
49+
fat.PrintLayout();
50+
}
51+
52+
void
53+
lutWrite_geometry_v1(const char *filename = "lutCovm.dat", int pdg = 211, float field = 0.5, float rmin = 100.)
54+
{
55+
56+
// init FAT
57+
fatInit_geometry_v1(field, rmin);
58+
// write
59+
lutWrite(filename, pdg, field);
60+
61+
}
62+

0 commit comments

Comments
 (0)