]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/alice-macros/track_fitter.C
SPD trackelts were too thick.
[u/mrichter/AliRoot.git] / EVE / alice-macros / track_fitter.C
CommitLineData
84079bc7 1//
2// Select points from TEvePointSet(clusters, hits, etc.) with Alt+mouse-left
3// click action.
4//
5// In AliEvetrackFitEditor press "Fit" button to make track fit on the
6// selected points. To fit new track, press "Reset".
7
8void track_fitter(Int_t mode = 1)
9{
10 gEve->GetSelection()->SetPickToSelect(1);
11 gEve->GetHighlight()->SetPickToSelect(0);
12
13 if (mode == 0)
14 {
15 // helix fit
16 AliEveTrackFitter* t = new AliEveTrackFitter();
17 gEve->AddElement(t);
18 t->Start();
19 }
20 else
21 {
22 // straight line fit
23 AliEveCosmicRayFitter* t = new AliEveCosmicRayFitter();
24 gEve->AddElement(t);
25 t->Start();
26 }
27}