Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4THnManager< HT > Class Template Reference

#include <G4THnManager.hh>

+ Inheritance diagram for G4THnManager< HT >:

Public Member Functions

 G4THnManager (const G4AnalysisManagerState &state)
 
 G4THnManager ()=delete
 
virtual ~G4THnManager ()
 
G4int RegisterT (const G4String &name, HT *ht, G4HnInformation *info=nullptr)
 
G4bool Reset ()
 
void ClearData ()
 
G4bool IsEmpty () const
 
void AddTVector (const std::vector< HT * > &tVector)
 
void Merge (G4Mutex &mergeMutex, G4THnManager< HT > *masterInstance)
 
HT * GetT (G4int id, G4bool warn=true, G4bool onlyIfActive=true) const
 
std::vector< HT * > * GetTVector ()
 
const std::vector< HT * > & GetTVectorRef () const
 
std::vector< std::pair< HT *, G4HnInformation * > > * GetTHnVector ()
 
const std::vector< std::pair< HT *, G4HnInformation * > > & GetTHnVectorRef () const
 
G4bool List (std::ostream &output, G4bool onlyIfActive) const
 
std::vector< HT * >::iterator BeginT ()
 
std::vector< HT * >::iterator EndT ()
 
std::vector< HT * >::const_iterator BeginConstT () const
 
std::vector< HT * >::const_iterator EndConstT () const
 

Protected Member Functions

std::pair< HT *, G4HnInformation * > GetTHnInFunction (G4int id, std::string_view functionName, G4bool warn=true, G4bool onlyIfActive=true) const
 
HT * GetTInFunction (G4int id, std::string_view functionName, G4bool warn=true, G4bool onlyIfActive=true) const
 
G4int GetTId (const G4String &name, G4bool warn=true) const
 
G4bool IsVerbose (G4int verboseLevel) const
 
void Message (G4int level, const G4String &action, const G4String &objectType, const G4String &objectName="", G4bool success=true) const
 

Protected Attributes

const G4AnalysisManagerStatefState
 
std::vector< HT * > fTVector
 
std::vector< std::pair< HT *, G4HnInformation * > > fTHnVector
 
std::map< G4String, G4intfNameIdMap
 
std::shared_ptr< G4HnManagerfHnManager { nullptr }
 

Static Protected Attributes

static constexpr std::string_view fkClass { "G4THnManager<T>" }
 

Detailed Description

template<typename HT>
class G4THnManager< HT >

Definition at line 49 of file G4THnManager.hh.

Constructor & Destructor Documentation

◆ G4THnManager() [1/2]

template<typename HT >
G4THnManager< HT >::G4THnManager ( const G4AnalysisManagerState state)

◆ G4THnManager() [2/2]

template<typename HT >
G4THnManager< HT >::G4THnManager ( )
delete

◆ ~G4THnManager()

template<typename HT >
virtual G4THnManager< HT >::~G4THnManager ( )
virtual

Member Function Documentation

◆ AddTVector()

template<typename HT >
void G4THnManager< HT >::AddTVector ( const std::vector< HT * > &  tVector)

◆ BeginConstT()

template<typename HT >
std::vector< HT * >::const_iterator G4THnManager< HT >::BeginConstT ( ) const

◆ BeginT()

template<typename HT >
std::vector< HT * >::iterator G4THnManager< HT >::BeginT ( )

◆ ClearData()

template<typename HT >
void G4THnManager< HT >::ClearData ( )

◆ EndConstT()

template<typename HT >
std::vector< HT * >::const_iterator G4THnManager< HT >::EndConstT ( ) const

◆ EndT()

template<typename HT >
std::vector< HT * >::iterator G4THnManager< HT >::EndT ( )

◆ GetT()

template<typename HT >
HT * G4THnManager< HT >::GetT ( G4int  id,
G4bool  warn = true,
G4bool  onlyIfActive = true 
) const

◆ GetTHnInFunction()

template<typename HT >
std::pair< HT *, G4HnInformation * > G4THnManager< HT >::GetTHnInFunction ( G4int  id,
std::string_view  functionName,
G4bool  warn = true,
G4bool  onlyIfActive = true 
) const
protected

◆ GetTHnVector()

template<typename HT >
std::vector< std::pair< HT *, G4HnInformation * > > * G4THnManager< HT >::GetTHnVector ( )

◆ GetTHnVectorRef()

template<typename HT >
const std::vector< std::pair< HT *, G4HnInformation * > > & G4THnManager< HT >::GetTHnVectorRef ( ) const

◆ GetTId()

template<typename HT >
G4int G4THnManager< HT >::GetTId ( const G4String name,
G4bool  warn = true 
) const
protected

◆ GetTInFunction()

template<typename HT >
HT * G4THnManager< HT >::GetTInFunction ( G4int  id,
std::string_view  functionName,
G4bool  warn = true,
G4bool  onlyIfActive = true 
) const
protected

◆ GetTVector()

template<typename HT >
std::vector< HT * > * G4THnManager< HT >::GetTVector ( )

◆ GetTVectorRef()

template<typename HT >
const std::vector< HT * > & G4THnManager< HT >::GetTVectorRef ( ) const

◆ IsEmpty()

template<typename HT >
G4bool G4THnManager< HT >::IsEmpty ( ) const

◆ IsVerbose()

template<typename HT >
G4bool G4THnManager< HT >::IsVerbose ( G4int  verboseLevel) const
protected

◆ List()

template<typename HT >
G4bool G4THnManager< HT >::List ( std::ostream &  output,
G4bool  onlyIfActive 
) const

◆ Merge()

template<typename HT >
void G4THnManager< HT >::Merge ( G4Mutex mergeMutex,
G4THnManager< HT > *  masterInstance 
)

◆ Message()

template<typename HT >
void G4THnManager< HT >::Message ( G4int  level,
const G4String action,
const G4String objectType,
const G4String objectName = "",
G4bool  success = true 
) const
protected

◆ RegisterT()

template<typename HT >
G4int G4THnManager< HT >::RegisterT ( const G4String name,
HT *  ht,
G4HnInformation info = nullptr 
)

◆ Reset()

template<typename HT >
G4bool G4THnManager< HT >::Reset ( )

Member Data Documentation

◆ fHnManager

template<typename HT >
std::shared_ptr<G4HnManager> G4THnManager< HT >::fHnManager { nullptr }
protected

Definition at line 121 of file G4THnManager.hh.

◆ fkClass

template<typename HT >
constexpr std::string_view G4THnManager< HT >::fkClass { "G4THnManager<T>" }
staticconstexprprotected

Definition at line 114 of file G4THnManager.hh.

◆ fNameIdMap

template<typename HT >
std::map<G4String, G4int> G4THnManager< HT >::fNameIdMap
protected

Definition at line 120 of file G4THnManager.hh.

◆ fState

template<typename HT >
const G4AnalysisManagerState& G4THnManager< HT >::fState
protected

Definition at line 117 of file G4THnManager.hh.

◆ fTHnVector

template<typename HT >
std::vector<std::pair<HT*, G4HnInformation*> > G4THnManager< HT >::fTHnVector
protected

Definition at line 119 of file G4THnManager.hh.

◆ fTVector

template<typename HT >
std::vector<HT*> G4THnManager< HT >::fTVector
protected

Definition at line 118 of file G4THnManager.hh.


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