24int main(
int argc,
char** argv) {
28 for (
int iArg = 1; iArg < argc; iArg++) {
29 if (strcmp(argv[iArg],
"--help") == 0 or strcmp(argv[iArg],
"-h") == 0) {
32 }
else if (strcmp(argv[iArg],
"--verbose") == 0 or
33 strcmp(argv[iArg],
"-v") == 0) {
35 }
else if (file.empty()) {
44 std::cout <<
"[ ldmx-eve ] : Starting up ROOT app, manager, and browser."
50 TRint* app =
new TRint(
"app", dummyArgC, dummyArgV, 0, 0,
true);
53 TEveManager* manager = TEveManager::Create(kTRUE,
"FV");
55 TEveBrowser* browser = manager->GetBrowser();
56 browser->StartEmbedding(TRootBrowser::kLeft);
59 std::cout <<
"[ ldmx-eve ] : Constructing Event Display window and drawing "
67 std::cout <<
"[ ldmx-eve ] : Opening file " << file << std::endl;
71 std::cerr <<
"[ ldmx-eve ] : Unable to open file! Exiting..." << std::endl;
75 browser->ReallyDelete();
80 browser->SetTabTitle(
"Event Control", 0);
81 browser->StopEmbedding();
84 std::cout <<
"[ ldmx-eve ] : Event display window has been opened. Enter "
85 "'.q' to quit the root prompt."