Message: Re: Where to access event quantities Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Where to access event quantities 

Forum: Biasing and Scoring
Re: Question Where to access event quantities (Noa Rensing)
Date: 12 Mar, 2013
From: Tsukasa Aso <Tsukasa Aso>


  As you pointed out there are several ways for accessing information during events.

When you use Run::RecordEvent() method, it means you use a customized Run class
and generate it in your RunAction class. The RunAction object has to be registered to RunManager.
In this case the Run object will be renewed (instantiated and deleted) for every RUN.

When you use EventAction::EndOfEvent() method for accessing information during events,
you may also need to use RunAction class for preparation of opening/closing the output.
Both the EventAction and the RunAction objects have to be registered into RunManager. 
In this case these EventAction and RunAction objects will be kept during the program running.

  The choice depends on your purpose and the life cycle of objects including its data members.


 Add Message Add Message
to: "Re: Where to access event quantities"

 Subscribe Subscribe

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