Message: Re: Obtaining run number from EventAction Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Obtaining run number from EventAction 

Forum: Event and Track Management
Re: None Obtaining run number from EventAction (Kate Ross)
Date: 19 Apr, 2004
From: Jeremy McCormick <Jeremy McCormick>


You can use this to retrieve and print the current run ID from anyplace:

  G4int currRunID = G4RunManager::GetRunManager()->GetCurrentRun()->GetRunID();
  G4cout << "currRunID: " + currRunID << G4endl;


Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

 Add Message Add Message
to: "Re: Obtaining run number from EventAction"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]