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

#include <G4TNtupleDescription.hh>

Public Member Functions

 G4TNtupleDescription (G4NtupleBooking *g4NtupleBooking)
 
 G4TNtupleDescription ()=delete
 
 ~G4TNtupleDescription ()
 
void SetFile (std::shared_ptr< FT > file)
 
void SetNtuple (NT *ntuple)
 
void SetFileName (const G4String &fileName)
 
void SetActivation (G4bool activation)
 
void SetIsNtupleOwner (G4bool isNtupleOwner)
 
void SetHasFill (G4bool hasFill)
 
void Reset ()
 
std::shared_ptr< FT > GetFile () const
 
NT * GetNtuple () const
 
const tools::ntuple_booking & GetNtupleBooking () const
 
G4String GetFileName () const
 
G4bool GetActivation () const
 
G4bool GetIsNtupleOwner () const
 
G4bool GetHasFill () const
 

Detailed Description

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

Definition at line 43 of file G4TNtupleDescription.hh.

Constructor & Destructor Documentation

◆ G4TNtupleDescription() [1/2]

template<typename NT , typename FT >
G4TNtupleDescription< NT, FT >::G4TNtupleDescription ( G4NtupleBooking g4NtupleBooking)
inline

Definition at line 46 of file G4TNtupleDescription.hh.

47 : fNtupleBooking(g4NtupleBooking->fNtupleBooking),
48 fFileName(g4NtupleBooking->fFileName),
49 fActivation(g4NtupleBooking->fActivation)
50 {}
tools::ntuple_booking fNtupleBooking

◆ G4TNtupleDescription() [2/2]

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

◆ ~G4TNtupleDescription()

template<typename NT , typename FT >
G4TNtupleDescription< NT, FT >::~G4TNtupleDescription ( )
inline

Definition at line 53 of file G4TNtupleDescription.hh.

54 {
55 if ( fIsNtupleOwner ) delete fNtuple;
56 }

Member Function Documentation

◆ GetActivation()

template<typename NT , typename FT >
G4bool G4TNtupleDescription< NT, FT >::GetActivation

Definition at line 137 of file G4TNtupleDescription.hh.

138{ return fActivation; }

◆ GetFile()

◆ GetFileName()

template<typename NT , typename FT >
G4String G4TNtupleDescription< NT, FT >::GetFileName

Definition at line 133 of file G4TNtupleDescription.hh.

134{ return fFileName; }

◆ GetHasFill()

template<typename NT , typename FT >
G4bool G4TNtupleDescription< NT, FT >::GetHasFill

◆ GetIsNtupleOwner()

template<typename NT , typename FT >
G4bool G4TNtupleDescription< NT, FT >::GetIsNtupleOwner

Definition at line 141 of file G4TNtupleDescription.hh.

142{ return fIsNtupleOwner; }

Referenced by G4RootPNtupleDescription::Reset(), and G4RootPNtupleDescription::~G4RootPNtupleDescription().

◆ GetNtuple()

template<typename NT , typename FT >
NT * G4TNtupleDescription< NT, FT >::GetNtuple

Definition at line 124 of file G4TNtupleDescription.hh.

125{ return fNtuple; }

◆ GetNtupleBooking()

template<typename NT , typename FT >
const tools::ntuple_booking & G4TNtupleDescription< NT, FT >::GetNtupleBooking

Definition at line 129 of file G4TNtupleDescription.hh.

130{ return fNtupleBooking; }

Referenced by G4RootMainNtupleManager::CreateNtuple().

◆ Reset()

template<typename NT , typename FT >
void G4TNtupleDescription< NT, FT >::Reset

Definition at line 113 of file G4TNtupleDescription.hh.

114{
115 if (fIsNtupleOwner) delete fNtuple;
116 fNtuple = nullptr;
117}

◆ SetActivation()

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

Definition at line 101 of file G4TNtupleDescription.hh.

102{ fActivation = activation; }

◆ SetFile()

template<typename NT , typename FT >
void G4TNtupleDescription< NT, FT >::SetFile ( std::shared_ptr< FT >  file)

◆ SetFileName()

template<typename NT , typename FT >
void G4TNtupleDescription< NT, FT >::SetFileName ( const G4String fileName)

Definition at line 97 of file G4TNtupleDescription.hh.

98{ fFileName = fileName; }

Referenced by G4CsvFileManager::CreateNtupleFile().

◆ SetHasFill()

template<typename NT , typename FT >
void G4TNtupleDescription< NT, FT >::SetHasFill ( G4bool  hasFill)

Definition at line 109 of file G4TNtupleDescription.hh.

110{ fHasFill = hasFill; }

◆ SetIsNtupleOwner()

template<typename NT , typename FT >
void G4TNtupleDescription< NT, FT >::SetIsNtupleOwner ( G4bool  isNtupleOwner)

Definition at line 105 of file G4TNtupleDescription.hh.

106{ fIsNtupleOwner = isNtupleOwner; }

◆ SetNtuple()

template<typename NT , typename FT >
void G4TNtupleDescription< NT, FT >::SetNtuple ( NT *  ntuple)

Definition at line 93 of file G4TNtupleDescription.hh.

94{ fNtuple = ntuple; }

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