Hi Everyone,
as stated in the subject, I am asking for your help with a problem related to the implementation of buttons for event visualization within a standalone code.
I am using ROOT v6.38.00 on a MacBook Pro with macOS Tahoe 26.2.
The program compiles, but when I run it, it doesn’t work. Fundamentally, if I click on any button in the Event Controls, I get the following error:
========================================
S13361 EVENT MOVIE PLAYER
========================================
Caricamento eventi in corso…
Caricato evento 100
Caricato evento 200
Caricato evento 300
Caricato evento 400
Caricato evento 500
Caricato evento 600
Caricato evento 700
Caricato evento 800
Caricato evento 900
Caricato evento 1000
Caricato evento 1100
Caricato evento 1200
Caricato evento 1300
Caricato evento 1400
Caricato evento 1500
========================================
TOTALE EVENTI CARICATI: 1500
========================================
Evento: 0/1499
=== CONTROLLI DISPONIBILI ===
1\. Usa i bottoni nella finestra ‘Event Controls’
2\. ‘PLAY Movie’: visualizza tutti gli eventi in sequenza
3\. Premi Ctrl+C nel terminale per fermare il film
========================================
input_line_28:2:3: error: use of undeclared identifier ‘FirstEvent_C’
(FirstEvent_C())
^
Error in : Error evaluating expression (FirstEvent_C())
Execution of your code was aborted.
input_line_30:2:3: error: use of undeclared identifier ‘PrevEvent_C’
(PrevEvent_C())
^
Error in : Error evaluating expression (PrevEvent_C())
Execution of your code was aborted.
input_line_32:2:3: error: use of undeclared identifier ‘NextEvent_C’
(NextEvent_C())
^
Error in : Error evaluating expression (NextEvent_C())
Execution of your code was aborted.
input_line_34:2:3: error: use of undeclared identifier ‘LastEvent_C’
(LastEvent_C())
^
Error in : Error evaluating expression (LastEvent_C())
Execution of your code was aborted.
input_line_36:2:3: error: use of undeclared identifier ‘PlayMovie_C’
(PlayMovie_C())
^
Error in : Error evaluating expression (PlayMovie_C())
Execution of your code was aborted.
input_line_38:2:3: error: use of undeclared identifier ‘StopMovie_C’
(StopMovie_C())
^
Error in : Error evaluating expression (StopMovie_C())
Execution of your code was aborted.
input_line_40:2:3: error: use of undeclared identifier ‘GotoEvent_C’
(GotoEvent_C())
^
Error in : Error evaluating expression (GotoEvent_C())
Execution of your code was aborted.
Could someone please help me understand where’s the error and especially how to fix it.
In attach you can find the code .cpp; I’m sorry, but I’m unable to attach the .dat data file for completeness because the system does not accept .dat files.
Thank you all for the support, and I would like to take this opportunity to wish you all the best for the coming year.
Bye
Francesco.
Test_EventDisplay.cpp (10.6 KB)