Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4XmlRNtupleManager Class Reference

#include <G4XmlRNtupleManager.hh>

+ Inheritance diagram for G4XmlRNtupleManager:

Protected Member Functions

 G4XmlRNtupleManager (const G4AnalysisManagerState &state)
 
virtual ~G4XmlRNtupleManager ()
 
virtual G4bool SetNtupleIColumn (G4int ntupleId, const G4String &columnName, std::vector< G4int > &vector) final
 
virtual G4bool SetNtupleFColumn (G4int ntupleId, const G4String &columnName, std::vector< G4float > &vector) final
 
virtual G4bool SetNtupleDColumn (G4int ntupleId, const G4String &columnName, std::vector< G4double > &vector) final
 
virtual G4bool SetNtupleIColumn (const G4String &columnName, G4int &value) final
 
virtual G4bool SetNtupleIColumn (G4int ntupleId, const G4String &columnName, G4int &value)=0
 
virtual G4bool SetNtupleIColumn (const G4String &columnName, std::vector< G4int > &vector) final
 
virtual G4bool SetNtupleIColumn (G4int ntupleId, const G4String &columnName, std::vector< G4int > &vector)=0
 
virtual G4bool SetNtupleFColumn (const G4String &columnName, G4float &value) final
 
virtual G4bool SetNtupleFColumn (G4int ntupleId, const G4String &columnName, G4float &value)=0
 
virtual G4bool SetNtupleFColumn (const G4String &columnName, std::vector< G4float > &vector) final
 
virtual G4bool SetNtupleFColumn (G4int ntupleId, const G4String &columnName, std::vector< G4float > &vector)=0
 
virtual G4bool SetNtupleDColumn (const G4String &columnName, G4double &value) final
 
virtual G4bool SetNtupleDColumn (G4int ntupleId, const G4String &columnName, G4double &value)=0
 
virtual G4bool SetNtupleDColumn (const G4String &columnName, std::vector< G4double > &vector) final
 
virtual G4bool SetNtupleDColumn (G4int ntupleId, const G4String &columnName, std::vector< G4double > &vector)=0
 
- Protected Member Functions inherited from G4TRNtupleManager< tools::aida::ntuple >
 G4TRNtupleManager (const G4AnalysisManagerState &state)
 
virtual ~G4TRNtupleManager ()
 
G4bool IsEmpty () const
 
G4bool Reset ()
 
tools::aida::ntuple * GetNtuple () const
 
tools::aida::ntuple * GetNtuple (G4int ntupleId) const
 
G4int SetNtuple (G4TRNtupleDescription< tools::aida::ntuple > *rntupleDescription)
 
virtual G4bool SetNtupleIColumn (G4int ntupleId, const G4String &columnName, G4int &value) final
 
virtual G4bool SetNtupleIColumn (G4int ntupleId, const G4String &columnName, std::vector< G4int > &vector) override
 
virtual G4bool SetNtupleIColumn (const G4String &columnName, G4int &value) final
 
virtual G4bool SetNtupleIColumn (G4int ntupleId, const G4String &columnName, G4int &value)=0
 
virtual G4bool SetNtupleIColumn (const G4String &columnName, std::vector< G4int > &vector) final
 
virtual G4bool SetNtupleIColumn (G4int ntupleId, const G4String &columnName, std::vector< G4int > &vector)=0
 
virtual G4bool SetNtupleFColumn (G4int ntupleId, const G4String &columnName, G4float &value) final
 
virtual G4bool SetNtupleFColumn (G4int ntupleId, const G4String &columnName, std::vector< G4float > &vector) override
 
virtual G4bool SetNtupleFColumn (const G4String &columnName, G4float &value) final
 
virtual G4bool SetNtupleFColumn (G4int ntupleId, const G4String &columnName, G4float &value)=0
 
virtual G4bool SetNtupleFColumn (const G4String &columnName, std::vector< G4float > &vector) final
 
virtual G4bool SetNtupleFColumn (G4int ntupleId, const G4String &columnName, std::vector< G4float > &vector)=0
 
virtual G4bool SetNtupleDColumn (G4int ntupleId, const G4String &columnName, G4double &value) final
 
virtual G4bool SetNtupleDColumn (G4int ntupleId, const G4String &columnName, std::vector< G4double > &vector) override
 
virtual G4bool SetNtupleDColumn (const G4String &columnName, G4double &value) final
 
virtual G4bool SetNtupleDColumn (G4int ntupleId, const G4String &columnName, G4double &value)=0
 
virtual G4bool SetNtupleDColumn (const G4String &columnName, std::vector< G4double > &vector) final
 
virtual G4bool SetNtupleDColumn (G4int ntupleId, const G4String &columnName, std::vector< G4double > &vector)=0
 
