-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathevd.h
50 lines (39 loc) · 1.57 KB
/
evd.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#include "FWClasses.h"
////////////////////////////////////////////////////
////////////////////////////////////////////////////
void evd(const char* data_path)
{
gSystem->Load("libVsdDict.so");
gSystem->Load("libFWDict.so");
VsdProvider* prov = new VsdProvider(data_path);
eveMng = REveManager::Create();
ROOT::RWebWindowsManager::SetLoopbackMode(false);
ROOT::Experimental::gEve->GetWebWindow()->SetRequireAuthKey(false);
ROOT::Experimental::gEve->GetWebWindow()->SetClientVersion("10.3");
std::string locPath = "ui5";
eveMng->AddLocation("unidir/", locPath);
eveMng->SetDefaultHtmlPage("file:unidir/eventDisplay.html");
// gEnv->SetValue("WebGui.HttpMaxAge", 3600);
createScenesAndViews();
auto collectionMng = new CollectionManager(prov);
auto eventMng = new EventManager(collectionMng, prov);
eventMng->UpdateTitle();
eventMng->SetName(data_path);
auto massDialog = new InvMassDialog();
eventMng->AddElement(massDialog);
eveMng->GetWorld()->AddElement(eventMng);
auto deviator = std::make_shared<FWSelectionDeviator>();
eveMng->GetSelection()->SetDeviator(deviator);
eveMng->GetHighlight()->SetDeviator(deviator);
for (auto &vsdc : prov->m_collections)
{
// printf("vsd collection ====== %s\n", vsdc->m_name.c_str());
if (vsdc->m_purpose == "EventInfo")
continue;
collectionMng->addCollection(vsdc);
}
eventMng->GotoEvent(0);
//((REveViewer*)(ROOT::Experimental::gEve->GetViewers()->FirstChild()))->SetMandatory(false);
gEnv->SetValue("WebEve.DisableShow", 1);
//eveMng->Show();
}