Geant4  10.02.p02
XrayTelAnalysis Class Reference

#include <XrayTelAnalysis.hh>

+ Collaboration diagram for XrayTelAnalysis:

Public Member Functions

 ~XrayTelAnalysis ()
 
void book (G4bool isMaster)
 
void finish (G4bool isMaster)
 
void analyseStepping (const G4Track &track, G4bool entering)
 
void Update (G4double energy, G4int threadID)
 

Static Public Member Functions

static XrayTelAnalysisgetInstance ()
 

Private Member Functions

 XrayTelAnalysis ()
 

Private Attributes

G4double eKin
 
G4double x
 
G4double y
 
G4double z
 
G4double dirX
 
G4double dirY
 
G4double dirZ
 
G4String asciiFileName
 
G4String histFileName
 
std::ofstream * asciiFile
 
std::map< G4int, G4int > * nEnteringTracks
 
std::map< G4int, G4double > * totEnteringEnergy
 

Static Private Attributes

static XrayTelAnalysisinstance = 0
 

Detailed Description

Definition at line 58 of file XrayTelAnalysis.hh.

Constructor & Destructor Documentation

XrayTelAnalysis::~XrayTelAnalysis ( )

Definition at line 75 of file XrayTelAnalysis.cc.

References asciiFile, nEnteringTracks, and totEnteringEnergy.

XrayTelAnalysis::XrayTelAnalysis ( )
private

Definition at line 62 of file XrayTelAnalysis.cc.

References asciiFile, asciiFileName, G4endl, and histFileName.

Referenced by getInstance().

+ Here is the caller graph for this function:

Member Function Documentation

void XrayTelAnalysis::analyseStepping ( const G4Track track,
G4bool  entering 
)

Definition at line 233 of file XrayTelAnalysis.cc.

References G4VAnalysisManager::AddNtupleRow(), asciiFile, dirX, dirY, dirZ, eKin, G4VAnalysisManager::FillH1(), G4VAnalysisManager::FillH2(), G4VAnalysisManager::FillNtupleDColumn(), G4endl, G4Track::GetKineticEnergy(), G4Track::GetMomentumDirection(), G4Track::GetPosition(), keV, mm, pos, right, x, y, and z.

Referenced by XrayTelSteppingAction::UserSteppingAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void XrayTelAnalysis::book ( G4bool  isMaster)

Definition at line 95 of file XrayTelAnalysis.cc.

References G4VAnalysisManager::CreateH1(), G4VAnalysisManager::CreateH2(), G4VAnalysisManager::CreateNtuple(), G4VAnalysisManager::CreateNtupleDColumn(), G4VAnalysisManager::FinishNtuple(), G4cout, G4endl, histFileName, nEnteringTracks, G4VAnalysisManager::OpenFile(), G4VAnalysisManager::SetFirstHistoId(), and totEnteringEnergy.

Referenced by XrayTelRunAction::BeginOfRunAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void XrayTelAnalysis::finish ( G4bool  isMaster)

Definition at line 150 of file XrayTelAnalysis.cc.

References asciiFile, G4VAnalysisManager::CloseFile(), G4cout, G4endl, MeV, nEnteringTracks, totEnteringEnergy, and G4VAnalysisManager::Write().

Referenced by XrayTelRunAction::EndOfRunAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

XrayTelAnalysis * XrayTelAnalysis::getInstance ( )
static

Definition at line 86 of file XrayTelAnalysis.cc.

References instance, and XrayTelAnalysis().

Referenced by XrayTelRunAction::BeginOfRunAction(), XrayTelRunAction::EndOfRunAction(), and XrayTelSteppingAction::UserSteppingAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void XrayTelAnalysis::Update ( G4double  energy,
G4int  threadID 
)

Definition at line 295 of file XrayTelAnalysis.cc.

References nEnteringTracks, and totEnteringEnergy.

Referenced by XrayTelSteppingAction::UserSteppingAction().

+ Here is the caller graph for this function:

Member Data Documentation

std::ofstream* XrayTelAnalysis::asciiFile
private

Definition at line 92 of file XrayTelAnalysis.hh.

Referenced by analyseStepping(), finish(), XrayTelAnalysis(), and ~XrayTelAnalysis().

G4String XrayTelAnalysis::asciiFileName
private

Definition at line 89 of file XrayTelAnalysis.hh.

Referenced by XrayTelAnalysis().

G4double XrayTelAnalysis::dirX
private

Definition at line 85 of file XrayTelAnalysis.hh.

Referenced by analyseStepping().

G4double XrayTelAnalysis::dirY
private

Definition at line 86 of file XrayTelAnalysis.hh.

Referenced by analyseStepping().

G4double XrayTelAnalysis::dirZ
private

Definition at line 87 of file XrayTelAnalysis.hh.

Referenced by analyseStepping().

G4double XrayTelAnalysis::eKin
private

Definition at line 81 of file XrayTelAnalysis.hh.

Referenced by analyseStepping().

G4String XrayTelAnalysis::histFileName
private

Definition at line 90 of file XrayTelAnalysis.hh.

Referenced by book(), and XrayTelAnalysis().

XrayTelAnalysis * XrayTelAnalysis::instance = 0
staticprivate

Definition at line 78 of file XrayTelAnalysis.hh.

Referenced by getInstance().

std::map<G4int,G4int>* XrayTelAnalysis::nEnteringTracks
private

Definition at line 95 of file XrayTelAnalysis.hh.

Referenced by book(), finish(), Update(), and ~XrayTelAnalysis().

std::map<G4int,G4double>* XrayTelAnalysis::totEnteringEnergy
private

Definition at line 96 of file XrayTelAnalysis.hh.

Referenced by book(), finish(), Update(), and ~XrayTelAnalysis().

G4double XrayTelAnalysis::x
private

Definition at line 82 of file XrayTelAnalysis.hh.

Referenced by analyseStepping().

G4double XrayTelAnalysis::y
private

Definition at line 83 of file XrayTelAnalysis.hh.

Referenced by analyseStepping().

G4double XrayTelAnalysis::z
private

Definition at line 84 of file XrayTelAnalysis.hh.

Referenced by analyseStepping().


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