virtual G4bool SetNtupleSColumn (G4int ntupleId, const G4String &columnName, G4String &value) final
 
virtual G4bool SetNtupleSColumn (const G4String &columnName, G4String &value) final
 
virtual G4bool SetNtupleSColumn (G4int ntupleId, const G4String &columnName, G4String &value)=0
 
virtual G4bool GetNtupleRow (G4int ntupleId) final
 
virtual G4bool GetNtupleRow () final
 
virtual G4bool GetNtupleRow (G4int ntupleId)=0
 
virtual G4int GetNofNtuples () const final
 
G4TRNtupleDescription< tools::aida::ntuple > * GetNtupleDescriptionInFunction (G4int id, G4String function, G4bool warn=true) const
 
virtual G4bool SetNtupleIColumn (const G4String &columnName, G4int &value) final
 
virtual G4bool SetNtupleFColumn (const G4String &columnName, G4float &value) final
 
virtual G4bool SetNtupleDColumn (const G4String &columnName, G4double &value) final
 
virtual G4bool SetNtupleSColumn (const G4String &columnName, G4String &value) final
 
virtual G4bool SetNtupleIColumn (G4int ntupleId, const G4String &columnName, G4int &value)=0
 
virtual G4bool SetNtupleFColumn (G4int ntupleId, const G4String &columnName, G4float &value)=0
 
virtual G4bool SetNtupleDColumn (G4int ntupleId, const G4String &columnName, G4double &value)=0
 
virtual G4bool SetNtupleSColumn (G4int ntupleId, const G4String &columnName, G4String &value)=0
 
virtual G4bool SetNtupleIColumn (const G4String &columnName, std::vector< G4int > &vector) final
 
virtual G4bool SetNtupleFColumn (const G4String &columnName, std::vector< G4float > &vector) final
 
virtual G4bool SetNtupleDColumn (const G4String &columnName, std::vector< G4double > &vector) final
 
virtual G4bool SetNtupleIColumn (G4int ntupleId, const G4String &columnName, std::vector< G4int > &vector)=0
 
virtual G4bool SetNtupleFColumn (G4int ntupleId, const G4String &columnName, std::vector< G4float > &vector)=0
 
virtual G4bool SetNtupleDColumn (G4int ntupleId, const G4String &columnName, std::vector< G4double > &vector)=0
 
virtual G4bool GetNtupleRow () final
 
virtual G4bool GetNtupleRow (G4int ntupleId)=0
 
virtual G4int GetNofNtuples () const =0
 
virtual G4bool SetNtupleIColumn (const G4String &columnName, G4int &value)=0
 
virtual G4bool SetNtupleFColumn (const G4String &columnName, G4float &value)=0
 
virtual G4bool SetNtupleDColumn (const G4String &columnName, G4double &value)=0
 
virtual G4bool SetNtupleSColumn (const G4String &columnName, G4String &value)=0
 
virtual G4bool SetNtupleIColumn (const G4String &columnName, std::vector< G4int > &vector)=0
 
virtual G4bool SetNtupleFColumn (const G4String &columnName, std::vector< G4float > &vector)=0
 
virtual G4bool SetNtupleDColumn (const G4String &columnName, std::vector< G4double > &vector)=0
 
virtual G4bool SetNtupleIColumn (G4int ntupleId, const G4String &columnName, G4int &value)=0
 
virtual G4bool SetNtupleFColumn (G4int ntupleId, const G4String &columnName, G4float &value)=0
 
virtual G4bool SetNtupleDColumn (G4int ntupleId, const G4String &columnName, G4double &value)=0
 
virtual G4bool SetNtupleSColumn (G4int ntupleId, const G4String &columnName, G4String &value)=0
 
virtual G4bool SetNtupleIColumn (G4int ntupleId, const G4String &columnName, std::vector< G4int > &vector)=0
 
virtual G4bool SetNtupleFColumn (G4int ntupleId, const G4String &columnName, std::vector< G4float > &vector)=0
 
virtual G4bool SetNtupleDColumn (G4int ntupleId, const G4String &columnName, std::vector< G4double > &vector)=0
 
virtual G4bool GetNtupleRow ()=0
 
virtual G4bool GetNtupleRow (G4int ntupleId)=0
 
virtual G4int GetNofNtuples () const =0
 

Friends

class G4XmlAnalysisReader
 

Additional Inherited Members

- Public Member Functions inherited from G4BaseRNtupleManager
 G4BaseRNtupleManager (const G4AnalysisManagerState &state)
 
virtual ~G4BaseRNtupleManager ()
 
 G4BaseRNtupleManager (const G4BaseRNtupleManager &rhs)=delete
 
