Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4TNtupleManager< NT, FT > Class Template Referenceabstract

#include <G4TNtupleManager.hh>

+ Inheritance diagram for G4TNtupleManager< NT, FT >:

Public Member Functions

 G4TNtupleManager (const G4AnalysisManagerState &state)
 
 G4TNtupleManager ()=delete
 
 ~G4TNtupleManager () override
 
- Public Member Functions inherited from G4BaseNtupleManager
 G4BaseNtupleManager (const G4AnalysisManagerState &state)
 
 G4BaseNtupleManager ()=delete
 
 ~G4BaseNtupleManager () override=default
 
 G4BaseNtupleManager (const G4BaseNtupleManager &rhs)=delete
 
G4BaseNtupleManageroperator= (const G4BaseNtupleManager &rhs)=delete
 
- Public Member Functions inherited from G4VNtupleManager
 G4VNtupleManager (const G4AnalysisManagerState &state)
 
 G4VNtupleManager ()=delete
 
 ~G4VNtupleManager () override=default
 
 G4VNtupleManager (const G4VNtupleManager &rhs)=delete
 
G4VNtupleManageroperator= (const G4VNtupleManager &rhs)=delete
 
- Public Member Functions inherited from G4BaseAnalysisManager
 G4BaseAnalysisManager (const G4AnalysisManagerState &state)
 
 G4BaseAnalysisManager ()=delete
 
virtual ~G4BaseAnalysisManager ()=default
 
G4bool SetFirstId (G4int firstId)
 
void SetLockFirstId (G4bool lockFirstId)
 
G4int GetFirstId () const
 
G4int GetCycle () const
 

Protected Member Functions

G4int CreateNtuple (G4NtupleBooking *ntupleBooking) override
 
virtual void CreateNtuplesFromBooking (const std::vector< G4NtupleBooking * > &ntupleBookings)
 
virtual G4bool Reset ()
 
void Clear () override
 
G4bool FillNtupleIColumn (G4int ntupleId, G4int columnId, G4int value) final
 
G4bool FillNtupleFColumn (G4int ntupleId, G4int columnId, G4float value) final
 
G4bool FillNtupleDColumn (G4int ntupleId, G4int columnId, G4double value) final
 
G4bool FillNtupleSColumn (G4int ntupleId, G4int columnId, const G4String &value) final
 
G4bool AddNtupleRow (G4int ntupleId) override
 
void SetActivation (G4bool activation) final
 
void SetActivation (G4int ntupleId, G4bool activation) final
 
G4bool GetActivation (G4int ntupleId) const final
 
void SetNewCycle (G4bool value) override
 
G4bool GetNewCycle () const override
 
NT * GetNtuple () const
 
NT * GetNtuple (G4int ntupleId) const
 
G4int GetNofNtuples () const final
 
G4bool List (std::ostream &output, G4bool onlyIfActive=true) final
 
std::vector< NT * >::iterator BeginNtuple ()
 
std::vector< NT * >::iterator EndNtuple ()
 
std::vector< NT * >::const_iterator BeginConstNtuple () const
 
std::vector< NT * >::const_iterator EndConstNtuple () const
 
G4bool FillNtupleIColumn (G4int id, G4int value) final
 
G4bool FillNtupleIColumn (G4int ntupleId, G4int columnId, G4int value) override=0
 
G4bool FillNtupleFColumn (G4int id, G4float value) final
 
G4bool FillNtupleFColumn (G4int ntupleId, G4int columnId, G4float value) override=0
 
G4bool FillNtupleDColumn (G4int id, G4double value) final
 
G4bool FillNtupleDColumn (G4int ntupleId, G4int columnId, G4double value) override=0
 
G4bool FillNtupleSColumn (G4int id, const G4String &value) final
 
G4bool FillNtupleSColumn (G4int ntupleId, G4int columnId, const G4String &value) override=0
 
G4bool AddNtupleRow () final
 
G4bool AddNtupleRow (G4int ntupleId) override=0
 
- Protected Member Functions inherited from G4BaseNtupleManager
G4int CreateNtuple (G4NtupleBooking *booking) override=0
 
G4bool FillNtupleIColumn (G4int id, G4int value) final
 
G4bool FillNtupleFColumn (G4int id, G4float value) final
 
G4bool FillNtupleDColumn (G4int id, G4double value) final
 
G4bool FillNtupleSColumn (G4int id, const G4String &value) final
 
G4bool AddNtupleRow () final
 
