Geant4-11
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Static Private Attributes | Friends
G4RootRNtupleManager Class Reference

#include <G4RootRNtupleManager.hh>

Inheritance diagram for G4RootRNtupleManager:
G4TRNtupleManager< tools::rroot::ntuple > G4BaseRNtupleManager G4VRNtupleManager G4BaseAnalysisManager

Public Member Functions

 G4RootRNtupleManager ()=delete
 
 G4RootRNtupleManager (const G4AnalysisManagerState &state)
 
G4int GetFirstId () const
 
G4bool SetFirstId (G4int firstId)
 
void SetLockFirstId (G4bool lockFirstId)
 
virtual ~G4RootRNtupleManager ()=default
 

Protected Member Functions

virtual G4int GetNofNtuples () const final
 
tools::rroot::ntuple * GetNtuple () const
 
tools::rroot::ntuple * GetNtuple (G4int ntupleId) const
 
G4TRNtupleDescription< tools::rroot::ntuple > * GetNtupleDescriptionInFunction (G4int id, std::string_view function, G4bool warn=true) const
 
virtual G4bool GetNtupleRow () final
 
virtual G4bool GetNtupleRow (G4int ntupleId) final
 
virtual G4bool GetNtupleRow (G4int ntupleId)=0
 
G4bool IsEmpty () const
 
G4bool IsVerbose (G4int verboseLevel) const
 
void Message (G4int level, const G4String &action, const G4String &objectType, const G4String &objectName="", G4bool success=true) const
 
G4bool Reset ()
 
G4int SetNtuple (G4TRNtupleDescription< tools::rroot::ntuple > *rntupleDescription)
 
virtual G4bool SetNtupleDColumn (const G4String &columnName, G4double &value) final
 
virtual G4bool SetNtupleDColumn (const G4String &columnName, std::vector< G4double > &vector) final
 
virtual G4bool SetNtupleDColumn (G4int ntupleId, const G4String &columnName, G4double &value) final
 
virtual G4bool SetNtupleDColumn (G4int ntupleId, const G4String &columnName, G4double &value)=0
 
virtual G4bool SetNtupleDColumn (G4int ntupleId, const G4String &columnName, std::vector< G4double > &vector) override
 
virtual G4bool SetNtupleDColumn (G4int ntupleId, const G4String &columnName, std::vector< G4double > &vector)=0
 
virtual G4bool SetNtupleFColumn (const G4String &columnName, G4float &value) final
 
virtual G4bool SetNtupleFColumn (const G4String &columnName, std::vector< G4float > &vector) final
 
virtual G4bool SetNtupleFColumn (G4int ntupleId, const G4String &columnName, G4float &value) final
 
virtual G4bool SetNtupleFColumn (G4int ntupleId, const G4String &columnName, G4float &value)=0
 
virtual G4bool SetNtupleFColumn (G4int ntupleId, const G4String &columnName, std::vector< G4float > &vector) override
 
virtual G4bool SetNtupleFColumn (G4int ntupleId, const G4String &columnName, std::vector< G4float > &vector)=0
 
virtual G4bool SetNtupleIColumn (const G4String &columnName, G4int &value) final
 
virtual G4bool SetNtupleIColumn (const G4String &columnName, std::vector< G4int > &vector) final
 
virtual G4bool SetNtupleIColumn (G4int ntupleId, const G4String &columnName, G4int &value) final
 
virtual G4bool SetNtupleIColumn (G4int ntupleId, const G4String &columnName, G4int &value)=0
 
virtual G4bool SetNtupleIColumn (G4int ntupleId, const G4String &columnName, std::vector< G4int > &vector) override
 
virtual G4bool SetNtupleIColumn (G4int ntupleId, const G4String &columnName, std::vector< G4int > &vector)=0
 
virtual G4bool SetNtupleSColumn (const G4String &columnName, G4String &value) final
 
virtual G4bool SetNtupleSColumn (const G4String &columnName, std::vector< std::string > &vector) final
 
virtual G4bool SetNtupleSColumn (G4int ntupleId, const G4String &columnName, G4String &value) final
 
virtual G4bool SetNtupleSColumn (G4int ntupleId, const G4String &columnName, G4String &value)=0
 
virtual G4bool SetNtupleSColumn (G4int ntupleId, const G4String &columnName, std::vector< std::string > &vector) override
 
virtual G4bool SetNtupleSColumn (G4int ntupleId, const G4String &columnName, std::vector< std::string > &vector)=0
 

Protected Attributes

G4int fFirstId { 0 }
 
G4bool fLockFirstId { false }
 
const G4AnalysisManagerStatefState
 

Private Member Functions

G4int GetCurrentNtupleId () const
 
virtual G4bool GetTNtupleRow (G4TRNtupleDescription< tools::rroot::ntuple > *ntupleDescription) final
 
virtual G4int ReadNtupleImpl (const G4String &ntupleName, const G4String &fileName, const G4String &dirName, G4bool isUserFileName) final
 
void SetFileManager (std::shared_ptr< G4RootRFileManager > fileManager)
 
G4bool SetNtupleTColumn (G4int ntupleId, const G4String &name, std::vector< T > &vector)
 
G4bool SetNtupleTColumn (G4int ntupleId, const G4String &name, T &value)
 

Private Attributes

std::shared_ptr< G4RootRFileManagerfFileManager { nullptr }
 
std::vector< G4TRNtupleDescription< tools::rroot::ntuple > * > fNtupleDescriptionVector
 

Static Private Attributes

static constexpr std::string_view fkClass { "G4RootPNtupleManager" }
 

Friends

class G4RootAnalysisReader
 

Detailed Description

Definition at line 45 of file G4RootRNtupleManager.hh.

Constructor & Destructor Documentation

◆ G4RootRNtupleManager() [1/2]

G4RootRNtupleManager::G4RootRNtupleManager ( const G4AnalysisManagerState state)
explicit

◆ G4RootRNtupleManager() [2/2]

G4RootRNtupleManager::G4RootRNtupleManager ( )
delete

◆ ~G4RootRNtupleManager()

virtual G4RootRNtupleManager::~G4RootRNtupleManager ( )
virtualdefault

Member Function Documentation

◆ GetCurrentNtupleId()

G4int G4BaseRNtupleManager::GetCurrentNtupleId ( ) const
privateinherited

◆ GetFirstId()

G4int G4BaseAnalysisManager::GetFirstId ( ) const
inlineinherited

Definition at line 94 of file G4BaseAnalysisManager.hh.

94 {
95 return fFirstId;
96}

References G4BaseAnalysisManager::fFirstId.

◆ GetNofNtuples()

virtual G4int G4TRNtupleManager< tools::rroot::ntuple >::GetNofNtuples ( ) const
finalprotectedvirtualinherited

Implements G4BaseRNtupleManager.

◆ GetNtuple() [1/2]

tools::rroot::ntuple * G4TRNtupleManager< tools::rroot::ntuple >::GetNtuple ( ) const
protectedinherited

◆ GetNtuple() [2/2]

tools::rroot::ntuple * G4TRNtupleManager< tools::rroot::ntuple >::GetNtuple ( G4int  ntupleId) const
protectedinherited

◆ GetNtupleDescriptionInFunction()

G4TRNtupleDescription< tools::rroot::ntuple > * G4TRNtupleManager< tools::rroot::ntuple >::GetNtupleDescriptionInFunction ( G4int  id,
std::string_view  function,
G4bool  warn = true 
) const
protectedinherited

◆ GetNtupleRow() [1/3]

G4bool G4BaseRNtupleManager::GetNtupleRow ( )
finalprotectedvirtualinherited

Reimplemented from G4BaseRNtupleManager.

Definition at line 88 of file G4BaseRNtupleManager.cc.

102{
103 return GetNtupleRow(fFirstId);
104}

◆ GetNtupleRow() [2/3]

virtual G4bool G4TRNtupleManager< tools::rroot::ntuple >::GetNtupleRow ( G4int  ntupleId)
finalprotectedvirtualinherited

Implements G4BaseRNtupleManager.

◆ GetNtupleRow() [3/3]

virtual G4bool G4BaseRNtupleManager::GetNtupleRow ( G4int  ntupleId)
protectedvirtualinherited

Implements G4BaseRNtupleManager.

◆ GetTNtupleRow()

G4bool G4RootRNtupleManager::GetTNtupleRow ( G4TRNtupleDescription< tools::rroot::ntuple > *  ntupleDescription)
finalprivatevirtual

Implements G4TRNtupleManager< tools::rroot::ntuple >.

Definition at line 137 of file G4RootRNtupleManager.cc.

139{
140 auto ntuple = ntupleDescription->fNtuple;
141 auto ntupleBinding = ntupleDescription->fNtupleBinding;
142
143 G4bool isInitialized = ntupleDescription->fIsInitialized;
144 if ( ! isInitialized ) {
145
146 if ( ! ntuple->initialize(G4cout, *ntupleBinding) ) {
147 Warn("Ntuple initialization failed !!", fkClass, "GetTNtupleRow");
148 return false;
149 }
150 ntupleDescription->fIsInitialized = true;
151 ntuple->start();
152 }
153
154 auto next = ntuple->next();
155 if ( next ) {
156 if ( ! ntuple->get_row() ) {
157 Warn("Ntuple get_row() failed !!", fkClass, "GetTNtupleRow");
158 return false;
159 }
160 }
161
162 return next;
163}
bool G4bool
Definition: G4Types.hh:86
G4GLOB_DLL std::ostream G4cout
static constexpr std::string_view fkClass
void Warn(const G4String &message, const std::string_view inClass, const std::string_view inFunction)
G4bool isInitialized()
tools::ntuple_binding * fNtupleBinding

References G4TRNtupleDescription< NT >::fIsInitialized, fkClass, G4TRNtupleDescription< NT >::fNtuple, G4TRNtupleDescription< NT >::fNtupleBinding, G4cout, G4INCL::Random::isInitialized(), and G4Analysis::Warn().

◆ IsEmpty()

G4bool G4TRNtupleManager< tools::rroot::ntuple >::IsEmpty ( ) const
protectedinherited

◆ IsVerbose()

G4bool G4BaseAnalysisManager::IsVerbose ( G4int  verboseLevel) const
inlineprotectedinherited

Definition at line 80 of file G4BaseAnalysisManager.hh.

81{ return fState.IsVerbose(verboseLevel); }
G4bool IsVerbose(G4int verboseLevel) const
const G4AnalysisManagerState & fState

References G4BaseAnalysisManager::fState, and G4AnalysisManagerState::IsVerbose().

Referenced by G4RootPNtupleManager::AddNtupleRow(), and G4RootPNtupleManager::Merge().

◆ Message()

void G4BaseAnalysisManager::Message ( G4int  level,
const G4String action,
const G4String objectType,
const G4String objectName = "",
G4bool  success = true 
) const
inlineprotectedinherited

◆ ReadNtupleImpl()

G4int G4RootRNtupleManager::ReadNtupleImpl ( const G4String ntupleName,
const G4String fileName,
const G4String dirName,
G4bool  isUserFileName 
)
finalprivatevirtual

Implements G4VRNtupleManager.

Definition at line 52 of file G4RootRNtupleManager.cc.

