63 asciiFile(0),nEnteringTracks(0), totEnteringEnergy(0)
130 man->
CreateH1(
"h1",
"Energy, all /keV", 100,0.,100.);
131 man->
CreateH1(
"h2",
"Energy, entering detector /keV", 500,0.,500.);
134 man->
CreateH2(
"d1",
"y-z, all /mm", 100,-500.,500.,100,-500.,500.);
135 man->
CreateH2(
"d2",
"y-z, entering detector /mm", 200,-50.,50.,200,-50.,50.);
158 delete G4AnalysisManager::Instance();
172 G4cout <<
"Total Entering Detector Energy : "
189 G4cout <<
"Total Entering Detector Energy : "
193 G4cout <<
"##########################################" <<
G4endl;
198 G4int totEntries = 0;
201 G4cout <<
"##########################################" <<
G4endl;
202 for (
size_t i=0; loopAgain; i++)
207 G4cout <<
"End of Run summary (thread= " << i <<
")" <<
G4endl;
209 G4cout <<
"Total Entering Detector : " << part <<
G4endl;
211 G4cout <<
"Total Entering Detector Energy : "
216 G4cout <<
"##########################################" <<
G4endl;
224 G4cout <<
"End of Run summary (MT) global" << G4endl <<
G4endl;
225 G4cout <<
"Total Entering Detector : " << totEntries <<
G4endl;
226 G4cout <<
"Total Entering Detector Energy : "
229 G4cout <<
"##########################################" <<
G4endl;
270 (*asciiFile) << std::setiosflags(std::ios::fixed)
271 << std::setprecision(3)
274 (*asciiFile) <<
eKin;
275 (*asciiFile) << std::setiosflags(std::ios::fixed)
276 << std::setprecision(3)
280 (*asciiFile) << std::setiosflags(std::ios::fixed)
281 << std::setprecision(3)
285 (*asciiFile) << std::setiosflags(std::ios::fixed)
286 << std::setprecision(3)
G4double GetKineticEnergy() const
G4bool FillH2(G4int id, G4double xvalue, G4double yvalue, G4double weight=1.0)
static const G4double pos
static constexpr double MeV
static constexpr double keV
static constexpr double mm
G4bool SetFirstHistoId(G4int firstId)
G4int CreateH2(const G4String &name, const G4String &title, G4int nxbins, G4double xmin, G4double xmax, G4int nybins, G4double ymin, G4double ymax, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &xbinSchemeName="linear", const G4String &ybinSchemeName="linear")
G4bool OpenFile(const G4String &fileName="")
std::map< G4int, G4int > * nEnteringTracks
void Update(G4double energy, G4int threadID)
G4int CreateH1(const G4String &name, const G4String &title, G4int nbins, G4double xmin, G4double xmax, const G4String &unitName="none", const G4String &fcnName="none", const G4String &binSchemeName="linear")
G4bool FillNtupleDColumn(G4int id, G4double value)
#define G4MUTEX_INITIALIZER
static XrayTelAnalysis * getInstance()
std::ofstream * asciiFile
const G4ThreeVector & GetPosition() const
void book(G4bool isMaster)
void analyseStepping(const G4Track &track, G4bool entering)
G4int CreateNtupleDColumn(const G4String &name)
std::map< G4int, G4double > * totEnteringEnergy
G4GLOB_DLL std::ostream G4cout
G4int CreateNtuple(const G4String &name, const G4String &title)
const G4ThreeVector & GetMomentumDirection() const
static XrayTelAnalysis * instance
void finish(G4bool isMaster)
G4bool FillH1(G4int id, G4double value, G4double weight=1.0)