Run action class.
More...
#include <B5RunAction.hh>
Run action class.
Definition at line 43 of file B5RunAction.hh.
Definition at line 41 of file B5RunAction.cc.
43 fEventAction(eventAction)
48 auto analysisManager = G4AnalysisManager::Instance();
49 G4cout <<
"Using " << analysisManager->GetType() <<
G4endl;
52 analysisManager->SetNtupleMerging(
true);
54 analysisManager->SetVerboseLevel(1);
55 analysisManager->SetFileName(
"B5");
62 ->CreateH1(
"Chamber1",
"Drift Chamber 1 # Hits", 50, 0., 50);
64 ->CreateH1(
"Chamber2",
"Drift Chamber 2 # Hits", 50, 0., 50);
68 ->CreateH2(
"Chamber1 XY",
"Drift Chamber 1 X vs Y",
69 50, -1000., 1000, 50, -300., 300.);
71 ->CreateH2(
"Chamber2 XY",
"Drift Chamber 2 X vs Y",
72 50, -1500., 1500, 50, -300., 300.);
77 analysisManager->CreateNtuple(
"B5",
"Hits");
78 analysisManager->CreateNtupleIColumn(
"Dc1Hits");
79 analysisManager->CreateNtupleIColumn(
"Dc2Hits");
80 analysisManager->CreateNtupleDColumn(
"ECEnergy");
81 analysisManager->CreateNtupleDColumn(
"HCEnergy");
82 analysisManager->CreateNtupleDColumn(
"Time1");
83 analysisManager->CreateNtupleDColumn(
"Time2");
85 ->CreateNtupleDColumn(
"ECEnergyVector", fEventAction->
GetEmCalEdep());
87 ->CreateNtupleDColumn(
"HCEnergyVector", fEventAction->
GetHadCalEdep());
88 analysisManager->FinishNtuple();
G4GLOB_DLL std::ostream G4cout
std::vector< G4double > & GetEmCalEdep()
std::vector< G4double > & GetHadCalEdep()
B5RunAction::~B5RunAction |
( |
| ) |
|
|
virtual |
Definition at line 94 of file B5RunAction.cc.
96 delete G4AnalysisManager::Instance();
void B5RunAction::BeginOfRunAction |
( |
const G4Run * |
| ) |
|
|
virtual |
Reimplemented from G4UserRunAction.
Definition at line 101 of file B5RunAction.cc.
107 auto analysisManager = G4AnalysisManager::Instance();
112 analysisManager->OpenFile();
void B5RunAction::EndOfRunAction |
( |
const G4Run * |
| ) |
|
|
virtual |
Reimplemented from G4UserRunAction.
Definition at line 117 of file B5RunAction.cc.
121 auto analysisManager = G4AnalysisManager::Instance();
122 analysisManager->Write();
123 analysisManager->CloseFile();
The documentation for this class was generated from the following files: