31 #include "RunAction.hh"
32 #include "Analysis.hh"
39 :fDetector(det),fPrimary(pri)
55 fXVector = CLHEP::HepVector(32);
56 fYVector = CLHEP::HepVector(32);
57 fThetaVector = CLHEP::HepVector(32);
58 fPhiVector = CLHEP::HepVector(32);
63 G4cout <<
"##### Create analysis manager " <<
" " <<
this <<
G4endl;
67 G4cout <<
"Using " << man->GetType() <<
" analysis manager" <<
G4endl;
71 man->OpenFile(
"nanobeam");
72 man->SetFirstHistoId(1);
73 man->SetFirstNtupleId(1);
77 man->CreateNtuple(
"ntuple0",
"BeamProfile");
78 man->CreateNtupleDColumn(
"xIn");
79 man->CreateNtupleDColumn(
"yIn");
80 man->CreateNtupleDColumn(
"zIn");
86 man->CreateNtuple(
"ntuple1",
"Grid");
87 man->CreateNtupleDColumn(
"xIn");
88 man->CreateNtupleDColumn(
"yIn");
89 man->CreateNtupleDColumn(
"e");
94 man->CreateNtuple(
"ntuple2",
"Coef");
95 man->CreateNtupleDColumn(
"xIn");
96 man->CreateNtupleDColumn(
"yIn");
97 man->CreateNtupleDColumn(
"thetaIn");
98 man->CreateNtupleDColumn(
"phiIn");
118 m = CLHEP::HepMatrix(32,32);
122 G4cout <<
"===> NANOBEAM LINE INTRINSIC ABERRATION COEFFICIENTS (units of micrometer and mrad) :" <<
G4endl;
128 CLHEP::HepVector
tmp(32,0);
138 tmp = m*fThetaVector;
165 delete G4AnalysisManager::Instance();
void BeginOfRunAction(const G4Run *)
G4GLOB_DLL std::ostream G4cout
void EndOfRunAction(const G4Run *)
ExG4HbookAnalysisManager G4AnalysisManager
CLHEP::HepMatrix GetMatrix()