ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4TNtupleManager< TNTUPLE > Class Template Referenceabstract

#include <geant4/tree/geant4-10.6-release/source/analysis/management/include/G4TNtupleManager.hh>

+ Inheritance diagram for G4TNtupleManager< TNTUPLE >:
+ Collaboration diagram for G4TNtupleManager< TNTUPLE >:

Public Member Functions

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

Protected Member Functions

virtual void CreateNtuplesFromBooking ()
 
G4bool IsEmpty () const
 
virtual G4bool Reset (G4bool deleteNtuple)
 
virtual G4int CreateNtuple (const G4String &name, const G4String &title) override
 
virtual G4int CreateNtupleIColumn (G4int ntupleId, const G4String &name, std::vector< int > *vector) final
 
virtual G4int CreateNtupleFColumn (G4int ntupleId, const G4String &name, std::vector< float > *vector) final
 
virtual G4int CreateNtupleDColumn (G4int ntupleId, const G4String &name, std::vector< double > *vector) final
 
virtual G4int CreateNtupleSColumn (G4int ntupleId, const G4String &name) final
 
virtual void FinishNtuple (G4int ntupleId) final
 
virtual G4bool FillNtupleIColumn (G4int ntupleId, G4int columnId, G4int value) final
 
virtual G4bool FillNtupleFColumn (G4int ntupleId, G4int columnId, G4float value) final
 
virtual G4bool FillNtupleDColumn (G4int ntupleId, G4int columnId, G4double value) final
 
virtual G4bool FillNtupleSColumn (G4int ntupleId, G4int columnId, const G4String &value) final
 
virtual G4bool AddNtupleRow (G4int ntupleId) override
 
virtual void SetActivation (G4bool activation) final
 
virtual void SetActivation (G4int ntupleId, G4bool activation) final
 
virtual G4bool GetActivation (G4int ntupleId) const final
 
TNTUPLE * GetNtuple () const
 
TNTUPLE * GetNtuple (G4int ntupleId) const
 
virtual G4int GetNofNtuples () const final
 
virtual G4int GetNofNtupleBookings () const override
 
std::vector< TNTUPLE * >::iterator BeginNtuple ()
 
std::vector< TNTUPLE * >::iterator EndNtuple ()
 
std::vector< TNTUPLE * >
::const_iterator 
BeginConstNtuple () const
 
std::vector< TNTUPLE * >
::const_iterator 
EndConstNtuple () const
 
- Protected Member Functions inherited from G4BaseNtupleManager
virtual G4int CreateNtupleIColumn (const G4String &name, std::vector< int > *vector) final
 
virtual G4int CreateNtupleFColumn (const G4String &name, std::vector< float > *vector) final
 
virtual G4int CreateNtupleDColumn (const G4String &name, std::vector< double > *vector) final
 
virtual G4int CreateNtupleSColumn (const G4String &name)
 
virtual void FinishNtuple () final
 
virtual G4bool SetFirstNtupleColumnId (G4int firstId) final
 
G4int GetFirstNtupleColumnId () const final
 
virtual G4bool FillNtupleIColumn (G4int id, G4int value) final
 
virtual G4bool FillNtupleFColumn (G4int id, G4float value) final
 
virtual G4bool FillNtupleDColumn (G4int id, G4double value) final
 
virtual G4bool FillNtupleSColumn (G4int id, const G4String &value) final
 
virtual G4bool AddNtupleRow () final
 

Protected Attributes

std::vector
< G4TNtupleDescription
< TNTUPLE > * > 
fNtupleDescriptionVector
 
std::vector< TNTUPLE * > fNtupleVector
 
- Protected Attributes inherited from G4BaseNtupleManager
G4int fFirstNtupleColumnId
 
G4bool fLockFirstNtupleColumnId
 

Private Member Functions

virtual void CreateTNtupleFromBooking (G4TNtupleDescription< TNTUPLE > *ntupleDescription)=0
 
virtual void FinishTNtuple (G4TNtupleDescription< TNTUPLE > *ntupleDescription, G4bool fromBooking)=0
 
G4TNtupleDescription< TNTUPLE > * GetNtupleDescriptionInFunction (G4int id, G4String function, G4bool warn=true) const
 
TNTUPLE * GetNtupleInFunction (G4int id, G4String function, G4bool warn=true) const
 
