Setting drift gas via AliTPC title to have Ne-CO2-N up to 2010, Ne-CO2 later
[u/mrichter/AliRoot.git] / macros / SetTPCParam.C
CommitLineData
50d005ae 1AliTPCParam * SetTPCParam()
2{
4d68a14a 3 TDirectory *dirsave=gDirectory;
4
50d005ae 5 AliTPCParamSR * param = new AliTPCParamSR;
6 AliTPCPRF2D * prfinner = new AliTPCPRF2D;
7 AliTPCPRF2D * prfouter = new AliTPCPRF2D;
8 AliTPCRF1D * rf = new AliTPCRF1D(kTRUE);
9 param->SetTitle("75x40_100x60");
10
11
12 param->SetSectorAngles(20.,0.,20.,0.);
13 param->SetInnerRadiusLow(87.35);
14 param->SetInnerRadiusUp(130.6);
15 param->SetOuterRadiusLow(131.2);
16 param->SetOuterRadiusUp(252.2);
17 param->SetInnerPadPitchLength(0.75);
18 param->SetInnerPadPitchWidth(0.40);
19 param->SetOuterPadPitchLength(1.00);
20 param->SetOuterPadPitchWidth(0.60);
21 param->SetInnerNWires(3);
22 param->SetOuterNWires(4);
23
24 param->SetZeroSup(2); //3 is included !
25 param->SetDriftV(2.83e6);
26 param->SetDiffT(0.022);
27 param->SetDiffL(0.022);
28 param->SetNoise(1000);
29 param->SetGasGain(2.e4);
30 param->SetTFWHM(1.9e-7);
31 param->SetTSample(2.0e-7);
32 param->SetMaxTBin(445);
33 param->SetChipGain(12);
34 param->SetChipNorm(0.4);
35 param->SetNCrossRows(1);
36 param->SetFacSigmaPadRow(3.);
37 param->SetFacSigmaPad(3.);
38 param->SetFacSigmaTime(3.);
39 param->Update();
40 //Set z (time) response function
41 rf->SetGauss(param.GetZSigma(),param.GetZWidth(),1.);
42 rf->SetOffset(3*param.GetZSigma());
43 rf->Update();
44 //Set two dimensional pad response function
4d68a14a 45 TFile f("$ALICE_ROOT/TPC/AliTPCprf2d.root");
50d005ae 46 prfinner->Read("prf_07504_Gati_056068_d02");
47 prfouter->Read("prf_10006_Gati_047051_d03");
48 param->SetInnerPRF(prfinner); //param object is responsible for destroying objects
49 param->SetOuterPRF(prfouter);
50 param->SetTimeRF(rf);
51 f.Close();
52
53 //gTPCParam =param;
4d68a14a 54 dirsave->cd();
50d005ae 55 return param;
56};