Access to TRestSignalEvent from TRestTrackEvent .root file

REST version : v2.2.24.
REST commit : c865cb4e.

Hi again,

I have a file, containing TRestTrackEvents; if I understand correctly, TRestG4Events, TRestHitsEvents and TRestSignalEvents should be stored in this file as well?

TRestTrackEvents I can access in macro by:

string f_string_name = "TTrackfile.root";
TRestRun* run = new TRestRun(f_string_name);
TRestTrackEvent *signalEvents = (TRestTrackEvent *)run->GetInputEvent();

But is it possible to access other types of events as well from the same file?
Thanks in advance!

Did you activate inputEvent?

<parameter name="inputEvent" value="ON"/>

As I understand this writes to disk the latest state of the event before being transformed to another type. But I let @nkx confirm that.

1 Like

Hi @jgalan,

Yes, I have turned on this parameter in my .rml files.