Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ExExChRunAction Class Reference

#include <ExExChRunAction.hh>

Inheritance diagram for ExExChRunAction:
Collaboration diagram for ExExChRunAction:

Public Member Functions

 ExExChRunAction ()
 
virtual ~ExExChRunAction ()
 
virtual void BeginOfRunAction (const G4Run *)
 
virtual void EndOfRunAction (const G4Run *)
 
- Public Member Functions inherited from G4UserRunAction
 G4UserRunAction ()
 
virtual ~G4UserRunAction ()
 
virtual G4RunGenerateRun ()
 
virtual void SetMaster (G4bool val=true)
 
G4bool IsMaster () const
 

Additional Inherited Members

- Protected Attributes inherited from G4UserRunAction
G4bool isMaster
 

Detailed Description

Definition at line 38 of file ExExChRunAction.hh.

Constructor & Destructor Documentation

ExExChRunAction::ExExChRunAction ( )

Definition at line 41 of file ExExChRunAction.cc.

41  : G4UserRunAction(){
43 
44  G4AnalysisManager* analysisManager = G4AnalysisManager::Instance();
45  G4cout << "Using " << analysisManager->GetType() << G4endl;
46 
47  // Create directories
48  analysisManager->SetVerboseLevel(1);
49  analysisManager->SetFirstHistoId(1);
50 
51  // Creating ntuple
52  analysisManager->CreateNtuple("ExExChTree", "Angles and Positions");
53  analysisManager->CreateNtupleDColumn("angXin");
54  analysisManager->CreateNtupleDColumn("angYin");
55  analysisManager->CreateNtupleDColumn("posXin");
56  analysisManager->CreateNtupleDColumn("posYin");
57  analysisManager->CreateNtupleDColumn("angXout");
58  analysisManager->CreateNtupleDColumn("angYout");
59  analysisManager->FinishNtuple();
60 }
G4bool SetFirstHistoId(G4int firstId)
void SetPrintProgress(G4int i)
void SetVerboseLevel(G4int verboseLevel)
G4int CreateNtuple(const G4String &name, const G4String &title)
G4GLOB_DLL std::ostream G4cout
G4String GetType() const
static G4RunManager * GetRunManager()
Definition: G4RunManager.cc:79
#define G4endl
Definition: G4ios.hh:61
G4int CreateNtupleDColumn(const G4String &name)

Here is the call graph for this function:

ExExChRunAction::~ExExChRunAction ( )
virtual

Definition at line 64 of file ExExChRunAction.cc.

64  {
65  delete G4AnalysisManager::Instance();
66 }

Member Function Documentation

void ExExChRunAction::BeginOfRunAction ( const G4Run )
virtual

Reimplemented from G4UserRunAction.

Definition at line 70 of file ExExChRunAction.cc.

70  {
71  G4AnalysisManager* analysisManager = G4AnalysisManager::Instance();
72  G4String fileName = "ExExCh";
73  analysisManager->OpenFile(fileName);
74 }
G4bool OpenFile(const G4String &fileName="")

Here is the call graph for this function:

void ExExChRunAction::EndOfRunAction ( const G4Run )
virtual

Reimplemented from G4UserRunAction.

Definition at line 78 of file ExExChRunAction.cc.

79 {
80  G4AnalysisManager* analysisManager = G4AnalysisManager::Instance();
81  analysisManager->Write();
82  analysisManager->CloseFile();
83 
84 }

Here is the call graph for this function:


The documentation for this class was generated from the following files: