RooTracker_Gen Class Reference
|
Ratpac-two
|
Reads in RooTracker StdHep ROOT files. More...
#include <RooTracker_Gen.hh>
Public Member Functions | |
| void | GenerateEvent (G4Event *event) |
| bool | IsRepeatable () const |
| void | ResetTime (double offset=0.0) |
| void | SetState (G4String state) |
| G4String | GetState () const |
| void | SetTimeState (G4String state) |
| G4String | GetTimeState () const |
| void | SetPosState (G4String state) |
| G4String | GetPosState () const |
Public Member Functions inherited from GLG4Gen | |
| virtual double | NextTime () const |
| virtual void | SubtractTime (double time) |
| virtual void | SetVertexState (G4String) |
| virtual G4String | GetVertexState () const |
Protected Attributes | |
| G4String | fStateStr |
| int | fCurrentEvent |
| Index of current event from ROOT file. | |
| int | fNumEvents |
| Read up to this many events from file. | |
| int | fMaxEvent |
| Number of events in ROOT file. | |
| TTimeStamp | fLastEventTime |
| Used to calculate time between events. | |
| GLG4TimeGen * | fTimeGen |
| GLG4PosGen * | fPosGen |
| TFile * | fFile |
| TTree * | fTTree |
| StdHepRecord * | fRec |
Protected Attributes inherited from GLG4Gen | |
| double | nextTime |
Detailed Description
Reads in RooTracker StdHep ROOT files.
REVISION HISTORY:
11/18/2024 : A. Mastbaum - First version, based on VertexFile_Gen
RooTracker_Gen is used to take event vertices generated by GENIE, etc. and simulate them in RAT. Usage:
/generator/add vertexfile filename[:POSITION][:TIME][:NEVENTS][:NOFFSET]
Where the file is a RooTracker file. If there is no POSITION or TIME or they are set to 'default' it will use the position / time given in the input file for that event. It will simulate NEVENTS of the events in the file, starting with event NOFFSET. If it runs out of events before you get through as many as specified with /rat/run/start, it will end the simulation after the completion of that event.
Member Function Documentation
◆ ResetTime()
|
virtual |
- Parameters
-
[in] offset Time reset to this value
Implements GLG4Gen.
◆ SetPosState()
|
virtual |
specify/get parameters for time generator (eg from generator/pos commands) overriding ROOT file
- Parameters
-
[in] state the pos generator state
Reimplemented from GLG4Gen.
◆ SetState()
|
virtual |
- Parameters
-
[in] state SetState state
Implements GLG4Gen.
◆ SetTimeState()
|
virtual |
specify/get parameters for time generator (eg from generator/rate/ commands) overriding ROOT file
- Parameters
-
[in] state the time generator state
Reimplemented from GLG4Gen.
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/gen/include/RAT/RooTracker_Gen.hh
- /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/gen/src/RooTracker_Gen.cc
Generated by
Public Member Functions inherited from