3 Macro to generate random tracks and clusters.
4 Fast MC - Geant equivalent used
10 void simul(Int_t npoints){
12 // simulation submit script
14 printf("Hallo world\n");
16 gROOT->LoadMacro("$mcPath/AliTPCclusterFast.cxx+");
18 AliTPCclusterFast::fPRF = new TF1("fprf","gausn",-5,5);
19 AliTPCclusterFast::fTRF = new TF1("ftrf","gausn",-5,5);
20 AliTPCclusterFast::fPRF->SetParameters(1,0,0.5);
21 AliTPCclusterFast::fTRF->SetParameters(1,0,0.5);
23 AliTPCtrackFast::Simul("trackerSimul.root",npoints);
33 AliTPCtrackFast track0;
35 AliTPCtrackFast *track1;
41 if (!objfile.Contains("root")) continue; // protection
42 TFile currentFile(objfile.Data());
43 printf("Open file:Counter\t%d\tMerging file %s\n",counter,objfile.Data());
44 track1=(AliTPCtrackFast)currentFile.Get("track");
45 if (!track1) continue;
49 TFile f("mergetrack.root","recreate");
50 track0.Write("track");
57 void DrawdEdxResolExample(){
59 // Example analysis to make an space point resolution study
61 TChain * chain = AliXRDPROOFtoolkit::MakeChain("trackerSimul.list", "simulTrack",0,100);
62 chain->SetCacheSize(10000000000);
65 // 1.) Qmax/Qtot as function of the input ionization density
67 chain->Draw("tr.CookdEdxDmax(0,0.6,1,0,1,0)/tr.CookdEdxDtot(0,0.6,1,0,1,0):tr.fMNprim>>hisQtotMax(10,10,50)","","prof",10000);
69 // 2.) Non linearity due to the tucncation Qtot_{60%}/Qtot 100%
71 chain->Draw("tr.CookdEdxDtot(0,0.6,1,0,1,0)/tr.CookdEdxDtot(0,0.99,1,0,1,0):tr.fMNprim>>hisQtot60100(10,10,50)","","prof",10000);