ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Histo Class Reference

#include <geant4/tree/geant4-10.6-release/examples/extended/electromagnetic/TestEm9/include/Histo.hh>

+ Collaboration diagram for Histo:

Public Member Functions

 Histo ()
 
 ~Histo ()
 
void Book ()
 
void Save ()
 
void Add1D (const G4String &, const G4String &, G4int nb, G4double x1, G4double x2, G4double u=1.)
 
void SetHisto1D (G4int, G4int, G4double, G4double, G4double)
 
void Activate (G4int, G4bool)
 
void Fill (G4int, G4double, G4double)
 
void ScaleH1 (G4int, G4double)
 
void AddTuple (const G4String &)
 
void AddTupleI (const G4String &)
 
void AddTupleF (const G4String &)
 
void AddTupleD (const G4String &)
 
void FillTupleI (G4int, G4int)
 
void FillTupleF (G4int, G4float)
 
void FillTupleD (G4int, G4double)
 
void AddRow ()
 
void SetFileName (const G4String &)
 
void SetFileType (const G4String &)
 
void SetVerbose (G4int val)
 
G4bool IsActive () const
 
 Histo ()
 
 ~Histo ()
 
void Book ()
 
void Save ()
 
void Add1D (const G4String &, const G4String &, G4int nb, G4double x1, G4double x2, G4double u=1.)
 
void SetHisto1D (G4int, G4int, G4double, G4double, G4double)
 
void Activate (G4int, G4bool)
 
void Fill (G4int, G4double, G4double)
 
void ScaleH1 (G4int, G4double)
 
void AddTuple (const G4String &)
 
void AddTupleI (const G4String &)
 
void AddTupleF (const G4String &)
 
void AddTupleD (const G4String &)
 
void FillTupleI (G4int, G4int)
 
void FillTupleF (G4int, G4float)
 
void FillTupleD (G4int, G4double)
 
void AddRow ()
 
void SetFileName (const G4String &)
 
void SetVerbose (G4int val)
 
G4bool IsActive () const
 
 Histo ()
 
 ~Histo ()
 
void Book ()
 
void Save ()
 
void Add1D (const G4String &, const G4String &, G4int nb, G4double x1, G4double x2, G4double u=1.)
 
void SetHisto1D (G4int, G4int, G4double, G4double, G4double)
 
void Activate (G4int, G4bool)
 
void Fill (G4int, G4double, G4double)
 
void ScaleH1 (G4int, G4double)
 
void AddTuple (const G4String &)
 
void AddTupleI (const G4String &)
 
void AddTupleF (const G4String &)
 
void AddTupleD (const G4String &)
 
void FillTupleI (G4int, G4int)
 
void FillTupleF (G4int, G4float)
 
void FillTupleD (G4int, G4double)
 
void AddRow ()
 
void SetFileName (const G4String &)
 
void SetFileType (const G4String &)
 
void SetVerbose (G4int val)
 
G4bool IsActive () const
 

Private Attributes

G4RootAnalysisManagerfManager
 
HistoMessengerfMessenger
 
G4String fHistName
 
G4String fHistType
 
G4String fTupleName
 
G4String fTupleTitle
 
G4int fNHisto
 
G4int fVerbose
 
G4bool fDefaultAct
 
G4bool fHistoActive
 
G4bool fNtupleActive
 
std::vector< G4intfHisto
 
std::vector< G4intfTupleI
 
std::vector< G4intfTupleF
 
std::vector< G4intfTupleD
 
std::vector< G4intfBins
 
std::vector< G4boolfActive
 
std::vector< G4doublefXmin
 
std::vector< G4doublefXmax
 
std::vector< G4doublefUnit
 
std::vector< G4StringfIds
 
std::vector< G4StringfTitles
 
std::vector< G4StringfNtupleI
 
std::vector< G4StringfNtupleF
 
std::vector< G4StringfNtupleD
 
G4VAnalysisManagerfManager
 

Detailed Description

Definition at line 55 of file Histo.hh.

View newest version in sPHENIX GitHub at line 55 of file Histo.hh

Constructor & Destructor Documentation

