1 // Label is used to store scanning result for tracks and trackelts.
3 // BIT(1) stores the original selection.
4 // BIT(0) stores the user selection (set to same value as b1 at init).
6 // This allows to check all possible combinations.
17 { "VT", "PrimVertTracks" },
18 { "VTPC", "PrimVertTPC" },
19 { "VSPD", "PrimVertSPD" }
22 void make_scan_results()
24 TFile *f = TFile::Open("scan_results.root", "UPDATE");
28 T = new TTree("SR", "Scanning results");
30 TClonesArray* ts = new TClonesArray("AliESDtrack", 32);
31 TBranch * tb = T->Branch("T", &ts);
34 AliMultiplicity *ms = 0;
35 TBranch *mb = T->Branch("M", &ms);
37 for (Int_t v = 0; v < 3; ++v)
40 vvv[v].branch = T->Branch(vvv[v].bname, &vvv[v].vert);
43 for (Int_t i=0; i<=9999; ++i)
47 name.Form("Tracks_%04d", i);
48 ts = (TClonesArray*) f->Get(name);
52 name.Form("Tracklets_%04d", i);
53 ms = (AliMultiplicity*) f->Get(name);
55 Error("make_scan_results", "'%s' not found.", name.Data());
60 for (Int_t v = 0; v < 3; ++v)
62 name.Form("%s_%04d", vvv[v].oname, i);
63 vvv[v].vert = (AliESDVertex*) f->Get(name);
65 Error("make_scan_results", "'%s' not found.", name.Data());
66 vvv[v].branch->SetAddress(&vvv[v].vert);
73 for (Int_t v = 0; v < 3; ++v) delete vvv[v].vert;