G4bool FillNtupleIColumn (G4int ntupleId, G4int columnId, G4int value) override=0
 
G4bool FillNtupleFColumn (G4int ntupleId, G4int columnId, G4float value) override=0
 
G4bool FillNtupleDColumn (G4int ntupleId, G4int columnId, G4double value) override=0
 
G4bool FillNtupleSColumn (G4int ntupleId, G4int columnId, const G4String &value) override=0
 
G4bool AddNtupleRow (G4int ntupleId) override=0
 
G4bool SetFirstNtupleColumnId (G4int firstId) final
 
virtual G4int CreateNtuple (G4NtupleBooking *booking)=0
 
virtual G4bool FillNtupleIColumn (G4int id, G4int value)=0
 
virtual G4bool FillNtupleFColumn (G4int id, G4float value)=0
 
virtual G4bool FillNtupleDColumn (G4int id, G4double value)=0
 
virtual G4bool FillNtupleSColumn (G4int id, const G4String &value)=0
 
virtual G4bool AddNtupleRow ()=0
 
virtual G4bool FillNtupleIColumn (G4int ntupleId, G4int columnId, G4int value)=0
 
virtual G4bool FillNtupleFColumn (G4int ntupleId, G4int columnId, G4float value)=0
 
virtual G4bool FillNtupleDColumn (G4int ntupleId, G4int columnId, G4double value)=0
 
virtual G4bool FillNtupleSColumn (G4int ntupleId, G4int columnId, const G4String &value)=0
 
virtual G4bool AddNtupleRow (G4int ntupleId)=0
 
virtual void SetActivation (G4bool activation)=0
 
virtual void SetActivation (G4int id, G4bool activation)=0
 
virtual G4bool GetActivation (G4int id) const =0
 
virtual void SetNewCycle (G4bool value)=0
 
virtual G4bool GetNewCycle () const =0
 
virtual G4int GetNofNtuples () const =0
 
virtual G4bool SetFirstNtupleColumnId (G4int firstId)=0
 
virtual void Clear ()=0
 
virtual G4bool List (std::ostream &output, G4bool onlyIfActive=true)=0
 
- Protected Member Functions inherited from G4BaseAnalysisManager
G4bool IsVerbose (G4int verboseLevel) const
 
void Message (G4int level, const G4String &action, const G4String &objectType, const G4String &objectName="", G4bool success=true) const
 

Protected Attributes

std::vector< G4TNtupleDescription< NT, FT > * > fNtupleDescriptionVector
 
std::vector< NT * > fNtupleVector
 
const std::vector< G4NtupleBooking * > * fNtupleBookingVector { nullptr }
 
G4bool fNewCycle { false }
 
- Protected Attributes inherited from G4BaseNtupleManager
G4int fFirstNtupleColumnId { 0 }
 
- Protected Attributes inherited from G4BaseAnalysisManager
const G4AnalysisManagerStatefState
 
G4int fFirstId { 0 }
 
G4bool fLockFirstId { false }
 

Detailed Description

template<typename NT, typename FT>
class G4TNtupleManager< NT, FT >

Definition at line 43 of file G4TNtupleManager.hh.

Constructor & Destructor Documentation

◆ G4TNtupleManager() [1/2]

template<typename NT , typename FT >
G4TNtupleManager< NT, FT >::G4TNtupleManager ( const G4AnalysisManagerState state)
explicit

◆ G4TNtupleManager() [2/2]

template<typename NT , typename FT >
G4TNtupleManager< NT, FT >::G4TNtupleManager ( )
delete

◆ ~G4TNtupleManager()

template<typename NT , typename FT >
G4TNtupleManager< NT, FT >::~G4TNtupleManager ( )
override

Member Function Documentation

◆ AddNtupleRow() [1/3]

template<typename NT , typename FT >
G4bool G4BaseNtupleManager::AddNtupleRow ( )
finalprotectedvirtual

Reimplemented from G4BaseNtupleManager.

Definition at line 59 of file G4BaseNtupleManager.cc.

62{
63 return AddNtupleRow(fFirstId);
64}
G4bool AddNtupleRow() final

◆ AddNtupleRow() [2/3]

template<typename NT , typename FT >
G4bool G4TNtupleManager< NT, FT >::AddNtupleRow ( G4int  ntupleId)
overrideprotectedvirtual

Implements G4BaseNtupleManager.

◆ AddNtupleRow() [3/3]

template<typename NT , typename FT >
G4bool G4BaseNtupleManager::AddNtupleRow ( G4int  ntupleId)
overrideprotectedvirtual

