Skip to content

Commit a058f94

Browse files
committed
LUT writer for Werner's tracker geometry
1 parent 73a4a13 commit a058f94

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

src/lutWrite.werner.cc

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
/// @author: Roberto Preghenella
2+
/// @email: [email protected]
3+
4+
#include "lutWrite.cc"
5+
6+
float scale = 1.;
7+
8+
void
9+
fatInit_werner(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, x0OB, xrhoOB, resRPhiOB, resZOB, eff);
34+
fat.AddLayer((char*)"B04", 7.00 * scale, x0OB, xrhoOB, resRPhiOB, resZOB, eff);
35+
fat.AddLayer((char*)"B05", 12.0 * scale, x0OB, xrhoOB, resRPhiOB, resZOB, eff);
36+
fat.AddLayer((char*)"B06", 20.0 * scale, x0OB, xrhoOB, resRPhiOB, resZOB, eff);
37+
fat.AddLayer((char*)"B07", 30.0 * scale, x0OB, xrhoOB, resRPhiOB, resZOB, eff);
38+
fat.AddLayer((char*)"B08", 45.0 * scale, x0OB, xrhoOB, resRPhiOB, resZOB, eff);
39+
fat.AddLayer((char*)"B09", 60.0 * scale, x0OB, xrhoOB, resRPhiOB, resZOB, eff);
40+
fat.AddLayer((char*)"B10", 80.0 * scale, x0OB, xrhoOB, resRPhiOB, resZOB, eff);
41+
fat.AddLayer((char*)"B11", 100. * scale, x0OB, xrhoOB, resRPhiOB, resZOB, eff);
42+
fat.SetAtLeastHits(4);
43+
fat.SetAtLeastCorr(4);
44+
fat.SetAtLeastFake(0);
45+
//
46+
fat.SetMinRadTrack(rmin);
47+
//
48+
fat.PrintLayout();
49+
}
50+
51+
void
52+
lutWrite_werner(const char *filename = "lutCovm.dat", int pdg = 211, float field = 0.5, float rmin = 100.)
53+
{
54+
55+
// init FAT
56+
fatInit_werner(field, rmin);
57+
// write
58+
lutWrite(filename, pdg, field);
59+
60+
}
61+

0 commit comments

Comments
 (0)