#include <G4CsvRNtupleManager.hh>
|
| G4CsvRNtupleManager (const G4AnalysisManagerState &state) |
|
virtual | ~G4CsvRNtupleManager () |
|
G4bool | IsEmpty () const |
|
G4bool | Reset () |
|
tools::rcsv::ntuple * | GetNtuple () const |
|
tools::rcsv::ntuple * | GetNtuple (G4int ntupleId) const |
|
G4int | SetNtuple (G4CsvRNtupleDescription *rntupleDescription) |
|
virtual G4bool | SetNtupleIColumn (const G4String &columnName, G4int &value) |
|
virtual G4bool | SetNtupleFColumn (const G4String &columnName, G4float &value) |
|
virtual G4bool | SetNtupleDColumn (const G4String &columnName, G4double &value) |
|
virtual G4bool | SetNtupleSColumn (const G4String &columnName, G4String &value) |
|
virtual G4bool | SetNtupleIColumn (const G4String &columnName, std::vector< G4int > &vector) |
|
virtual G4bool | SetNtupleFColumn (const G4String &columnName, std::vector< G4float > &vector) |
|
virtual G4bool | SetNtupleDColumn (const G4String &columnName, std::vector< G4double > &vector) |
|
virtual G4bool | SetNtupleIColumn (G4int ntupleId, const G4String &columnName, G4int &value) |
|
virtual G4bool | SetNtupleFColumn (G4int ntupleId, const G4String &columnName, G4float &value) |
|
virtual G4bool | SetNtupleDColumn (G4int ntupleId, const G4String &columnName, G4double &value) |
|
virtual G4bool | SetNtupleSColumn (G4int ntupleId, const G4String &columnName, G4String &value) |
|
virtual G4bool | SetNtupleIColumn (G4int ntupleId, const G4String &columnName, std::vector< G4int > &vector) |
|
virtual G4bool | SetNtupleFColumn (G4int ntupleId, const G4String &columnName, std::vector< G4float > &vector) |
|
virtual G4bool | SetNtupleDColumn (G4int ntupleId, const G4String &columnName, std::vector< G4double > &vector) |
|
virtual G4bool | GetNtupleRow () |
|
virtual G4bool | GetNtupleRow (G4int ntupleId) |
|
virtual G4int | GetNofNtuples () const |
|
Definition at line 45 of file G4CsvRNtupleManager.hh.
G4CsvRNtupleManager::~G4CsvRNtupleManager |
( |
| ) |
|
|
protectedvirtual |
Definition at line 42 of file G4CsvRNtupleManager.cc.
44 std::vector<G4CsvRNtupleDescription*>::iterator it;
45 for (it = fNtupleVector.begin(); it != fNtupleVector.end(); it++ ) {
G4int G4CsvRNtupleManager::GetNofNtuples |
( |
| ) |
const |
|
inlineprotectedvirtual |
tools::rcsv::ntuple * G4CsvRNtupleManager::GetNtuple |
( |
| ) |
const |
|
protected |
tools::rcsv::ntuple * G4CsvRNtupleManager::GetNtuple |
( |
G4int |
ntupleId | ) |
const |
|
protected |
Definition at line 105 of file G4CsvRNtupleManager.cc.
108 = GetNtupleInFunction(ntupleId,
"GetNtuple");
110 if ( ! rntupleDescription )
return nullptr;
112 return rntupleDescription->
fNtuple;
tools::rcsv::ntuple * fNtuple
G4bool G4CsvRNtupleManager::GetNtupleRow |
( |
| ) |
|
|
protectedvirtual |
G4bool G4CsvRNtupleManager::GetNtupleRow |
( |
G4int |
ntupleId | ) |
|
|
protectedvirtual |
Implements G4VRNtupleManager.
Definition at line 398 of file G4CsvRNtupleManager.cc.
404 description <<
" ntupleId " << ntupleId;
410 = GetNtupleInFunction(ntupleId,
"GetNtupleRow");
411 if ( ! ntupleDescription )
return false;
413 tools::rcsv::ntuple* ntuple = ntupleDescription->
fNtuple;
416 if ( ! isInitialized ) {
417 tools::ntuple_binding* ntupleBinding = ntupleDescription->
fNtupleBinding;
418 if ( ! ntuple->initialize(
G4cout, *ntupleBinding) ) {
422 <<
"Ntuple initialization failed !!";
431 G4bool next = ntuple->next();
433 if ( ! ntuple->get_row() ) {
437 <<
"Ntuple get_row() failed !!";
447 description <<
" ntupleId " << ntupleId;
void Message(const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
std::ostringstream G4ExceptionDescription
tools::ntuple_binding * fNtupleBinding
const G4AnalysisVerbose * GetVerboseL2() const
G4GLOB_DLL std::ostream G4cout
const G4AnalysisVerbose * GetVerboseL4() const
tools::rcsv::ntuple * fNtuple
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
const G4AnalysisManagerState & fState
G4bool G4CsvRNtupleManager::IsEmpty |
( |
| ) |
const |
|
protected |
G4bool G4CsvRNtupleManager::Reset |
( |
| ) |
|
|
protected |
Definition at line 84 of file G4CsvRNtupleManager.cc.
88 std::vector<G4CsvRNtupleDescription*>::iterator it;
89 for (it = fNtupleVector.begin(); it != fNtupleVector.end(); it++ ) {
G4bool G4CsvRNtupleManager::SetNtupleDColumn |
( |
const G4String & |
columnName, |
|
|
std::vector< G4double > & |
vector |
|
) |
| |
|
protectedvirtual |
Implements G4VRNtupleManager.
Definition at line 237 of file G4CsvRNtupleManager.cc.
244 description <<
" ntupleId " << ntupleId <<
" " << columnName;
250 = GetNtupleInFunction(ntupleId,
"SetNtupleDColumn");
251 if ( ! ntupleDescription )
return false;
253 tools::ntuple_binding* ntupleBinding = ntupleDescription->
fNtupleBinding;
254 ntupleBinding->add_column(columnName,
value);
259 description <<
" ntupleId " << ntupleId <<
" " << columnName;
void Message(const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
std::ostringstream G4ExceptionDescription
tools::ntuple_binding * fNtupleBinding
const G4AnalysisVerbose * GetVerboseL2() const
const XML_Char int const XML_Char * value
const G4AnalysisVerbose * GetVerboseL4() const
const G4AnalysisManagerState & fState
Implements G4VRNtupleManager.
Definition at line 330 of file G4CsvRNtupleManager.cc.
337 description <<
" ntupleId " << ntupleId <<
" " << columnName;
343 = GetNtupleInFunction(ntupleId,
"SetNtupleDColumn");
344 if ( ! ntupleDescription )
return false;
346 tools::ntuple_binding* ntupleBinding = ntupleDescription->
fNtupleBinding;
347 ntupleBinding->add_column(columnName, vector);
352 description <<
" ntupleId " << ntupleId <<
" " << columnName;
void Message(const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
std::ostringstream G4ExceptionDescription
tools::ntuple_binding * fNtupleBinding
const G4AnalysisVerbose * GetVerboseL2() const
const G4AnalysisVerbose * GetVerboseL4() const
const G4AnalysisManagerState & fState
G4bool G4CsvRNtupleManager::SetNtupleFColumn |
( |
const G4String & |
columnName, |
|
|
std::vector< G4float > & |
vector |
|
) |
| |
|
protectedvirtual |
Implements G4VRNtupleManager.
Definition at line 206 of file G4CsvRNtupleManager.cc.
213 description <<
" ntupleId " << ntupleId <<
" " << columnName;
219 = GetNtupleInFunction(ntupleId,
"SetNtupleFColumn");
220 if ( ! ntupleDescription )
return false;
222 tools::ntuple_binding* ntupleBinding = ntupleDescription->
fNtupleBinding;
223 ntupleBinding->add_column(columnName,
value);
228 description <<
" ntupleId " << ntupleId <<
" " << columnName;
void Message(const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
std::ostringstream G4ExceptionDescription
tools::ntuple_binding * fNtupleBinding
const G4AnalysisVerbose * GetVerboseL2() const
const XML_Char int const XML_Char * value
const G4AnalysisVerbose * GetVerboseL4() const
const G4AnalysisManagerState & fState
Implements G4VRNtupleManager.
Definition at line 299 of file G4CsvRNtupleManager.cc.
306 description <<
" ntupleId " << ntupleId <<
" " << columnName;
312 = GetNtupleInFunction(ntupleId,
"SetNtupleFColumn");
313 if ( ! ntupleDescription )
return false;
315 tools::ntuple_binding* ntupleBinding = ntupleDescription->
fNtupleBinding;
316 ntupleBinding->add_column(columnName, vector);
321 description <<
" ntupleId " << ntupleId <<
" " << columnName;
void Message(const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
std::ostringstream G4ExceptionDescription
tools::ntuple_binding * fNtupleBinding
const G4AnalysisVerbose * GetVerboseL2() const
const G4AnalysisVerbose * GetVerboseL4() const
const G4AnalysisManagerState & fState
G4bool G4CsvRNtupleManager::SetNtupleIColumn |
( |
const G4String & |
columnName, |
|
|
std::vector< G4int > & |
vector |
|
) |
| |
|
protectedvirtual |
Implements G4VRNtupleManager.
Definition at line 175 of file G4CsvRNtupleManager.cc.
182 description <<
" ntupleId " << ntupleId <<
" " << columnName;
188 = GetNtupleInFunction(ntupleId,
"SetNtupleIColumn");
189 if ( ! ntupleDescription )
return false;
191 tools::ntuple_binding* ntupleBinding = ntupleDescription->
fNtupleBinding;
192 ntupleBinding->add_column(columnName,
value);
197 description <<
" ntupleId " << ntupleId <<
" " << columnName;
void Message(const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
std::ostringstream G4ExceptionDescription
tools::ntuple_binding * fNtupleBinding
const G4AnalysisVerbose * GetVerboseL2() const
const XML_Char int const XML_Char * value
const G4AnalysisVerbose * GetVerboseL4() const
const G4AnalysisManagerState & fState
G4bool G4CsvRNtupleManager::SetNtupleIColumn |
( |
G4int |
ntupleId, |
|
|
const G4String & |
columnName, |
|
|
std::vector< G4int > & |
vector |
|
) |
| |
|
protectedvirtual |
Implements G4VRNtupleManager.
Definition at line 268 of file G4CsvRNtupleManager.cc.
275 description <<
" ntupleId " << ntupleId <<
" " << columnName;
281 = GetNtupleInFunction(ntupleId,
"SetNtupleIColumn");
282 if ( ! ntupleDescription )
return false;
284 tools::ntuple_binding* ntupleBinding = ntupleDescription->
fNtupleBinding;
285 ntupleBinding->add_column(columnName, vector);
290 description <<
" ntupleId " << ntupleId <<
" " << columnName;
void Message(const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
std::ostringstream G4ExceptionDescription
tools::ntuple_binding * fNtupleBinding
const G4AnalysisVerbose * GetVerboseL2() const
const G4AnalysisVerbose * GetVerboseL4() const
const G4AnalysisManagerState & fState
Implements G4VRNtupleManager.
Definition at line 361 of file G4CsvRNtupleManager.cc.
368 description <<
" ntupleId " << ntupleId <<
" " << columnName;
374 = GetNtupleInFunction(ntupleId,
"SetNtupleSColumn");
375 if ( ! ntupleDescription )
return false;
377 tools::ntuple_binding* ntupleBinding = ntupleDescription->
fNtupleBinding;
378 ntupleBinding->add_column(columnName, value);
383 description <<
" ntupleId " << ntupleId <<
" " << columnName;
void Message(const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
std::ostringstream G4ExceptionDescription
tools::ntuple_binding * fNtupleBinding
const G4AnalysisVerbose * GetVerboseL2() const
const G4AnalysisVerbose * GetVerboseL4() const
const G4AnalysisManagerState & fState
The documentation for this class was generated from the following files: