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

#include <G4THnToolsManager.hh>

+ Inheritance diagram for G4THnToolsManager< DIM, HT >:

Public Member Functions

 G4THnToolsManager (const G4AnalysisManagerState &state)
 
virtual ~G4THnToolsManager ()=default
 
 G4THnToolsManager (const G4THnToolsManager &rhs)=delete
 
G4THnToolsManageroperator= (const G4THnToolsManager &rhs)=delete
 
G4int Create (const G4String &name, const G4String &title, const std::array< G4HnDimension, DIM > &bins, const std::array< G4HnDimensionInformation, DIM > &hnInfo) override
 
G4bool Set (G4int id, const std::array< G4HnDimension, DIM > &bins, const std::array< G4HnDimensionInformation, DIM > &hnInfo) override
 
virtual G4bool Scale (G4int id, G4double factor) override
 
virtual G4bool Fill (G4int id, std::array< G4double, DIM > value, G4double weight=1.0) override
 
virtual G4int GetId (const G4String &name, G4bool warn=true) const override
 
virtual G4int GetNbins (unsigned int idim, G4int id) const override
 
virtual G4double GetMinValue (unsigned int idim, G4int id) const override
 
virtual G4double GetMaxValue (unsigned int idim, G4int id) const override
 
virtual G4double GetWidth (unsigned int idim, G4int id) const override
 
virtual G4bool SetTitle (G4int id, const G4String &title) override
 
virtual G4bool SetAxisTitle (unsigned int idim, G4int id, const G4String &title) override
 
virtual G4String GetTitle (G4int id) const override
 
virtual G4String GetAxisTitle (unsigned int idim, G4int id) const override
 
virtual G4bool WriteOnAscii (std::ofstream &output) override
 
virtual G4bool List (std::ostream &output, G4bool onlyIfActive=true) override
 
virtual std::shared_ptr< G4HnManagerGetHnManager () override
 
virtual const std::shared_ptr< G4HnManagerGetHnManager () const override
 
- Public Member Functions inherited from G4VTBaseHnManager< DIM >
 G4VTBaseHnManager ()=default
 
virtual ~G4VTBaseHnManager ()=default
 
 G4VTBaseHnManager (const G4VTBaseHnManager &rhs)=delete
 
G4VTBaseHnManageroperator= (const G4VTBaseHnManager &rhs)=delete
 
virtual G4int Create (const G4String &name, const G4String &title, const std::array< G4HnDimension, DIM > &bins, const std::array< G4HnDimensionInformation, DIM > &hnInfo)=0
 
virtual G4bool Set (G4int id, const std::array< G4HnDimension, DIM > &bins, const std::array< G4HnDimensionInformation, DIM > &hnInfo)=0
 
virtual G4bool Scale (G4int id, G4double factor)=0
 
virtual G4bool Fill (G4int id, std::array< G4double, DIM > value, G4double weight=1.0)=0
 
virtual G4int GetId (const G4String &name, G4bool warn=true) const =0
 
virtual G4int GetNbins (unsigned int idim, G4int id) const =0
 
virtual G4double GetMinValue (unsigned int idim, G4int id) const =0
 
virtual G4double GetMaxValue (unsigned int idim, G4int id) const =0
 
virtual G4double GetWidth (unsigned int idim, G4int id) const =0
 
virtual G4bool SetTitle (G4int id, const G4String &title)=0
 
virtual G4bool SetAxisTitle (unsigned int idim, G4int id, const G4String &title)=0
 
virtual G4String GetTitle (G4int id) const =0
 
virtual G4String GetAxisTitle (unsigned int idim, G4int id) const =0
 
virtual G4bool WriteOnAscii (std::ofstream &output)=0
 
virtual G4bool List (std::ostream &output, G4bool onlyIfActive=true)=0
 
virtual std::shared_ptr< G4HnManagerGetHnManager ()=0
 
virtual const std::shared_ptr< G4HnManagerGetHnManager () const =0
 
- Public Member Functions inherited from G4THnManager< HT >
 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
 

Static Protected Attributes

static constexpr std::string_view fkClass { "G4THnToolsManager" }
 
- Static Protected Attributes inherited from G4THnManager< HT >
static constexpr std::string_view fkClass { "G4THnManager<T>" }
 

Friends

class G4VAnalysisManager
 
class G4VAnalysisReader
 

Additional Inherited Members

- Protected Member Functions inherited from G4THnManager< HT >
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 inherited from G4THnManager< HT >
const G4AnalysisManagerStatefState
 
std::vector< HT * > fTVector
 
std::vector< std::pair< HT *, G4HnInformation * > > fTHnVector
 
std::map< G4String, G4intfNameIdMap
 
std::shared_ptr< G4HnManagerfHnManager { nullptr }
 

Detailed Description

template<unsigned int DIM, typename HT>
class G4THnToolsManager< DIM, HT >

Definition at line 47 of file G4THnToolsManager.hh.

Constructor & Destructor Documentation

◆ G4THnToolsManager() [1/2]

template<unsigned int DIM, typename HT >
G4THnToolsManager< DIM, HT >::G4THnToolsManager ( const G4AnalysisManagerState state)

◆ ~G4THnToolsManager()