Histo::Histo ( )

Definition at line 50 of file Histo.cc.

View newest version in sPHENIX GitHub at line 50 of file Histo.cc

References fDefaultAct, fHistName, fHistoActive, fHistType, fMessenger, fNHisto, fNtupleActive, fTupleName, fTupleTitle, and fVerbose.

Histo::~Histo ( )

Definition at line 69 of file Histo.cc.

View newest version in sPHENIX GitHub at line 69 of file Histo.cc

References fManager, and fMessenger.

Histo::Histo ( )
Histo::~Histo ( )
Histo::Histo ( )
Histo::~Histo ( )

Member Function Documentation

void Histo::Activate ( G4int  i,
G4bool  val 
)

Definition at line 206 of file Histo.cc.

View newest version in sPHENIX GitHub at line 206 of file Histo.cc

References fActive, fHistoActive, fNHisto, fVerbose, G4cout, and G4endl.

void Histo::Activate ( G4int  ,
G4bool   
)
void Histo::Activate ( G4int  ,
G4bool   
)
void Histo::Add1D ( const G4String id,
const G4String name,
G4int  nb,
G4double  x1,
G4double  x2,
G4double  u = 1. 
)

Definition at line 160 of file Histo.cc.

View newest version in sPHENIX GitHub at line 160 of file Histo.cc

References fActive, fBins, fDefaultAct, fHisto, fIds, fNHisto, fTitles, fUnit, fVerbose, fXmax, fXmin, G4cout, G4endl, and Acts::UnitConstants::u.

void Histo::Add1D ( const G4String ,
const G4String ,
G4int  nb,
G4double  x1,
G4double  x2,
G4double  u = 1. 
)
void Histo::Add1D ( const G4String ,
const G4String ,
G4int  nb,
G4double  x1,
G4double  x2,
G4double  u = 1. 
)
void Histo::AddRow ( )
void Histo::AddRow ( )

Definition at line 341 of file Histo.cc.

View newest version in sPHENIX GitHub at line 341 of file Histo.cc

References G4VAnalysisManager::AddNtupleRow(), fManager, and fNtupleActive.

+ Here is the call graph for this function:

void Histo::AddRow ( )
void Histo::AddTuple ( const G4String w1)

Definition at line 253 of file Histo.cc.

View newest version in sPHENIX GitHub at line 253 of file Histo.cc

References fTupleTitle.

void Histo::AddTuple ( const G4String )
void Histo::AddTuple ( const G4String )
void Histo::AddTupleD ( const G4String w1)

Definition at line 278 of file Histo.cc.

View newest version in sPHENIX GitHub at line 278 of file Histo.cc

References fNtupleActive, fNtupleD, and fTupleD.

void Histo::AddTupleD ( const G4String )
void Histo::AddTupleD ( const G4String )
void Histo::AddTupleF ( const G4String w1)

Definition at line 269 of file Histo.cc.

View newest version in sPHENIX GitHub at line 269 of file Histo.cc

References fNtupleActive, fNtupleF, and fTupleF.

void Histo::AddTupleF ( const G4String )
void Histo::AddTupleF ( const G4String )
void Histo::AddTupleI ( const G4String w1)

Definition at line 260 of file Histo.cc.

View newest version in sPHENIX GitHub at line 260 of file Histo.cc

References fNtupleActive, fNtupleI, and fTupleI.

void Histo::AddTupleI ( const G4String )
void Histo::AddTupleI ( const G4String )
void Histo::Book ( )
void Histo::Book ( )
void Histo::Book ( )

Definition at line 77 of file Histo.cc.

View newest version in sPHENIX GitHub at line 77 of file Histo.cc

References G4VAnalysisManager::CreateH1(), G4VAnalysisManager::CreateNtuple(), G4VAnalysisManager::CreateNtupleDColumn(), G4VAnalysisManager::CreateNtupleFColumn(), G4VAnalysisManager::CreateNtupleIColumn(), fActive, fBins, fHistName, fHisto, fHistoActive, fHistType, fIds, fManager, fNHisto, fNtupleActive, fNtupleD, fNtupleF, fNtupleI, fTitles, fTupleD, fTupleF, fTupleI, fTupleName, fTupleTitle, fVerbose, fXmax, fXmin, G4cout, G4endl, G4RootAnalysisManager::Instance(), n, and G4VAnalysisManager::OpenFile().

+ Here is the call graph for this function:

void Histo::Fill ( G4int  ,
G4double  ,
G4double   
)
void Histo::Fill ( G4int  i,
G4double  x,
G4double  w 
)

Definition at line 220 of file Histo.cc.

View newest version in sPHENIX GitHub at line 220 of file Histo.cc

References fActive, fHisto, fHistoActive, G4VAnalysisManager::FillH1(), fManager, fNHisto, fUnit, fVerbose, G4cout, and G4endl.

+ Here is the call graph for this function:

void Histo::Fill ( G4int  ,
G4double  ,
G4double   
)
void Histo::FillTupleD ( G4int  ,
G4double   
)
void Histo::FillTupleD ( G4int  ,
G4double   
)
void Histo::FillTupleD ( G4int  i,
G4double  x 
)

Definition at line 323 of file Histo.cc.

View newest version in sPHENIX GitHub at line 323 of file Histo.cc

References G4VAnalysisManager::FillNtupleDColumn(), fManager, fNtupleActive, fNtupleD, fTupleD, fVerbose, G4cout, G4endl, and n.

+ Here is the call graph for this function:

void Histo::FillTupleF ( G4int  ,
G4float   
)
void Histo::FillTupleF ( G4int  ,
G4float   
)
void Histo::FillTupleF ( G4int  i,
G4float  x 
)

Definition at line 305 of file Histo.cc.

View newest version in sPHENIX GitHub at line 305 of file Histo.cc

References G4VAnalysisManager::FillNtupleFColumn(), fManager, fNtupleActive, fNtupleF, fTupleF, fVerbose, G4cout, G4endl, and n.

+ Here is the call graph for this function:

void Histo::FillTupleI ( G4int  i,
G4int  x 
)

Definition at line 287 of file Histo.cc.

View newest version in sPHENIX GitHub at line 287 of file Histo.cc

References G4VAnalysisManager::FillNtupleIColumn(), fManager, fNtupleActive, fNtupleI, fTupleI, fVerbose, G4cout, G4endl, and n.

+ Here is the call graph for this function:

void Histo::FillTupleI ( G4int  ,
G4int   
)
void Histo::FillTupleI ( G4int  ,
G4int   
)
G4bool Histo::IsActive ( ) const
inline

Definition at line 106 of file Histo.hh.

View newest version in sPHENIX GitHub at line 106 of file Histo.hh

References fHistoActive.

G4bool Histo::IsActive ( ) const
inline

Definition at line 107 of file Histo.hh.

View newest version in sPHENIX GitHub at line 107 of file Histo.hh

References fHistoActive.

G4bool Histo::IsActive ( ) const
inline

Definition at line 107 of file Histo.hh.

View newest version in sPHENIX GitHub at line 107 of file Histo.hh

References fHistoActive.

void Histo::Save ( )

Definition at line 136 of file Histo.cc.

View newest version in sPHENIX GitHub at line 136 of file Histo.cc

References G4VAnalysisManager::CloseFile(), FatalException, fHistName, fHistoActive, fHistType, fManager, fNtupleActive, fVerbose, G4cout, G4endl, G4Exception(), G4RootAnalysisManager::Instance(), and G4VAnalysisManager::Write().

+ Here is the call graph for this function:

void Histo::Save ( )
void Histo::Save ( )
void Histo::ScaleH1 ( G4int  i,
G4double  x 
)

Definition at line 237 of file Histo.cc.

View newest version in sPHENIX GitHub at line 237 of file Histo.cc

References fActive, fHisto, fHistoActive, fManager, fNHisto, fVerbose, G4cout, G4endl, and G4ToolsAnalysisManager::GetH1().

+ Here is the call graph for this function:

void Histo::ScaleH1 ( G4int  ,
G4double   
)
void Histo::ScaleH1 ( G4int  ,
G4double   
)
void Histo::SetFileName ( const G4String nam)

