Geant4  10.02.p02
CCalAnalysis Class Reference

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>

+ Collaboration diagram for CCalAnalysis:

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 CCalAnalysisgetInstance ()
 

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 CCalAnalysisinstance = 0
 

Detailed Description

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.

Constructor & Destructor Documentation

CCalAnalysis::~CCalAnalysis ( )
virtual

Definition at line 140 of file CCalAnalysis.cc.

References Finish().

+ Here is the call graph for this function:

CCalAnalysis::CCalAnalysis ( )
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Function Documentation

void CCalAnalysis::BeginOfRun ( G4int  n)

Definition at line 312 of file CCalAnalysis.cc.

References G4ToolsAnalysisManager::GetH1(), numberOfTimeSlices, and timeHist.

Referenced by CCalRunAction::BeginOfRunAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CCalAnalysis::EndOfEvent ( G4int  flag)

Definition at line 333 of file CCalAnalysis.cc.

Referenced by CCalEndOfEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

void CCalAnalysis::EndOfRun ( G4int  n)

Definition at line 323 of file CCalAnalysis.cc.

References G4VAnalysisManager::CloseFile(), and G4VAnalysisManager::Write().

Referenced by CCalRunAction::EndOfRunAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CCalAnalysis::Finish ( )

Definition at line 149 of file CCalAnalysis.cc.

Referenced by ~CCalAnalysis().

+ Here is the caller graph for this function:

CCalAnalysis * CCalAnalysis::getInstance ( )
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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().

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int CCalAnalysis::maxbin ( )
inline

Definition at line 56 of file CCalAnalysis.hh.

References numberOfTimeSlices.

Referenced by CCalSteppingAction::CCalSteppingAction().

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

G4int CCalAnalysis::ecalE
private

Definition at line 87 of file CCalAnalysis.hh.

Referenced by CCalAnalysis(), and InsertEnergyEcal().

G4int CCalAnalysis::energy
private

Definition at line 85 of file CCalAnalysis.hh.

Referenced by CCalAnalysis(), and InsertEnergy().

G4int CCalAnalysis::hcalE
private

Definition at line 86 of file CCalAnalysis.hh.

Referenced by CCalAnalysis(), and InsertEnergyHcal().

CCalAnalysis * CCalAnalysis::instance = 0
staticprivate

Definition at line 74 of file CCalAnalysis.hh.

Referenced by getInstance().

G4int CCalAnalysis::lateralProfile
private

Definition at line 89 of file CCalAnalysis.hh.

Referenced by CCalAnalysis(), and InsertLateralProfile().

G4int CCalAnalysis::numberOfTimeSlices
private

Definition at line 78 of file CCalAnalysis.hh.

Referenced by BeginOfRun(), CCalAnalysis(), InsertTime(), and maxbin().

G4int CCalAnalysis::timeHist
private

Definition at line 88 of file CCalAnalysis.hh.

Referenced by BeginOfRun(), CCalAnalysis(), and InsertTime().

G4int CCalAnalysis::timeProfile
private

Definition at line 91 of file CCalAnalysis.hh.

Referenced by CCalAnalysis(), InsertTime(), and InsertTimeProfile().


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