Implements G4BaseNtupleManager.

◆ BeginConstNtuple()

template<typename NT , typename FT >
std::vector< NT * >::const_iterator G4TNtupleManager< NT, FT >::BeginConstNtuple ( ) const
protected

◆ BeginNtuple()

template<typename NT , typename FT >
std::vector< NT * >::iterator G4TNtupleManager< NT, FT >::BeginNtuple ( )
protected

◆ Clear()

template<typename NT , typename FT >
void G4TNtupleManager< NT, FT >::Clear ( )
overrideprotectedvirtual

Implements G4VNtupleManager.

◆ CreateNtuple()

template<typename NT , typename FT >
G4int G4TNtupleManager< NT, FT >::CreateNtuple ( G4NtupleBooking ntupleBooking)
overrideprotectedvirtual

Implements G4BaseNtupleManager.

◆ CreateNtuplesFromBooking()

template<typename NT , typename FT >
virtual void G4TNtupleManager< NT, FT >::CreateNtuplesFromBooking ( const std::vector< G4NtupleBooking * > &  ntupleBookings)
protectedvirtual

◆ EndConstNtuple()

template<typename NT , typename FT >
std::vector< NT * >::const_iterator G4TNtupleManager< NT, FT >::EndConstNtuple ( ) const
protected

◆ EndNtuple()

template<typename NT , typename FT >
std::vector< NT * >::iterator G4TNtupleManager< NT, FT >::EndNtuple ( )
protected

◆ FillNtupleDColumn() [1/3]

template<typename NT , typename FT >
G4bool G4BaseNtupleManager::FillNtupleDColumn ( G4int  id,
G4double  value 
)
finalprotectedvirtual

Reimplemented from G4BaseNtupleManager.

Definition at line 57 of file G4BaseNtupleManager.cc.

50{
51 return FillNtupleDColumn(fFirstId, id, value);
52}
G4bool FillNtupleDColumn(G4int ntupleId, G4int columnId, G4double value) final

◆ FillNtupleDColumn() [2/3]

template<typename NT , typename FT >
G4bool G4TNtupleManager< NT, FT >::FillNtupleDColumn ( G4int  ntupleId,
G4int  columnId,
G4double  value 
)
finalprotectedvirtual

Implements G4BaseNtupleManager.

◆ FillNtupleDColumn() [3/3]

template<typename NT , typename FT >
G4bool G4BaseNtupleManager::FillNtupleDColumn ( G4int  ntupleId,
G4int  columnId,
G4double  value 
)
overrideprotectedvirtual

Implements G4BaseNtupleManager.

◆ FillNtupleFColumn() [1/3]

template<typename NT , typename FT >
G4bool G4BaseNtupleManager::FillNtupleFColumn ( G4int  id,
G4float  value 
)
finalprotectedvirtual

Reimplemented from G4BaseNtupleManager.

Definition at line 56 of file G4BaseNtupleManager.cc.

44{
45 return FillNtupleFColumn(fFirstId, id, value);
46}
G4bool FillNtupleFColumn(G4int ntupleId, G4int columnId, G4float value) final

◆ FillNtupleFColumn() [2/3]

template<typename NT , typename FT >
G4bool G4TNtupleManager< NT, FT >::FillNtupleFColumn ( G4int  ntupleId,
G4int  columnId,
G4float  value 
)
finalprotectedvirtual

Implements G4BaseNtupleManager.

◆ FillNtupleFColumn() [3/3]

template<typename NT , typename FT >
G4bool G4BaseNtupleManager::FillNtupleFColumn ( G4int  ntupleId,
G4int  columnId,
G4float  value 
)
overrideprotectedvirtual

Implements G4BaseNtupleManager.

◆ FillNtupleIColumn() [1/3]

template<typename NT , typename FT >
G4bool G4BaseNtupleManager::FillNtupleIColumn ( G4int  id,
G4int  value 
)
finalprotectedvirtual

Reimplemented from G4BaseNtupleManager.

Definition at line 55 of file G4BaseNtupleManager.cc.

38{
39 return FillNtupleIColumn(fFirstId, id, value);
40}
G4bool FillNtupleIColumn(G4int ntupleId, G4int columnId, G4int value) final

◆ FillNtupleIColumn() [2/3]

template<typename NT , typename FT >
G4bool G4TNtupleManager< NT, FT >::FillNtupleIColumn ( G4int  ntupleId,
G4int  columnId,
G4int  value 
)
finalprotectedvirtual