Definition at line 349 of file Histo.cc.

View newest version in sPHENIX GitHub at line 349 of file Histo.cc

References fHistName, and fHistoActive.

void Histo::SetFileName ( const G4String )
void Histo::SetFileName ( const G4String )
void Histo::SetFileType ( const G4String nam)

Definition at line 357 of file Histo.cc.

View newest version in sPHENIX GitHub at line 357 of file Histo.cc

References fHistType.

void Histo::SetFileType ( const G4String )
void Histo::SetHisto1D ( G4int  ,
G4int  ,
G4double  ,
G4double  ,
G4double   
)
void Histo::SetHisto1D ( G4int  i,
G4int  nb,
G4double  x1,
G4double  x2,
G4double  u 
)

Definition at line 184 of file Histo.cc.

View newest version in sPHENIX GitHub at line 184 of file Histo.cc

References fActive, fBins, fHistoActive, fNHisto, fUnit, fVerbose, fXmax, fXmin, G4cout, G4endl, Acts::UnitConstants::u, x1, and x2.

void Histo::SetHisto1D ( G4int  ,
G4int  ,
G4double  ,
G4double  ,
G4double   
)
void Histo::SetVerbose ( G4int  val)
inline

Definition at line 104 of file Histo.hh.

View newest version in sPHENIX GitHub at line 104 of file Histo.hh

References fVerbose.

void Histo::SetVerbose ( G4int  val)
inline

Definition at line 105 of file Histo.hh.

View newest version in sPHENIX GitHub at line 105 of file Histo.hh

References fVerbose.

void Histo::SetVerbose ( G4int  val)
inline

Definition at line 105 of file Histo.hh.

View newest version in sPHENIX GitHub at line 105 of file Histo.hh

References fVerbose.

Member Data Documentation

std::vector< G4bool > Histo::fActive
private

Definition at line 129 of file Histo.hh.

View newest version in sPHENIX GitHub at line 129 of file Histo.hh

Referenced by Activate(), Add1D(), Book(), Fill(), ScaleH1(), and SetHisto1D().

std::vector< G4int > Histo::fBins
private

Definition at line 128 of file Histo.hh.

View newest version in sPHENIX GitHub at line 128 of file Histo.hh

Referenced by Add1D(), Book(), and SetHisto1D().

G4bool Histo::fDefaultAct
private

Definition at line 120 of file Histo.hh.

View newest version in sPHENIX GitHub at line 120 of file Histo.hh

Referenced by Add1D(), and Histo().

G4String Histo::fHistName
private

Definition at line 114 of file Histo.hh.

View newest version in sPHENIX GitHub at line 114 of file Histo.hh

Referenced by Book(), Histo(), Save(), and SetFileName().

std::vector< G4int > Histo::fHisto
private

Definition at line 124 of file Histo.hh.

View newest version in sPHENIX GitHub at line 124 of file Histo.hh

Referenced by Add1D(), Book(), Fill(), and ScaleH1().

G4bool Histo::fHistoActive
private

Definition at line 121 of file Histo.hh.

View newest version in sPHENIX GitHub at line 121 of file Histo.hh

Referenced by Activate(), Book(), Fill(), Histo(), IsActive(), Save(), ScaleH1(), SetFileName(), and SetHisto1D().

G4String Histo::fHistType
private

Definition at line 115 of file Histo.hh.

View newest version in sPHENIX GitHub at line 115 of file Histo.hh

Referenced by Book(), Histo(), Save(), and SetFileType().

std::vector< G4String > Histo::fIds
private

Definition at line 133 of file Histo.hh.

View newest version in sPHENIX GitHub at line 133 of file Histo.hh

Referenced by Add1D(), and Book().

G4RootAnalysisManager * Histo::fManager
private

Definition at line 107 of file Histo.hh.

View newest version in sPHENIX GitHub at line 107 of file Histo.hh

Referenced by AddRow(), Book(), Fill(), FillTupleD(), FillTupleF(), FillTupleI(), Save(), ScaleH1(), and ~Histo().

G4VAnalysisManager* Histo::fManager
private

