33#include "G4ThreeVector.hh"
95 G4ThreeVector aVector, G4double aResolution = 0,
96 G4double aEfficiency = 1, G4double aEnergy = 0 ) ;
Handling the saving to the file.
static G4ThreadLocal G4int fCurrentNtupleId
Current ntuple Id.
void CreateHistograms()
Creates histograms to combine information from all the events in the run.
G4bool fFileNameWithRunNo
If true, a run number should be added to the file. Default: false.
void AppendName(G4bool app)
Sets fFileNameWithRunNo that indicates whether to add the run number to the file name.
void FillHistogram(G4int HNo, G4double value) const
Fills the histogram.
void CreateNtuples()
Creates Ntuples used to store information about particle (its ID, PDG code, energy deposits,...
void SetFileName(G4String name)
Sets the file name of the output root file.
void SaveTrack(SaveType aWhatToSave, G4int aPartID, G4int aPDG, G4ThreeVector aVector, G4double aResolution=0, G4double aEfficiency=1, G4double aEnergy=0)
Saves the information about the particle (track).
void StartAnalysis(G4int runID)
Calls the G4AnalysisManager::Instance().
static Par02Output * fPar02Output
The pointer to the only Par02Output class object.
G4String fFileName
A name of the output root file.
void EndAnalysis()
Calls the G4AnalysisManager::Instance().
SaveType
Indicates to which ntuple to save the information.
static G4ThreadLocal G4int fCurrentID
A control value of particle ID to ensure that data saved to various ntuples match the same particle.
Par02Output()
A default, protected constructor (due to singleton pattern).
G4String GetFileName()
Gets the file name of the output root file.
static Par02Output * Instance()
Allows the access to the unique Par02Output object.