RooTracker_Gen Class Reference

Ratpac-two: RAT::RooTracker_Gen Class Reference
Ratpac-two
RAT::RooTracker_Gen Class Reference

Reads in RooTracker StdHep ROOT files. More...

#include <RooTracker_Gen.hh>

Inheritance diagram for RAT::RooTracker_Gen:
GLG4Gen

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.
 
GLG4TimeGenfTimeGen
 
GLG4PosGenfPosGen
 
TFile * fFile
 
TTree * fTTree
 
StdHepRecordfRec
 
- Protected Attributes inherited from GLG4Gen
double nextTime
 

Detailed Description

Reads in RooTracker StdHep ROOT files.

Author
A. Mastbaum mastb.nosp@m.aum@.nosp@m.physi.nosp@m.cs.r.nosp@m.utger.nosp@m.s.ed.nosp@m.u

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()

void RAT::RooTracker_Gen::ResetTime ( double  offset = 0.0)
virtual
Parameters
[in]offsetTime reset to this value

Implements GLG4Gen.

◆ SetPosState()

void RAT::RooTracker_Gen::SetPosState ( G4String  state)
virtual

specify/get parameters for time generator (eg from generator/pos commands) overriding ROOT file

Parameters
[in]statethe pos generator state

Reimplemented from GLG4Gen.

◆ SetState()

void RAT::RooTracker_Gen::SetState ( G4String  state)
virtual
Parameters
[in]stateSetState state

Implements GLG4Gen.

◆ SetTimeState()

void RAT::RooTracker_Gen::SetTimeState ( G4String  state)
virtual

specify/get parameters for time generator (eg from generator/rate/ commands) overriding ROOT file

Parameters
[in]statethe 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