Implements G4BaseNtupleManager.

◆ FillNtupleIColumn() [3/3]

template<typename NT , typename FT >
G4bool G4BaseNtupleManager::FillNtupleIColumn ( G4int  ntupleId,
G4int  columnId,
G4int  value 
)
overrideprotectedvirtual

Implements G4BaseNtupleManager.

◆ FillNtupleSColumn() [1/3]

template<typename NT , typename FT >
G4bool G4BaseNtupleManager::FillNtupleSColumn ( G4int  id,
const G4String value 
)
finalprotectedvirtual

Reimplemented from G4BaseNtupleManager.

Definition at line 58 of file G4BaseNtupleManager.cc.

56{
57 return FillNtupleSColumn(fFirstId, id, value);
58}
G4bool FillNtupleSColumn(G4int ntupleId, G4int columnId, const G4String &value) final

◆ FillNtupleSColumn() [2/3]

template<typename NT , typename FT >
G4bool G4TNtupleManager< NT, FT >::FillNtupleSColumn ( G4int  ntupleId,
G4int  columnId,
const G4String value 
)
finalprotectedvirtual

Implements G4BaseNtupleManager.

◆ FillNtupleSColumn() [3/3]

template<typename NT , typename FT >
G4bool G4BaseNtupleManager::FillNtupleSColumn ( G4int  ntupleId,
G4int  columnId,
const G4String value 
)
overrideprotectedvirtual

Implements G4BaseNtupleManager.

◆ GetActivation()

template<typename NT , typename FT >
G4bool G4TNtupleManager< NT, FT >::GetActivation ( G4int  ntupleId) const
finalprotectedvirtual

Implements G4VNtupleManager.

◆ GetNewCycle()

template<typename NT , typename FT >
G4bool G4TNtupleManager< NT, FT >::GetNewCycle ( ) const
overrideprotectedvirtual

Implements G4VNtupleManager.

◆ GetNofNtuples()

template<typename NT , typename FT >
G4int G4TNtupleManager< NT, FT >::GetNofNtuples ( ) const
finalprotectedvirtual

Implements G4VNtupleManager.

◆ GetNtuple() [1/2]

template<typename NT , typename FT >
NT * G4TNtupleManager< NT, FT >::GetNtuple ( ) const
protected

◆ GetNtuple() [2/2]

template<typename NT , typename FT >
NT * G4TNtupleManager< NT, FT >::GetNtuple ( G4int  ntupleId) const
protected

◆ List()

template<typename NT , typename FT >
G4bool G4TNtupleManager< NT, FT >::List ( std::ostream &  output,
G4bool  onlyIfActive = true 
)
finalprotectedvirtual

Implements G4VNtupleManager.

◆ Reset()

template<typename NT , typename FT >
virtual G4bool G4TNtupleManager< NT, FT >::Reset ( )
protectedvirtual

◆ SetActivation() [1/2]

template<typename NT , typename FT >
void G4TNtupleManager< NT, FT >::SetActivation ( G4bool  activation)
finalprotectedvirtual

Implements G4VNtupleManager.

◆ SetActivation() [2/2]

template<typename NT , typename FT >
void G4TNtupleManager< NT, FT >::SetActivation ( G4int  ntupleId,
G4bool  activation 
)
finalprotectedvirtual

Implements G4VNtupleManager.

◆ SetNewCycle()

template<typename NT , typename FT >
void G4TNtupleManager< NT, FT >::SetNewCycle ( G4bool  value)
overrideprotectedvirtual

Implements G4VNtupleManager.

Member Data Documentation

◆ fNewCycle

template<typename NT , typename FT >
G4bool G4TNtupleManager< NT, FT >::fNewCycle { false }
protected

Definition at line 105 of file G4TNtupleManager.hh.

◆ fNtupleBookingVector

template<typename NT , typename FT >
const std::vector<G4NtupleBooking*>* G4TNtupleManager< NT, FT >::fNtupleBookingVector { nullptr }
protected

Definition at line 104 of file G4TNtupleManager.hh.

◆ fNtupleDescriptionVector

template<typename NT , typename FT >
std::vector<G4TNtupleDescription<NT, FT>*> G4TNtupleManager< NT, FT >::fNtupleDescriptionVector
protected

Definition at line 102 of file G4TNtupleManager.hh.

◆ fNtupleVector

template<typename NT , typename FT >
std::vector<NT*> G4TNtupleManager< NT, FT >::fNtupleVector
protected

Definition at line 103 of file G4TNtupleManager.hh.


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