Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

LCDG4RunAction Class Reference

#include <LCDG4RunAction.hh>

Inheritance diagram for LCDG4RunAction:

Inheritance graph
[legend]
Collaboration diagram for LCDG4RunAction:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LCDG4RunAction (char *xml_file)
 ~LCDG4RunAction ()
void BeginOfRunAction (const G4Run *)
void EndOfRunAction (const G4Run *)

Private Attributes

char * detname

Constructor & Destructor Documentation

LCDG4RunAction::LCDG4RunAction char *  xml_file  ) 
 

Definition at line 20 of file LCDG4RunAction.cc.

References detname.

00020                                              {
00021   // Store the detector name as the name of the xml file
00022   detname = xml_file;
00023 }

LCDG4RunAction::~LCDG4RunAction  ) 
 

Definition at line 26 of file LCDG4RunAction.cc.

00027 {}


Member Function Documentation

void LCDG4RunAction::BeginOfRunAction const G4Run *   ) 
 

Definition at line 29 of file LCDG4RunAction.cc.

References LCDG4LcioHelper::beginRun(), detname, and LCDG4LcioHelper::getInstance().

00030 {
00031   G4cout << "### Run " << aRun->GetRunID() << " start." << G4endl;
00032 
00033   G4RunManager::GetRunManager()->SetRandomNumberStore(true);
00034 
00035   if (G4VVisManager::GetConcreteInstance()) {
00036     G4UImanager* UI = G4UImanager::GetUIpointer();
00037     UI->ApplyCommand("/vis/scene/notifyHandlers");
00038   }
00039 
00040   LCDG4LcioHelper::getInstance()->beginRun(aRun, detname);
00041 }

void LCDG4RunAction::EndOfRunAction const G4Run *   ) 
 

Definition at line 43 of file LCDG4RunAction.cc.

References LCDG4LcioHelper::endRun(), and LCDG4LcioHelper::getInstance().

00043                                                 {
00044   if (G4VVisManager::GetConcreteInstance()) {
00045     G4UImanager::GetUIpointer()->ApplyCommand("/vis/viewer/update");
00046   }
00047 
00048   // LCIO cleanup
00049   LCDG4LcioHelper::getInstance()->endRun();
00050 }


Member Data Documentation

char* LCDG4RunAction::detname [private]
 

Definition at line 29 of file LCDG4RunAction.hh.

Referenced by BeginOfRunAction(), and LCDG4RunAction().


The documentation for this class was generated from the following files:
Generated on Thu Oct 7 18:45:06 2004 for LCDG4 by doxygen 1.3.4