Geant4
10.02.p02
|
Defines the format which is used for the output file default is a ROOT file. Comment the g4root and un-comment one of the others, to change the output format. More...
#include <CCalAnalysis.hh>
Public Member Functions | |
virtual | ~CCalAnalysis () |
void | BeginOfRun (G4int n) |
void | EndOfRun (G4int n) |
void | EndOfEvent (G4int flag) |
void | Init () |
void | Finish () |
int | maxbin () |
void | InsertEnergyHcal (float *) |
void | InsertEnergyEcal (float *) |
void | InsertEnergy (float v) |
void | InsertLateralProfile (float *) |
void | InsertTime (float *) |
void | InsertTimeProfile (int, double, double) |
void | setNtuple (float *hcalE, float *ecalE, float elab, float x, float y, float z, float edep, float edec, float edhc) |
Static Public Member Functions | |
static CCalAnalysis * | getInstance () |
Private Member Functions | |
CCalAnalysis () | |
Private Attributes | |
G4int | fVerbosity |
G4int | numberOfTimeSlices |
G4int | energy |
G4int | hcalE |
G4int | ecalE |
G4int | timeHist |
G4int | lateralProfile |
G4int | timeProfile |
Static Private Attributes | |
static CCalAnalysis * | instance = 0 |
Defines the format which is used for the output file default is a ROOT file. Comment the g4root and un-comment one of the others, to change the output format.
Alternative here is a XML file
Definition at line 44 of file CCalAnalysis.hh.
|
virtual |
Definition at line 140 of file CCalAnalysis.cc.
References Finish().
|
private |
Definition at line 39 of file CCalAnalysis.cc.
References G4VAnalysisManager::CreateH1(), G4VAnalysisManager::CreateNtuple(), G4VAnalysisManager::CreateNtupleFColumn(), ecalE, energy, G4VAnalysisManager::FinishNtuple(), fVerbosity, G4cout, G4endl, hcalE, lateralProfile, numberOfTimeSlices, G4VAnalysisManager::OpenFile(), G4VAnalysisManager::SetFirstHistoId(), G4VAnalysisManager::SetFirstNtupleId(), G4VAnalysisManager::SetVerboseLevel(), timeHist, and timeProfile.
Referenced by getInstance().
void CCalAnalysis::BeginOfRun | ( | G4int | n | ) |
Definition at line 312 of file CCalAnalysis.cc.
References G4ToolsAnalysisManager::GetH1(), numberOfTimeSlices, and timeHist.
Referenced by CCalRunAction::BeginOfRunAction().
void CCalAnalysis::EndOfEvent | ( | G4int | flag | ) |
Definition at line 333 of file CCalAnalysis.cc.
Referenced by CCalEndOfEventAction::EndOfEventAction().
void CCalAnalysis::EndOfRun | ( | G4int | n | ) |
Definition at line 323 of file CCalAnalysis.cc.
References G4VAnalysisManager::CloseFile(), and G4VAnalysisManager::Write().
Referenced by CCalRunAction::EndOfRunAction().
void CCalAnalysis::Finish | ( | ) |
Definition at line 149 of file CCalAnalysis.cc.
Referenced by ~CCalAnalysis().
|
static |
Definition at line 152 of file CCalAnalysis.cc.
References CCalAnalysis(), and instance.
Referenced by CCalRunAction::BeginOfRunAction(), CCalSteppingAction::CCalSteppingAction(), CCalSteppingAction::endOfEvent(), CCalEndOfEventAction::EndOfEventAction(), and CCalRunAction::EndOfRunAction().
void CCalAnalysis::Init | ( | ) |
Definition at line 146 of file CCalAnalysis.cc.
void CCalAnalysis::InsertEnergy | ( | float | v | ) |
Definition at line 225 of file CCalAnalysis.cc.
References energy, fVerbosity, G4cout, G4endl, and x.
Referenced by CCalEndOfEventAction::EndOfEventAction().
void CCalAnalysis::InsertEnergyEcal | ( | float * | v | ) |
Definition at line 181 of file CCalAnalysis.cc.
References ecalE, G4VAnalysisManager::FillH1(), fVerbosity, G4cout, G4endl, and x.
Referenced by CCalEndOfEventAction::EndOfEventAction().
void CCalAnalysis::InsertEnergyHcal | ( | float * | v | ) |
Definition at line 159 of file CCalAnalysis.cc.
References G4VAnalysisManager::FillH1(), fVerbosity, G4cout, G4endl, hcalE, and x.
Referenced by CCalEndOfEventAction::EndOfEventAction().
void CCalAnalysis::InsertLateralProfile | ( | float * | v | ) |
Definition at line 204 of file CCalAnalysis.cc.
References G4VAnalysisManager::FillH1(), fVerbosity, G4cout, G4endl, lateralProfile, and x.
Referenced by CCalSteppingAction::endOfEvent().
void CCalAnalysis::InsertTime | ( | float * | v | ) |
Definition at line 237 of file CCalAnalysis.cc.
References G4VAnalysisManager::FillH1(), fVerbosity, G4cout, G4endl, numberOfTimeSlices, timeHist, timeProfile, and x.
Referenced by CCalSteppingAction::endOfEvent().
void CCalAnalysis::InsertTimeProfile | ( | int | hit, |
double | time, | ||
double | edep | ||
) |
Definition at line 264 of file CCalAnalysis.cc.
References G4VAnalysisManager::FillH1(), fVerbosity, G4cout, G4endl, and timeProfile.
Referenced by CCalEndOfEventAction::EndOfEventAction().
|
inline |
Definition at line 56 of file CCalAnalysis.hh.
References numberOfTimeSlices.
Referenced by CCalSteppingAction::CCalSteppingAction().
void CCalAnalysis::setNtuple | ( | float * | hcalE, |
float * | ecalE, | ||
float | elab, | ||
float | x, | ||
float | y, | ||
float | z, | ||
float | edep, | ||
float | edec, | ||
float | edhc | ||
) |
Definition at line 276 of file CCalAnalysis.cc.
References G4VAnalysisManager::AddNtupleRow(), G4VAnalysisManager::FillNtupleFColumn(), fVerbosity, G4cout, and G4endl.
Referenced by CCalEndOfEventAction::EndOfEventAction().
|
private |
Definition at line 87 of file CCalAnalysis.hh.
Referenced by CCalAnalysis(), and InsertEnergyEcal().
|
private |
Definition at line 85 of file CCalAnalysis.hh.
Referenced by CCalAnalysis(), and InsertEnergy().
|
private |
Definition at line 76 of file CCalAnalysis.hh.
Referenced by CCalAnalysis(), InsertEnergy(), InsertEnergyEcal(), InsertEnergyHcal(), InsertLateralProfile(), InsertTime(), InsertTimeProfile(), and setNtuple().
|
private |
Definition at line 86 of file CCalAnalysis.hh.
Referenced by CCalAnalysis(), and InsertEnergyHcal().
|
staticprivate |
Definition at line 74 of file CCalAnalysis.hh.
Referenced by getInstance().
|
private |
Definition at line 89 of file CCalAnalysis.hh.
Referenced by CCalAnalysis(), and InsertLateralProfile().
|
private |
Definition at line 78 of file CCalAnalysis.hh.
Referenced by BeginOfRun(), CCalAnalysis(), InsertTime(), and maxbin().
|
private |
Definition at line 88 of file CCalAnalysis.hh.
Referenced by BeginOfRun(), CCalAnalysis(), and InsertTime().
|
private |
Definition at line 91 of file CCalAnalysis.hh.
Referenced by CCalAnalysis(), InsertTime(), and InsertTimeProfile().