Geant4  10.03
G4TNtupleManager< TNTUPLE > Class Template Referenceabstract

#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 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

void CreateNtuplesFromBooking ()
 
G4bool IsEmpty () const
 
G4bool Reset (G4bool deleteNtuple)
 
virtual G4int CreateNtuple (const G4String &name, const G4String &title) final
 
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) final
 
virtual void FinishNtuple () final
 
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 columnId, G4int value) final
 
virtual G4bool FillNtupleFColumn (G4int columnId, G4float value) final
 
virtual G4bool FillNtupleDColumn (G4int columnId, G4double value) final
 
virtual G4bool FillNtupleSColumn (G4int columnId, const G4String &value) final
 
virtual G4bool AddNtupleRow () 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) final
 
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
 
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 G4VNtupleManager
G4bool SetFirstNtupleColumnId (G4int firstId)
 
G4int GetFirstNtupleColumnId () const
 

Protected Attributes

std::vector
< G4TNtupleDescription
< TNTUPLE > * > 
fNtupleDescriptionVector
 
std::vector< TNTUPLE * > fNtupleVector
 
- Protected Attributes inherited from G4VNtupleManager
G4int fFirstNtupleColumnId
 
G4bool fLockFirstNtupleColumnId
 
- Protected Attributes inherited from G4BaseAnalysisManager
const G4AnalysisManagerStatefState
 
G4int fFirstId
 
G4bool fLockFirstId
 

Private Member Functions

virtual void CreateTNtuple (G4TNtupleDescription< TNTUPLE > *ntupleDescription, const G4String &name, const G4String &title)=0
 
virtual void CreateTNtupleFromBooking (G4TNtupleDescription< TNTUPLE > *ntupleDescription)=0
 
virtual void FinishTNtuple (G4TNtupleDescription< TNTUPLE > *ntupleDescription)=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 >
void CreateTColumnInNtuple (G4TNtupleDescription< TNTUPLE > *ntupleDescription, const G4String &name, std::vector< T > *vector)
 
template<typename T >
G4int CreateNtupleTColumn (G4int ntupleId, const G4String &name, std::vector< T > *vector)
 
template<typename T >
G4int CreateNtupleTColumn (const G4String &name, std::vector< T > *vector)
 
template<typename T >
G4bool FillNtupleTColumn (G4int ntupleId, G4int columnId, const T &value)
 
template<typename T >
G4bool FillNtupleTColumn (G4int columnId, const T &value)
 

Detailed Description

template<typename TNTUPLE>
class G4TNtupleManager< TNTUPLE >

Definition at line 42 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 ( )
finalprotectedvirtual

Implements G4VNtupleManager.

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

Implements G4VNtupleManager.

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 
)
finalprotectedvirtual

Implements G4VNtupleManager.

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

Implements G4VNtupleManager.

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

Implements G4VNtupleManager.

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

Implements G4VNtupleManager.

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

Implements G4VNtupleManager.

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

Implements G4VNtupleManager.

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

Implements G4VNtupleManager.

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

Implements G4VNtupleManager.

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

Implements G4VNtupleManager.

template<typename TNTUPLE>
void G4TNtupleManager< TNTUPLE >::CreateNtuplesFromBooking ( )
protected

Referenced by 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>
template<typename T >
G4int G4TNtupleManager< TNTUPLE >::CreateNtupleTColumn ( const G4String name,
std::vector< T > *  vector 
)
private
template<typename TNTUPLE>
template<typename T >
void G4TNtupleManager< TNTUPLE >::CreateTColumnInNtuple ( G4TNtupleDescription< TNTUPLE > *  ntupleDescription,
const G4String name,
std::vector< T > *  vector 
)
private
template<typename TNTUPLE>
virtual void G4TNtupleManager< TNTUPLE >::CreateTNtuple ( G4TNtupleDescription< TNTUPLE > *  ntupleDescription,
const G4String name,
const G4String title 
)
privatepure virtual
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  columnId,
G4double  value 
)
finalprotectedvirtual

Implements G4VNtupleManager.

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

Implements G4VNtupleManager.

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

Implements G4VNtupleManager.

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

Implements G4VNtupleManager.

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

Implements G4VNtupleManager.

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

Implements G4VNtupleManager.

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

Implements G4VNtupleManager.

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

Implements G4VNtupleManager.

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

Implements G4VNtupleManager.

template<typename TNTUPLE>
virtual void G4TNtupleManager< TNTUPLE >::FinishNtuple ( G4int  ntupleId)
finalprotectedvirtual

Implements G4VNtupleManager.

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

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
template<typename TNTUPLE>
G4bool G4TNtupleManager< TNTUPLE >::IsEmpty ( ) const
protected
template<typename TNTUPLE>
G4bool G4TNtupleManager< TNTUPLE >::Reset ( G4bool  deleteNtuple)
protected

Referenced by G4XmlAnalysisManager::Reset(), G4CsvAnalysisManager::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 109 of file G4TNtupleManager.hh.

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

Definition at line 110 of file G4TNtupleManager.hh.


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