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");
88 analysisManager->FinishNtuple();
96 delete G4AnalysisManager::Instance();
107 auto analysisManager = G4AnalysisManager::Instance();
112 analysisManager->OpenFile();
121 auto analysisManager = G4AnalysisManager::Instance();
122 analysisManager->Write();
123 analysisManager->CloseFile();
B5EventAction * fEventAction
std::vector< G4double > & GetHadCalEdep()
virtual void BeginOfRunAction(const G4Run *)
Definition of the B5RunAction class.
Selection of the analysis technology.
Definition of the B5EventAction class.
std::vector< G4double > & GetEmCalEdep()
virtual void EndOfRunAction(const G4Run *)
B5RunAction(B5EventAction *eventAction)
G4GLOB_DLL std::ostream G4cout