VertexFile_Gen Class Reference
|
Ratpac-two
|
Reads in RAT root trees and simulates the MC event in geant. More...
#include <VertexFile_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 |
| TTree * | fTTree |
| DS::Root * | fDS |
Protected Attributes inherited from GLG4Gen | |
| double | nextTime |
Detailed Description
Reads in RAT root trees and simulates the MC event in geant.
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()
|
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/VertexFile_Gen.hh
- /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/gen/src/VertexFile_Gen.cc
Generated by
Public Member Functions inherited from