VertexFile_Gen Class Reference

Ratpac-two: RAT::VertexFile_Gen Class Reference
Ratpac-two
RAT::VertexFile_Gen Class Reference

Reads in RAT root trees and simulates the MC event in geant. More...

#include <VertexFile_Gen.hh>

Inheritance diagram for RAT::VertexFile_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
 
TTree * fTTree
 
DS::RootfDS
 
- Protected Attributes inherited from GLG4Gen
double nextTime
 

Detailed Description

Reads in RAT root trees and simulates the MC event in geant.

Author
R. Bonventre rbonv.nosp@m.entr.nosp@m.e@lbl.nosp@m..gov – contact person

REVISION HISTORY:
27/02/2014 : R. Bonventre - First version 22/02/2015 : R. Bonventre - Modified for RAT-PAC

VertexFile_Gen is used to take event vertices generated by RAT or any other program (for example GENIE atmospherics ) and simulate them in RAT. Unlike InRootProducer, which just runs RAT processors on fully simulated data, this generator lets you run Geant4 using just the MCParticle and MCParent information. To use this generator the command is /generator/add vertexfile filename[:POSITION][:TIME][:NEVENTS][:NOFFSET]

Where the file is any RAT root file that at least has MC particle information. If there is no POSITION or TIME or they are set to 'default' it will use the position / time given in the root 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::VertexFile_Gen::ResetTime ( double  offset = 0.0)
virtual
Parameters
[in]offsetTime reset to this value

Implements GLG4Gen.

◆ SetPosState()

void RAT::VertexFile_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::VertexFile_Gen::SetState ( G4String  state)
virtual
Parameters
[in]stateSetState state

Implements GLG4Gen.

◆ SetTimeState()

void RAT::VertexFile_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/VertexFile_Gen.hh
  • /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/gen/src/VertexFile_Gen.cc