+ //
+ // This part is for the bending plane view
+ //
+ pack->NewSlot()->MakeCurrent();
+ TEveViewer *bpViewer = gEve->SpawnNewViewer("V0 bending plane View");
+ TEveScene *bpScene = gEve->SpawnNewScene("V0 bending plane Scene");
+ bpViewer->AddScene(bpScene);
+ bpScene->AddElement(fM);
+ // This is the to-do list for the bending plane:
+ // 1. fix the view to orthographic XOY (no rotation allowed but moving the center ok) --tbu
+ // 2. show axis and tickles along X and Y
+ // 3. show the center, the main vertex and the detectors for this view;
+ // 4. show V0 direction in the bending plane with arrow length proportional to pT;
+ // 5. show angles with respect to axis (phi angle).
+ bpViewer->GetGLViewer()->SetCurrentCamera(TGLViewer::kCameraOrthoXOY);
+ // bpViewer->GetGLViewer()->GetOrthoXOYCamera()->SetEnableRotate(kFALSE);
+ bpViewer->GetGLViewer()->ResetCamerasAfterNextUpdate();
+ // bpViewer->GetGLViewer()->ResetCamerasAfterNextUpdate();
+ TGLCamera& bpCam = bpViewer->GetGLViewer()->CurrentCamera();
+ bpCam.SetExternalCenter(kTRUE);
+ // bpCam.SetEnableRotate(kFALSE);
+ bpCam.SetCenterVec(fM->fRecDecayV.fX, fM->fRecDecayV.fY, fM->fRecDecayV.fZ);
+ // end of the bending plane part
+
+ //
+ // This part is for the decay plane view
+ //
+ pack->NewSlot()->MakeCurrent();
+ TEveViewer *dpViewer = gEve->SpawnNewViewer("V0 decay plane View");
+ TEveScene *dpScene = gEve->SpawnNewScene("V0 decay plane Scene");
+ dpViewer->AddScene(dpScene);
+ dpScene->AddElement(fM);
+ // This is the to-do list for the decay plane:
+ // 1. fix the view to decay plane (no rotation allowed but moving the center ok)
+ // 2. show V0 direction with a vertical arrow length proportional to pT;
+ // 3. show the center, the main vertex and the detectors for this view;
+ // 4. show the x,y and z axis and the different angles;
+ // 5. draw the dca between daughters and the extrapolation to the main vertex.
+ dpViewer->GetGLViewer()->ResetCamerasAfterNextUpdate();
+ TGLCamera& dpCam = dpViewer->GetGLViewer()->CurrentCamera();
+ dpCam.SetExternalCenter(kTRUE);
+ dpCam.SetCenterVec(fM->fRecDecayV.fX, fM->fRecDecayV.fY, fM->fRecDecayV.fZ);
+ // end of the decay plane part
+
+
+ // This part is for displaying the information