56{
57 Message(kVL4, "read", "ntuple", ntupleName);
58
59 // Ntuples are saved per thread
60 // but do not apply the thread suffix if fileName is provided explicitly
61 auto isPerThread = true;
62 if ( isUserFileName ) isPerThread = false;
63
64 // Get or open a file
65 auto rfile = fFileManager->GetRFile(fileName, isPerThread);
66 if ( ! rfile ) {
67 if ( ! fFileManager->OpenRFile(fileName, isPerThread) ) return kInvalidId;
68 rfile = fFileManager->GetRFile(fileName, isPerThread);
69 }
70
71 // Get key
72 tools::rroot::key* key = nullptr;
73 tools::rroot::TDirectory* newDir = nullptr;
74 if ( ! dirName.empty() ) {
75 newDir = tools::rroot::find_dir(rfile->dir(), dirName);
76 if ( newDir ) {
77 key = newDir->find_key(ntupleName);
78 }
79 else {
81 "Directory " + dirName + " not found in file " + fileName + ".",
82 fkClass, "ReadNtupleImpl");
83 return kInvalidId;
84 }
85 }
86 else {
87 key = rfile->dir().find_key(ntupleName);
88 }
89
90 if ( ! key ) {
91 Warn("Key " + ntupleName + " for Ntuple not found in file " + fileName +
92 ", directory " + dirName, fkClass, "ReadNtupleImpl");
93 delete newDir;
94 return kInvalidId;
95 }
96
97 unsigned int size;
98 char* charBuffer = key->get_object_buffer(*rfile, size);
99 if ( ! charBuffer ) {
100 Warn("Cannot get data buffer for Ntuple " + ntupleName +
101 " in file " + fileName, fkClass, "ReadNtupleImpl");
102 delete newDir;
103 return kInvalidId;
104 }
105
106 auto verbose = false;
107 auto buffer
108 = new tools::rroot::buffer(G4cout, rfile->byte_swap(), size, charBuffer,
109 key->key_length(), verbose);
110 buffer->set_map_objs(true);
111
112 auto fac = new tools::rroot::fac(G4cout);
113
114 auto tree = new tools::rroot::tree(*rfile, *fac);
115 if ( ! tree->stream(*buffer) ) {
116 Warn("TTree streaming failed for Ntuple " + ntupleName +
117 " in file " + fileName,
118 fkClass, "ReadNtupleImpl");
119
120 delete buffer;
121 delete tree;
122 delete newDir;
123 return kInvalidId;
124 }
125
126 auto rntuple = new tools::rroot::ntuple(*tree); //use the flat ntuple API.
127 auto rntupleDescription = new G4TRNtupleDescription<tools::rroot::ntuple>(rntuple);
128
129 auto id = SetNtuple(rntupleDescription);
130
131 Message(kVL2, "read", "ntuple", ntupleName, id > kInvalidId);
132
133 return id;
134}
static const G4double fac
void Message(G4int level, const G4String &action, const G4String &objectType, const G4String &objectName="", G4bool success=true) const
std::shared_ptr< G4RootRFileManager > fFileManager
G4int SetNtuple(G4TRNtupleDescription< tools::rroot::ntuple > *rntupleDescription)
constexpr G4int kVL2
constexpr G4int kVL4
constexpr G4int kInvalidId
#define buffer
Definition: xmlparse.cc:628

References buffer, fac, fFileManager, fkClass, G4cout, G4Analysis::kInvalidId, G4Analysis::kVL2, G4Analysis::kVL4, G4BaseAnalysisManager::Message(), G4TRNtupleManager< tools::rroot::ntuple >::SetNtuple(), and G4Analysis::Warn().

◆ Reset()

G4bool G4TRNtupleManager< tools::rroot::ntuple >::Reset ( )
protectedinherited

◆ SetFileManager()

void G4RootRNtupleManager::SetFileManager ( std::shared_ptr< G4RootRFileManager fileManager)
inlineprivate

Definition at line 71 of file G4RootRNtupleManager.hh.

72{ fFileManager = fileManager; }

References fFileManager.

◆ SetFirstId()

G4bool G4BaseAnalysisManager::SetFirstId ( G4int  firstId)
inherited

Definition at line 46 of file G4BaseAnalysisManager.cc.