G4BaseRNtupleManageroperator= (const G4BaseRNtupleManager &rhs)=delete
 
- Public Member Functions inherited from G4VRNtupleManager
 G4VRNtupleManager (const G4AnalysisManagerState &state)
 
virtual ~G4VRNtupleManager ()
 
 G4VRNtupleManager (const G4VRNtupleManager &rhs)=delete
 
G4VRNtupleManageroperator= (const G4VRNtupleManager &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 Attributes inherited from G4BaseAnalysisManager
const G4AnalysisManagerStatefState
 
G4int fFirstId
 
G4bool fLockFirstId
 

Detailed Description

Definition at line 44 of file G4XmlRNtupleManager.hh.

Constructor & Destructor Documentation

◆ G4XmlRNtupleManager()

G4XmlRNtupleManager::G4XmlRNtupleManager ( const G4AnalysisManagerState state)
protected

◆ ~G4XmlRNtupleManager()

G4XmlRNtupleManager::~G4XmlRNtupleManager ( )
protectedvirtual

Definition at line 65 of file G4XmlRNtupleManager.cc.

66{}

Member Function Documentation

◆ SetNtupleDColumn() [1/5]

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

Reimplemented from G4BaseRNtupleManager.

Definition at line 61 of file G4BaseRNtupleManager.cc.

67{
68 return SetNtupleDColumn(GetCurrentNtupleId(), columnName, value);
69}
virtual G4bool SetNtupleDColumn(G4int ntupleId, const G4String &columnName, std::vector< G4double > &vector) final

◆ SetNtupleDColumn() [2/5]

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

Reimplemented from G4BaseRNtupleManager.

Definition at line 80 of file G4BaseRNtupleManager.cc.

95{
96 return SetNtupleDColumn(GetCurrentNtupleId(), columnName, vector);
97}

◆ SetNtupleDColumn() [3/5]

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

◆ SetNtupleDColumn() [4/5]

G4bool G4XmlRNtupleManager::SetNtupleDColumn ( G4int  ntupleId,
const G4String columnName,
std::vector< G4double > &  vector 
)
finalprotectedvirtual

Reimplemented from G4TRNtupleManager< tools::aida::ntuple >.

Definition at line 149 of file G4XmlRNtupleManager.cc.

152{
153// Override base class default implementation
154
155#ifdef G4VERBOSE
156 if ( fState.GetVerboseL4() ) {
157 G4ExceptionDescription description;
158 description << " ntupleId " << ntupleId << " " << columnName;
159 fState.GetVerboseL4()->Message("set", "ntuple D column of vector", description);
160 }
161#endif
162
163 auto ntupleDescription = GetNtupleDescriptionInFunction(ntupleId, "SetNtupleDColumn");
164 if ( ! ntupleDescription ) return false;
165
166 // not supported
167 //tools::ntuple_binding* ntupleBinding = ntupleDescription->fNtupleBinding;
168 //ntupleBinding->add_column(columnName, vector);
169
170 auto subNtuple = new tools::aida::ntuple(G4cout, columnName);
171 ntupleDescription->fDVectorBindingMap[subNtuple] = &vector;
172 tools::ntuple_binding* ntupleBinding = ntupleDescription->fNtupleBinding;
173 ntupleBinding->add_column_cid(columnName, *subNtuple);
174
175#ifdef G4VERBOSE
176 if ( fState.GetVerboseL2() ) {
177 G4ExceptionDescription description;
178 description << " ntupleId " << ntupleId << " " << columnName;
179 fState.GetVerboseL2()->Message("set", "ntuple D column", description, true);
180 }
181#endif
182
183 return true;
184}
std::ostringstream G4ExceptionDescription
Definition: G4Exception.hh:40
G4GLOB_DLL std::ostream G4cout
const G4AnalysisVerbose * GetVerboseL2() const
const G4AnalysisVerbose * GetVerboseL4() const
void Message(const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
const G4AnalysisManagerState & fState
G4TRNtupleDescription< tools::aida::ntuple > * GetNtupleDescriptionInFunction(G4int id, G4String function, G4bool warn=true) const

◆ SetNtupleDColumn() [5/5]

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

◆ SetNtupleFColumn() [1/5]

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

Reimplemented from G4BaseRNtupleManager.

Definition at line 59 of file G4BaseRNtupleManager.cc.

60{
61 return SetNtupleFColumn(GetCurrentNtupleId(), columnName, value);
62}
virtual G4bool SetNtupleFColumn(G4int ntupleId, const G4String &columnName, std::vector< G4float > &vector) final

◆ SetNtupleFColumn() [2/5]

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

Reimplemented from G4BaseRNtupleManager.

Definition at line 78 of file G4BaseRNtupleManager.cc.

88{
89 return SetNtupleFColumn(GetCurrentNtupleId(), columnName, vector);
90}

◆ SetNtupleFColumn() [3/5]

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

◆ SetNtupleFColumn() [4/5]

G4bool G4XmlRNtupleManager::SetNtupleFColumn ( G4int  ntupleId,
const G4String columnName,
std::vector< G4float > &  vector 
)
finalprotectedvirtual

Reimplemented from G4TRNtupleManager< tools::aida::ntuple >.

Definition at line 111 of file G4XmlRNtupleManager.cc.

114{
115// Override base class default implementation
116
117#ifdef G4VERBOSE
118 if ( fState.GetVerboseL4() ) {
119 G4ExceptionDescription description;
120 description << " ntupleId " << ntupleId << " " << columnName;
121 fState.GetVerboseL4()->Message("set", "ntuple F column of vector", description);
122 }
123#endif
124
125 auto ntupleDescription = GetNtupleDescriptionInFunction(ntupleId, "SetNtupleFColumn");
126 if ( ! ntupleDescription ) return false;
127
128 // not supported
129 //tools::ntuple_binding* ntupleBinding = ntupleDescription->fNtupleBinding;
130 //ntupleBinding->add_column(columnName, vector);
131
132 auto subNtuple = new tools::aida::ntuple(G4cout, columnName);
133 ntupleDescription->fFVectorBindingMap[subNtuple] = &vector;
134 tools::ntuple_binding* ntupleBinding = ntupleDescription->fNtupleBinding;
135 ntupleBinding->add_column_cid(columnName, *subNtuple);
136
137#ifdef G4VERBOSE
138 if ( fState.GetVerboseL2() ) {
139 G4ExceptionDescription description;
140 description << " ntupleId " << ntupleId << " " << columnName;
141 fState.GetVerboseL2()->Message("set", "ntuple F column", description, true);
142 }
143#endif
144
145 return true;
146}

◆ SetNtupleFColumn() [5/5]

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

◆ SetNtupleIColumn() [1/5]

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

Reimplemented from G4BaseRNtupleManager.

Definition at line 57 of file G4BaseRNtupleManager.cc.

54{
55 return SetNtupleIColumn(GetCurrentNtupleId(), columnName, value);
56}
virtual G4bool SetNtupleIColumn(G4int ntupleId, const G4String &columnName, std::vector< G4int > &vector) final

◆ SetNtupleIColumn() [2/5]

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

Reimplemented from G4BaseRNtupleManager.

Definition at line 76 of file G4BaseRNtupleManager.cc.

81{
82 return SetNtupleIColumn(GetCurrentNtupleId(), columnName, vector);
83}

◆ SetNtupleIColumn() [3/5]

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

◆ SetNtupleIColumn() [4/5]

G4bool G4XmlRNtupleManager::SetNtupleIColumn ( G4int  ntupleId,
const G4String columnName,
std::vector< G4int > &  vector 
)
finalprotectedvirtual

Reimplemented from G4TRNtupleManager< tools::aida::ntuple >.

Definition at line 73 of file G4XmlRNtupleManager.cc.

76{
77// Override base class default implementation
78
79#ifdef G4VERBOSE
80 if ( fState.GetVerboseL4() ) {
81 G4ExceptionDescription description;
82 description << " ntupleId " << ntupleId << " " << columnName;
83 fState.GetVerboseL4()->Message("set", "ntuple I column", description);
84 }
85#endif
86
87 auto ntupleDescription = GetNtupleDescriptionInFunction(ntupleId, "SetNtupleIColumn");
88 if ( ! ntupleDescription ) return false;
89
90 // not supported
91 //tools::ntuple_binding* ntupleBinding = ntupleDescription->fNtupleBinding;
92 //ntupleBinding->add_column(columnName, vector);
93
94 auto subNtuple = new tools::aida::ntuple(G4cout, columnName);
95 ntupleDescription->fIVectorBindingMap[subNtuple] = &vector;
96 tools::ntuple_binding* ntupleBinding = ntupleDescription->fNtupleBinding;
97 ntupleBinding->add_column_cid(columnName, *subNtuple);
98
99#ifdef G4VERBOSE
100 if ( fState.GetVerboseL2() ) {
101 G4ExceptionDescription description;
102 description << " ntupleId " << ntupleId << " " << columnName;
103 fState.GetVerboseL2()->Message("set", "ntuple I column", description, true);
104 }
105#endif
106
107 return true;
108}

◆ SetNtupleIColumn() [5/5]

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

Friends And Related Function Documentation

◆ G4XmlAnalysisReader

friend class G4XmlAnalysisReader
friend

Definition at line 46 of file G4XmlRNtupleManager.hh.


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