Macro checking if the current $ALICE_ROOT creates a geometry different w.r.t. to...
[u/mrichter/AliRoot.git] / macros / SetTPCParam.C
1 AliTPCParam * SetTPCParam()
2 {
3   TDirectory *dirsave=gDirectory;
4
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
45   TFile f("$ALICE_ROOT/TPC/AliTPCprf2d.root");
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;
54   dirsave->cd();
55   return param;
56 };