47{
48 if ( fLockFirstId ) {
49 Warn("Cannot set FirstId as its value was already used.",
50 fkClass, "SetFirstId");
51
52 return false;
53 }
54
55 fFirstId = firstId;
56 return true;
57}
static constexpr std::string_view fkClass

References G4BaseAnalysisManager::fFirstId, G4BaseAnalysisManager::fkClass, G4BaseAnalysisManager::fLockFirstId, and G4Analysis::Warn().

◆ SetLockFirstId()

void G4BaseAnalysisManager::SetLockFirstId ( G4bool  lockFirstId)
inlineinherited

Definition at line 90 of file G4BaseAnalysisManager.hh.

90 {
91 fLockFirstId = lockFirstId;
92}

References G4BaseAnalysisManager::fLockFirstId.

Referenced by G4HnManager::ClearData().

◆ SetNtuple()

G4int G4TRNtupleManager< tools::rroot::ntuple >::SetNtuple ( G4TRNtupleDescription< tools::rroot::ntuple > *  rntupleDescription)
protectedinherited

◆ SetNtupleDColumn() [1/6]

G4bool G4BaseRNtupleManager::SetNtupleDColumn ( const G4String columnName,
G4double value 
)
finalprotectedvirtualinherited

Reimplemented from G4BaseRNtupleManager.

Definition at line 65 of file G4BaseRNtupleManager.cc.

61{
62 return SetNtupleDColumn(GetCurrentNtupleId(), columnName, value);
63}
G4int GetCurrentNtupleId() const
virtual G4bool SetNtupleDColumn(G4int ntupleId, const G4String &columnName, G4double &value) final

◆ SetNtupleDColumn() [2/6]

G4bool G4BaseRNtupleManager::SetNtupleDColumn ( const G4String columnName,
std::vector< G4double > &  vector 
)
finalprotectedvirtualinherited

Reimplemented from G4BaseRNtupleManager.

Definition at line 65 of file G4BaseRNtupleManager.cc.

89{
90 return SetNtupleDColumn(GetCurrentNtupleId(), columnName, vector);
91}

◆ SetNtupleDColumn() [3/6]

virtual G4bool G4TRNtupleManager< tools::rroot::ntuple >::SetNtupleDColumn ( G4int  ntupleId,
const G4String columnName,
G4double value 
)
finalprotectedvirtualinherited

Implements G4BaseRNtupleManager.

◆ SetNtupleDColumn() [4/6]

virtual G4bool G4BaseRNtupleManager::SetNtupleDColumn ( G4int  ntupleId,
const G4String columnName,
G4double value 
)
protectedvirtualinherited

Implements G4BaseRNtupleManager.

◆ SetNtupleDColumn() [5/6]

virtual G4bool G4TRNtupleManager< tools::rroot::ntuple >::SetNtupleDColumn ( G4int  ntupleId,
const G4String columnName,
std::vector< G4double > &  vector 
)
overrideprotectedvirtualinherited

Implements G4BaseRNtupleManager.

◆ SetNtupleDColumn() [6/6]

virtual G4bool G4BaseRNtupleManager::SetNtupleDColumn ( G4int  ntupleId,
const G4String columnName,
std::vector< G4double > &  vector 
)
protectedvirtualinherited

Implements G4BaseRNtupleManager.

◆ SetNtupleFColumn() [1/6]

G4bool G4BaseRNtupleManager::SetNtupleFColumn ( const G4String columnName,
G4float value 
)
finalprotectedvirtualinherited

Reimplemented from G4BaseRNtupleManager.

Definition at line 64 of file G4BaseRNtupleManager.cc.

54{
55 return SetNtupleFColumn(GetCurrentNtupleId(), columnName, value);
56}
virtual G4bool SetNtupleFColumn(G4int ntupleId, const G4String &columnName, G4float &value) final

◆ SetNtupleFColumn() [2/6]

