Skip to content

Commit 33cc009

Browse files
committed
downloads
1 parent e1ecfa0 commit 33cc009

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

source/framework/core/src/TRestEvent.cxx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949

5050
#include "TRestEvent.h"
5151

52+
#include "TRestRun.h"
53+
5254
using namespace std;
5355

5456
ClassImp(TRestEvent);
@@ -170,7 +172,11 @@ void TRestEvent::RestartPad(Int_t nElements) {
170172

171173
void TRestEvent::InitializeWithMetadata(TRestRun* run) { Initialize(); }
172174

173-
void TRestEvent::InitializeReferences(TRestRun* run) { fRun = run; }
175+
void TRestEvent::InitializeReferences(TRestRun* run) {
176+
fRun = run;
177+
SetRunOrigin(fRun->GetRunNumber());
178+
SetSubRunOrigin(fRun->GetSubRunNumber());
179+
}
174180

175181
//////////////////////////////////////////////////////////////////////////
176182
/// Run to print event data info on console

0 commit comments

Comments
 (0)