Gsim Class Reference

Ratpac-two: RAT::Gsim Class Reference
Ratpac-two
Inheritance diagram for RAT::Gsim:
RAT::Producer

Public Member Functions

 Gsim (ProcBlock *theMainBlock)
 
virtual void BeginOfRunAction (const G4Run *aRun)
 
virtual void EndOfRunAction (const G4Run *aRun)
 
virtual void BeginOfEventAction (const G4Event *anEvent)
 
virtual void EndOfEventAction (const G4Event *anEvent)
 
virtual void PreUserTrackingAction (const G4Track *aTrack)
 
virtual void PostUserTrackingAction (const G4Track *aTrack)
 
void MakeRun (int runID)
 
void MakeEvent (const G4Event *g4ev, DS::Root *ds)
 
bool GetStoreParticleTraj (const G4String &particleName)
 
- Public Member Functions inherited from RAT::Producer
 Producer ()
 
 Producer (ProcBlock *theBlock)
 
virtual ~Producer ()
 
ProcBlockGetMainBlock ()
 
void SetMainBlock (ProcBlock *block)
 
virtual void BeginOfRun (DS::Run *run)
 
virtual void EndOfRun (DS::Run *run)
 

Static Public Member Functions

static bool GetFillPointCont ()
 
static void SetFillPointCont (bool on=false)
 
static void SetStoreParticleTraj (const G4String &particleName, const bool &gDoStore)
 
static G4String GetStoreParticleTrajString (const bool &gDoStore)
 
static bool GetStoreOpticalTrackID ()
 
static void SetStoreOpticalTrackID (bool on=false)
 
static void SetMaxWallTime (double time)
 

Protected Member Functions

void Init ()
 
void AddMCPhoton (DS::MCPMT *rat_mcpmt, const GLG4HitPhoton *photon, EventInfo *exinfo=NULL, std::string process="unknown")
 
void AddMCNestedTubeHit (DS::MCNestedTube *rat_mcnt, const GeoFiberSensitiveDetectorHit *hit)
 
void PhotonRecurse (std::vector< int > &PhotonIDs, int trackID, int &parentID, int &firstCreatedID)
 
void SetOpticalPhotonIDs (std::string particle_type, int trackID, int parentID)
 

Protected Attributes

std::vector< int > OpticalPhotonIDs
 
G4RunManager * theRunManager
 
GLG4DebugMessengertheDebugMessenger
 
RAT::DS::PMTInfofPMTInfo
 
std::vector< RAT::PMTTime * > fPMTTime
 
std::vector< RAT::PMTCharge * > fPMTCharge
 
RAT::DS::NestedTubeInfofNestedTubeInfo
 
RAT::DS::Runrun
 
int runID
 
TTimeStamp utc
 
int maxpe
 
int nabort
 
int npmts
 
double pretriggertime
 
double eventwindow
 
std::vector< double > specharge
 
std::vector< double > transitTime
 
std::vector< double > fTubeRate
 
double fNnoise
 
double noiseRate
 
double channelEfficiency
 
std::map< int, std::vector< double > > trackEndMap
 
bool fInitialStoreTrajectoryState
 
G4VisExecutive * theVisExecutive
 
- Protected Attributes inherited from RAT::Producer
ProcBlockmainBlock
 

Static Protected Attributes

static bool FillPointCont = false
 
static bool StoreOpticalTrackID = false
 
static double MaxWallTime = 0
 
static std::set< G4String > fStoreParticleTraj
 
static std::set< G4String > fDiscardParticleTraj
 

Member Function Documentation

◆ MakeEvent()

void RAT::Gsim::MakeEvent ( const G4Event *  g4ev,
DS::Root ds 
)

PMT simulation

Add "real" hits from actual simulated photons

hits from fibers

Member Data Documentation

◆ npmts

int RAT::Gsim::npmts
protected

PMT and noise simulation


The documentation for this class was generated from the following files:
  • /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/core/include/RAT/Gsim.hh
  • /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/core/src/Gsim.cc