G4bool G4BaseRNtupleManager::SetNtupleFColumn ( const G4String columnName,
std::vector< G4float > &  vector 
)
finalprotectedvirtualinherited

Reimplemented from G4BaseRNtupleManager.

Definition at line 64 of file G4BaseRNtupleManager.cc.

82{
83 return SetNtupleFColumn(GetCurrentNtupleId(), columnName, vector);
84}

◆ SetNtupleFColumn() [3/6]

virtual G4bool G4TRNtupleManager< tools::rroot::ntuple >::SetNtupleFColumn ( G4int  ntupleId,
const G4String columnName,
G4float value 
)
finalprotectedvirtualinherited

Implements G4BaseRNtupleManager.

◆ SetNtupleFColumn() [4/6]

virtual G4bool G4BaseRNtupleManager::SetNtupleFColumn ( G4int  ntupleId,
const G4String columnName,
G4float value 
)
protectedvirtualinherited

Implements G4BaseRNtupleManager.

◆ SetNtupleFColumn() [5/6]

virtual G4bool G4TRNtupleManager< tools::rroot::ntuple >::SetNtupleFColumn ( G4int  ntupleId,
const G4String columnName,
std::vector< G4float > &  vector 
)
overrideprotectedvirtualinherited

Implements G4BaseRNtupleManager.

◆ SetNtupleFColumn() [6/6]

virtual G4bool G4BaseRNtupleManager::SetNtupleFColumn ( G4int  ntupleId,
const G4String columnName,
std::vector< G4float > &  vector 
)
protectedvirtualinherited

Implements G4BaseRNtupleManager.

◆ SetNtupleIColumn() [1/6]

G4bool G4BaseRNtupleManager::SetNtupleIColumn ( const G4String columnName,
G4int value 
)
finalprotectedvirtualinherited

Reimplemented from G4BaseRNtupleManager.

Definition at line 63 of file G4BaseRNtupleManager.cc.

48{
49 return SetNtupleIColumn(GetCurrentNtupleId(), columnName, value);
50}
virtual G4bool SetNtupleIColumn(G4int ntupleId, const G4String &columnName, G4int &value) final

◆ SetNtupleIColumn() [2/6]

G4bool G4BaseRNtupleManager::SetNtupleIColumn ( const G4String columnName,
std::vector< G4int > &  vector 
)
finalprotectedvirtualinherited

Reimplemented from G4BaseRNtupleManager.

Definition at line 63 of file G4BaseRNtupleManager.cc.

75{
76 return SetNtupleIColumn(GetCurrentNtupleId(), columnName, vector);
77}

◆ SetNtupleIColumn() [3/6]

virtual G4bool G4TRNtupleManager< tools::rroot::ntuple >::SetNtupleIColumn ( G4int  ntupleId,
const G4String columnName,
G4int value 
)
finalprotectedvirtualinherited

Implements G4BaseRNtupleManager.

◆ SetNtupleIColumn() [4/6]

virtual G4bool G4BaseRNtupleManager::SetNtupleIColumn ( G4int  ntupleId,
const G4String columnName,
G4int value 
)
protectedvirtualinherited

Implements G4BaseRNtupleManager.

◆ SetNtupleIColumn() [5/6]

virtual G4bool G4TRNtupleManager< tools::rroot::ntuple >::SetNtupleIColumn ( G4int  ntupleId,
const G4String columnName,
std::vector< G4int > &  vector 
)
overrideprotectedvirtualinherited

Implements G4BaseRNtupleManager.

◆ SetNtupleIColumn() [6/6]

virtual G4bool G4BaseRNtupleManager::SetNtupleIColumn ( G4int  ntupleId,
const G4String columnName,
std::vector< G4int > &  vector 
)
protectedvirtualinherited

Implements G4BaseRNtupleManager.

◆ SetNtupleSColumn() [1/6]

G4bool G4BaseRNtupleManager::SetNtupleSColumn ( const G4String columnName,
G4String value 
)
finalprotectedvirtualinherited