template<unsigned int DIM, typename HT >
virtual G4THnToolsManager< DIM, HT >::~G4THnToolsManager ( )
virtualdefault

◆ G4THnToolsManager() [2/2]

template<unsigned int DIM, typename HT >
G4THnToolsManager< DIM, HT >::G4THnToolsManager ( const G4THnToolsManager< DIM, HT > &  rhs)
delete

Member Function Documentation

◆ Create()

template<unsigned int DIM, typename HT >
G4int G4THnToolsManager< DIM, HT >::Create ( const G4String name,
const G4String title,
const std::array< G4HnDimension, DIM > &  bins,
const std::array< G4HnDimensionInformation, DIM > &  hnInfo 
)
overridevirtual

◆ Fill()

template<unsigned int DIM, typename HT >
virtual G4bool G4THnToolsManager< DIM, HT >::Fill ( G4int  id,
std::array< G4double, DIM >  value,
G4double  weight = 1.0 
)
overridevirtual

◆ GetAxisTitle()

template<unsigned int DIM, typename HT >
virtual G4String G4THnToolsManager< DIM, HT >::GetAxisTitle ( unsigned int  idim,
G4int  id 
) const
overridevirtual

◆ GetHnManager() [1/2]

template<unsigned int DIM, typename HT >
virtual const std::shared_ptr< G4HnManager > G4THnToolsManager< DIM, HT >::GetHnManager ( ) const
overridevirtual

◆ GetHnManager() [2/2]

template<unsigned int DIM, typename HT >
virtual std::shared_ptr< G4HnManager > G4THnToolsManager< DIM, HT >::GetHnManager ( )
overridevirtual

◆ GetId()

template<unsigned int DIM, typename HT >
virtual G4int G4THnToolsManager< DIM, HT >::GetId ( const G4String name,
G4bool  warn = true 
) const
overridevirtual

◆ GetMaxValue()

template<unsigned int DIM, typename HT >
virtual G4double G4THnToolsManager< DIM, HT >::GetMaxValue ( unsigned int  idim,
G4int  id 
) const
overridevirtual

◆ GetMinValue()

template<unsigned int DIM, typename HT >
virtual G4double G4THnToolsManager< DIM, HT >::GetMinValue ( unsigned int  idim,
G4int  id 
) const
overridevirtual

◆ GetNbins()

template<unsigned int DIM, typename HT >
virtual G4int G4THnToolsManager< DIM, HT >::GetNbins ( unsigned int  idim,
G4int  id 
) const
overridevirtual

◆ GetTitle()

template<unsigned int DIM, typename HT >
virtual G4String G4THnToolsManager< DIM, HT >::GetTitle ( G4int  id) const
overridevirtual

◆ GetWidth()

template<unsigned int DIM, typename HT >
virtual G4double G4THnToolsManager< DIM, HT >::GetWidth ( unsigned int  idim,
G4int  id 
) const
overridevirtual

◆ List()

template<unsigned int DIM, typename HT >
virtual G4bool G4THnToolsManager< DIM, HT >::List ( std::ostream &  output,
G4bool  onlyIfActive = true 
)
overridevirtual

◆ operator=()

template<unsigned int DIM, typename HT >
G4THnToolsManager & G4THnToolsManager< DIM, HT >::operator= ( const G4THnToolsManager< DIM, HT > &  rhs)
delete

◆ Scale()

template<unsigned int DIM, typename HT >
virtual G4bool G4THnToolsManager< DIM, HT >::Scale ( G4int  id,
G4double  factor 
)
overridevirtual

◆ Set()

template<unsigned int DIM, typename HT >
G4bool G4THnToolsManager< DIM, HT >::Set ( G4int  id,
const std::array< G4HnDimension, DIM > &  bins,
const std::array< G4HnDimensionInformation, DIM > &  hnInfo 
)
overridevirtual

◆ SetAxisTitle()

template<unsigned int DIM, typename HT >
virtual G4bool G4THnToolsManager< DIM, HT >::SetAxisTitle ( unsigned int  idim,
G4int  id,
const G4String title 
)
overridevirtual

◆ SetTitle()

template<unsigned int DIM, typename HT >
virtual G4bool G4THnToolsManager< DIM, HT >::SetTitle ( G4int  id,
const G4String title 
)
overridevirtual

◆ WriteOnAscii()

template<unsigned int DIM, typename HT >
virtual G4bool G4THnToolsManager< DIM, HT >::WriteOnAscii ( std::ofstream &  output)
overridevirtual

Friends And Related Function Documentation

◆ G4VAnalysisManager

template<unsigned int DIM, typename HT >
friend class G4VAnalysisManager
friend

Definition at line 52 of file G4THnToolsManager.hh.

◆ G4VAnalysisReader

template<unsigned int DIM, typename HT >
friend class G4VAnalysisReader
friend

Definition at line 53 of file G4THnToolsManager.hh.

Member Data Documentation

◆ fkClass

template<unsigned int DIM, typename HT >
constexpr std::string_view G4THnToolsManager< DIM, HT >::fkClass { "G4THnToolsManager" }
staticconstexprprotected

Definition at line 112 of file G4THnToolsManager.hh.


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