template<typename T >
G4int CreateNtupleTColumn (G4int ntupleId, const G4String &name, std::vector< T > *vector)
 
template<typename T >
G4bool FillNtupleTColumn (G4int ntupleId, G4int columnId, const T &value)
 

Detailed Description

template<typename TNTUPLE>
class G4TNtupleManager< TNTUPLE >

Definition at line 41 of file G4TNtupleManager.hh.

View newest version in sPHENIX GitHub at line 41 of file G4TNtupleManager.hh

Constructor & Destructor Documentation

template<typename TNTUPLE>
G4TNtupleManager< TNTUPLE >::G4TNtupleManager ( const G4AnalysisManagerState state)
explicit
template<typename TNTUPLE>
G4TNtupleManager< TNTUPLE >::~G4TNtupleManager ( )

Member Function Documentation

template<typename TNTUPLE>
virtual G4bool G4TNtupleManager< TNTUPLE >::AddNtupleRow ( G4int  ntupleId)
overrideprotectedvirtual

Implements G4BaseNtupleManager.

template<typename TNTUPLE>
std::vector<TNTUPLE*>::const_iterator G4TNtupleManager< TNTUPLE >::BeginConstNtuple ( ) const
protected
template<typename TNTUPLE>
std::vector<TNTUPLE*>::iterator G4TNtupleManager< TNTUPLE >::BeginNtuple ( )
protected
template<typename TNTUPLE>
virtual G4int G4TNtupleManager< TNTUPLE >::CreateNtuple ( const G4String name,
const G4String title 
)
overrideprotectedvirtual

Implements G4BaseNtupleManager.

template<typename TNTUPLE>
virtual G4int G4TNtupleManager< TNTUPLE >::CreateNtupleDColumn ( G4int  ntupleId,
const G4String name,
std::vector< double > *  vector 
)
finalprotectedvirtual

Implements G4BaseNtupleManager.

template<typename TNTUPLE>
virtual G4int G4TNtupleManager< TNTUPLE >::CreateNtupleFColumn ( G4int  ntupleId,
const G4String name,
std::vector< float > *  vector 
)
finalprotectedvirtual

Implements G4BaseNtupleManager.

template<typename TNTUPLE>
virtual G4int G4TNtupleManager< TNTUPLE >::CreateNtupleIColumn ( G4int  ntupleId,
const G4String name,
std::vector< int > *  vector 
)
finalprotectedvirtual

Implements G4BaseNtupleManager.

template<typename TNTUPLE>
virtual G4int G4TNtupleManager< TNTUPLE >::CreateNtupleSColumn ( G4int  ntupleId,
const G4String name 
)
finalprotectedvirtual

Implements G4BaseNtupleManager.

template<typename TNTUPLE>
virtual void G4TNtupleManager< TNTUPLE >::CreateNtuplesFromBooking ( )
protectedvirtual

Reimplemented in G4RootMpiNtupleManager.

Referenced by G4RootMpiNtupleManager::CreateNtuplesFromBooking(), G4RootMpiAnalysisManager::OpenFileImpl(), G4Hdf5AnalysisManager::OpenFileImpl(), G4XmlAnalysisManager::OpenFileImpl(), G4CsvAnalysisManager::OpenFileImpl(), and G4RootAnalysisManager::OpenFileImpl().

+ Here is the caller graph for this function:

template<typename TNTUPLE>
template<typename T >
G4int G4TNtupleManager< TNTUPLE >::CreateNtupleTColumn ( G4int  ntupleId,
const G4String name,
std::vector< T > *  vector 
)
private
template<typename TNTUPLE>
virtual void G4TNtupleManager< TNTUPLE >::CreateTNtupleFromBooking ( G4TNtupleDescription< TNTUPLE > *  ntupleDescription)
privatepure virtual
template<typename TNTUPLE>
std::vector<TNTUPLE*>::const_iterator G4TNtupleManager< TNTUPLE >::EndConstNtuple ( ) const
protected
template<typename TNTUPLE>
std::vector<TNTUPLE*>::iterator G4TNtupleManager< TNTUPLE >::EndNtuple ( )
protected
template<typename TNTUPLE>
virtual G4bool G4TNtupleManager< TNTUPLE >::FillNtupleDColumn ( G4int  ntupleId,
G4int  columnId,
G4double  value 
)
finalprotectedvirtual