Reimplemented from G4BaseRNtupleManager.

Definition at line 66 of file G4BaseRNtupleManager.cc.

68{
69 return SetNtupleSColumn(GetCurrentNtupleId(), columnName, value);
70}
virtual G4bool SetNtupleSColumn(G4int ntupleId, const G4String &columnName, G4String &value) final

◆ SetNtupleSColumn() [2/6]

G4bool G4BaseRNtupleManager::SetNtupleSColumn ( const G4String columnName,
std::vector< std::string > &  vector 
)
finalprotectedvirtualinherited

Reimplemented from G4BaseRNtupleManager.

Definition at line 66 of file G4BaseRNtupleManager.cc.

96{
97 return SetNtupleSColumn(GetCurrentNtupleId(), columnName, vector);
98}

◆ SetNtupleSColumn() [3/6]

virtual G4bool G4TRNtupleManager< tools::rroot::ntuple >::SetNtupleSColumn ( G4int  ntupleId,
const G4String columnName,
G4String value 
)
finalprotectedvirtualinherited

Implements G4BaseRNtupleManager.

◆ SetNtupleSColumn() [4/6]

virtual G4bool G4BaseRNtupleManager::SetNtupleSColumn ( G4int  ntupleId,
const G4String columnName,
G4String value 
)
protectedvirtualinherited

Implements G4BaseRNtupleManager.

◆ SetNtupleSColumn() [5/6]

virtual G4bool G4TRNtupleManager< tools::rroot::ntuple >::SetNtupleSColumn ( G4int  ntupleId,
const G4String columnName,
std::vector< std::string > &  vector 
)
overrideprotectedvirtualinherited

Implements G4BaseRNtupleManager.

◆ SetNtupleSColumn() [6/6]

virtual G4bool G4BaseRNtupleManager::SetNtupleSColumn ( G4int  ntupleId,
const G4String columnName,
std::vector< std::string > &  vector 
)
protectedvirtualinherited

Implements G4BaseRNtupleManager.

◆ SetNtupleTColumn() [1/2]

G4bool G4TRNtupleManager< tools::rroot::ntuple >::SetNtupleTColumn ( G4int  ntupleId,
const G4String name,
std::vector< T > &  vector 
)
privateinherited

◆ SetNtupleTColumn() [2/2]

G4bool G4TRNtupleManager< tools::rroot::ntuple >::SetNtupleTColumn ( G4int  ntupleId,
const G4String name,
T &  value 
)
privateinherited

Friends And Related Function Documentation

◆ G4RootAnalysisReader

friend class G4RootAnalysisReader
friend

Definition at line 47 of file G4RootRNtupleManager.hh.

Field Documentation

◆ fFileManager

std::shared_ptr<G4RootRFileManager> G4RootRNtupleManager::fFileManager { nullptr }
private

Definition at line 67 of file G4RootRNtupleManager.hh.

Referenced by ReadNtupleImpl(), and SetFileManager().

◆ fFirstId

G4int G4BaseAnalysisManager::fFirstId { 0 }
protectedinherited

◆ fkClass

constexpr std::string_view G4RootRNtupleManager::fkClass { "G4RootPNtupleManager" }
staticconstexprprivate

Definition at line 64 of file G4RootRNtupleManager.hh.

Referenced by GetTNtupleRow(), and ReadNtupleImpl().

◆ fLockFirstId

G4bool G4BaseAnalysisManager::fLockFirstId { false }
protectedinherited

◆ fNtupleDescriptionVector

std::vector<G4TRNtupleDescription<tools::rroot::ntuple >*> G4TRNtupleManager< tools::rroot::ntuple >::fNtupleDescriptionVector
privateinherited

Definition at line 118 of file G4TRNtupleManager.hh.

◆ fState

const G4AnalysisManagerState& G4BaseAnalysisManager::fState
protectedinherited

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