Definition at line 107 of file Histo.hh.

View newest version in sPHENIX GitHub at line 107 of file Histo.hh

HistoMessenger * Histo::fMessenger
private

Definition at line 112 of file Histo.hh.

View newest version in sPHENIX GitHub at line 112 of file Histo.hh

Referenced by Histo(), and ~Histo().

G4int Histo::fNHisto
private

Definition at line 118 of file Histo.hh.

View newest version in sPHENIX GitHub at line 118 of file Histo.hh

Referenced by Activate(), Add1D(), Book(), Fill(), Histo(), ScaleH1(), and SetHisto1D().

G4bool Histo::fNtupleActive
private

Definition at line 122 of file Histo.hh.

View newest version in sPHENIX GitHub at line 122 of file Histo.hh

Referenced by AddRow(), AddTupleD(), AddTupleF(), AddTupleI(), Book(), FillTupleD(), FillTupleF(), FillTupleI(), Histo(), and Save().

std::vector< G4String > Histo::fNtupleD
private

Definition at line 137 of file Histo.hh.

View newest version in sPHENIX GitHub at line 137 of file Histo.hh

Referenced by AddTupleD(), Book(), and FillTupleD().

std::vector< G4String > Histo::fNtupleF
private

Definition at line 136 of file Histo.hh.

View newest version in sPHENIX GitHub at line 136 of file Histo.hh

Referenced by AddTupleF(), Book(), and FillTupleF().

std::vector< G4String > Histo::fNtupleI
private

Definition at line 135 of file Histo.hh.

View newest version in sPHENIX GitHub at line 135 of file Histo.hh

Referenced by AddTupleI(), Book(), and FillTupleI().

std::vector< G4String > Histo::fTitles
private

Definition at line 134 of file Histo.hh.

View newest version in sPHENIX GitHub at line 134 of file Histo.hh

Referenced by Add1D(), and Book().

std::vector< G4int > Histo::fTupleD
private

Definition at line 127 of file Histo.hh.

View newest version in sPHENIX GitHub at line 127 of file Histo.hh

Referenced by AddTupleD(), Book(), and FillTupleD().

std::vector< G4int > Histo::fTupleF
private

Definition at line 126 of file Histo.hh.

View newest version in sPHENIX GitHub at line 126 of file Histo.hh

Referenced by AddTupleF(), Book(), and FillTupleF().

std::vector< G4int > Histo::fTupleI
private

Definition at line 125 of file Histo.hh.

View newest version in sPHENIX GitHub at line 125 of file Histo.hh

Referenced by AddTupleI(), Book(), and FillTupleI().

G4String Histo::fTupleName
private

Definition at line 116 of file Histo.hh.

View newest version in sPHENIX GitHub at line 116 of file Histo.hh

Referenced by Book(), and Histo().

G4String Histo::fTupleTitle
private

Definition at line 117 of file Histo.hh.

View newest version in sPHENIX GitHub at line 117 of file Histo.hh

Referenced by AddTuple(), Book(), and Histo().

std::vector< G4double > Histo::fUnit
private

Definition at line 132 of file Histo.hh.

View newest version in sPHENIX GitHub at line 132 of file Histo.hh

Referenced by Add1D(), Fill(), and SetHisto1D().

G4int Histo::fVerbose
private

Definition at line 119 of file Histo.hh.

View newest version in sPHENIX GitHub at line 119 of file Histo.hh

Referenced by Activate(), Add1D(), Book(), Fill(), FillTupleD(), FillTupleF(), FillTupleI(), Histo(), Save(), ScaleH1(), SetHisto1D(), and SetVerbose().

std::vector< G4double > Histo::fXmax
private

Definition at line 131 of file Histo.hh.

View newest version in sPHENIX GitHub at line 131 of file Histo.hh

Referenced by Add1D(), Book(), and SetHisto1D().

std::vector< G4double > Histo::fXmin
private

Definition at line 130 of file Histo.hh.

View newest version in sPHENIX GitHub at line 130 of file Histo.hh

Referenced by Add1D(), Book(), and SetHisto1D().


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