Implements G4BaseNtupleManager.

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

Implements G4BaseNtupleManager.

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

Implements G4BaseNtupleManager.

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

Implements G4BaseNtupleManager.

template<typename TNTUPLE>
template<typename T >
G4bool G4TNtupleManager< TNTUPLE >::FillNtupleTColumn ( G4int  ntupleId,
G4int  columnId,
const T value 
)
private
template<typename TNTUPLE>
virtual void G4TNtupleManager< TNTUPLE >::FinishNtuple ( G4int  ntupleId)
finalprotectedvirtual

Implements G4BaseNtupleManager.

template<typename TNTUPLE>
virtual void G4TNtupleManager< TNTUPLE >::FinishTNtuple ( G4TNtupleDescription< TNTUPLE > *  ntupleDescription,
G4bool  fromBooking 
)
privatepure virtual
template<typename TNTUPLE>
virtual G4bool G4TNtupleManager< TNTUPLE >::GetActivation ( G4int  ntupleId) const
finalprotectedvirtual

Implements G4VNtupleManager.

Referenced by G4TNtupleManager< tools::hdf5::ntuple >::FillNtupleTColumn(), and G4TNtupleManager< tools::wroot::ntuple >::FillNtupleTColumn().

+ Here is the caller graph for this function:

template<typename TNTUPLE>
virtual G4int G4TNtupleManager< TNTUPLE >::GetNofNtupleBookings ( ) const
overrideprotectedvirtual

Implements G4VNtupleManager.

template<typename TNTUPLE>
virtual G4int G4TNtupleManager< TNTUPLE >::GetNofNtuples ( ) const
finalprotectedvirtual

Implements G4VNtupleManager.

template<typename TNTUPLE>
TNTUPLE* G4TNtupleManager< TNTUPLE >::GetNtuple ( ) const
protected
template<typename TNTUPLE>
TNTUPLE* G4TNtupleManager< TNTUPLE >::GetNtuple ( G4int  ntupleId) const
protected
template<typename TNTUPLE>
G4TNtupleDescription<TNTUPLE>* G4TNtupleManager< TNTUPLE >::GetNtupleDescriptionInFunction ( G4int  id,
G4String  function,
G4bool  warn = true 
) const
private
template<typename TNTUPLE>
TNTUPLE* G4TNtupleManager< TNTUPLE >::GetNtupleInFunction ( G4int  id,
G4String  function,
G4bool  warn = true 
) const
private

Referenced by G4TNtupleManager< tools::hdf5::ntuple >::FillNtupleTColumn(), and G4TNtupleManager< tools::wroot::ntuple >::FillNtupleTColumn().

+ Here is the caller graph for this function:

template<typename TNTUPLE>
G4bool G4TNtupleManager< TNTUPLE >::IsEmpty ( ) const
protected

Referenced by G4RootAnalysisManager::CloseFileImpl().

+ Here is the caller graph for this function:

template<typename TNTUPLE>
virtual G4bool G4TNtupleManager< TNTUPLE >::Reset ( G4bool  deleteNtuple)
protectedvirtual

Reimplemented in G4RootNtupleManager.

Referenced by G4Hdf5AnalysisManager::CloseFileImpl(), G4XmlAnalysisManager::CloseFileImpl(), G4CsvAnalysisManager::CloseFileImpl(), G4XmlAnalysisManager::Reset(), G4CsvAnalysisManager::Reset(), G4Hdf5AnalysisManager::Reset(), and G4RootNtupleManager::Reset().

+ Here is the caller graph for this function:

template<typename TNTUPLE>
virtual void G4TNtupleManager< TNTUPLE >::SetActivation ( G4bool  activation)
finalprotectedvirtual

Implements G4VNtupleManager.

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

Implements G4VNtupleManager.

Member Data Documentation

template<typename TNTUPLE>
std::vector<G4TNtupleDescription<TNTUPLE>*> G4TNtupleManager< TNTUPLE >::fNtupleDescriptionVector
protected

Definition at line 107 of file G4TNtupleManager.hh.

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

template<typename TNTUPLE>
std::vector<TNTUPLE*> G4TNtupleManager< TNTUPLE >::fNtupleVector
protected

Definition at line 108 of file G4TNtupleManager.hh.

View newest version in sPHENIX GitHub at line 108 of file G4TNtupleManager.hh


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