Geant4-11
|
#include <G4VAnalysisReader.hh>
Protected Member Functions | |
virtual G4bool | CloseFilesImpl (G4bool reset)=0 |
G4VAnalysisReader (const G4String &type) | |
void | Message (G4int level, const G4String &action, const G4String &objectType, const G4String &objectName="", G4bool success=true) const |
virtual G4int | ReadH1Impl (const G4String &h1Name, const G4String &fileName, const G4String &dirName, G4bool isUserFileName)=0 |
virtual G4int | ReadH2Impl (const G4String &h2Name, const G4String &fileName, const G4String &dirName, G4bool isUserFileName)=0 |
virtual G4int | ReadH3Impl (const G4String &h3Name, const G4String &fileName, const G4String &dirName, G4bool isUserFileName)=0 |
virtual G4int | ReadP1Impl (const G4String &p1Name, const G4String &fileName, const G4String &dirName, G4bool isUserFileName)=0 |
virtual G4int | ReadP2Impl (const G4String &p2Name, const G4String &fileName, const G4String &dirName, G4bool isUserFileName)=0 |
void | SetFileManager (std::shared_ptr< G4VRFileManager > fileManager) |
void | SetH1Manager (G4VH1Manager *h1Manager) |
void | SetH2Manager (G4VH2Manager *h2Manager) |
void | SetH3Manager (G4VH3Manager *h3Manager) |
void | SetNtupleManager (std::shared_ptr< G4VRNtupleManager > ntupleManager) |
void | SetP1Manager (G4VP1Manager *p1Manager) |
void | SetP2Manager (G4VP2Manager *p2Manager) |
Protected Attributes | |
G4AnalysisManagerState | fState |
std::shared_ptr< G4VRFileManager > | fVFileManager { nullptr } |
Private Attributes | |
std::unique_ptr< G4VH1Manager > | fVH1Manager |
std::unique_ptr< G4VH2Manager > | fVH2Manager |
std::unique_ptr< G4VH3Manager > | fVH3Manager |
std::shared_ptr< G4VRNtupleManager > | fVNtupleManager { nullptr } |
std::unique_ptr< G4VP1Manager > | fVP1Manager |
std::unique_ptr< G4VP2Manager > | fVP2Manager |
Static Private Attributes | |
static constexpr std::string_view | fkClass { "G4VAnalysisReader" } |
Definition at line 56 of file G4VAnalysisReader.hh.
|
virtualdefault |
|
explicitprotected |
Definition at line 44 of file G4VAnalysisReader.cc.
Definition at line 102 of file G4VAnalysisReader.cc.
References CloseFilesImpl().
Implemented in G4CsvAnalysisReader, G4Hdf5AnalysisReader, G4RootAnalysisReader, and G4XmlAnalysisReader.
Referenced by CloseFiles().
G4String G4VAnalysisReader::GetFileName | ( | ) | const |
Definition at line 114 of file G4VAnalysisReader.cc.
References fVFileManager.
G4String G4VAnalysisReader::GetFileType | ( | ) | const |
G4int G4VAnalysisReader::GetNofH1s | ( | ) | const |
Definition at line 422 of file G4VAnalysisReader.cc.
References fVH1Manager.
G4int G4VAnalysisReader::GetNofH2s | ( | ) | const |
Definition at line 428 of file G4VAnalysisReader.cc.
References fVH2Manager.
G4int G4VAnalysisReader::GetNofH3s | ( | ) | const |
Definition at line 434 of file G4VAnalysisReader.cc.
References fVH3Manager.
G4int G4VAnalysisReader::GetNofNtuples | ( | ) | const |
Definition at line 452 of file G4VAnalysisReader.cc.
References fVNtupleManager.
G4int G4VAnalysisReader::GetNofP1s | ( | ) | const |
Definition at line 440 of file G4VAnalysisReader.cc.
References fVP1Manager.
G4int G4VAnalysisReader::GetNofP2s | ( | ) | const |
Definition at line 446 of file G4VAnalysisReader.cc.
References fVP2Manager.
G4int G4VAnalysisReader::GetNtuple | ( | const G4String & | ntupleName, |
const G4String & | fileName = "" , |
||
const G4String & | dirName = "" |
||
) |
Definition at line 269 of file G4VAnalysisReader.cc.
References fkClass, fVFileManager, fVNtupleManager, G4Analysis::kInvalidId, and G4Analysis::Warn().
G4bool G4VAnalysisReader::GetNtupleRow | ( | ) |
Definition at line 409 of file G4VAnalysisReader.cc.
References fVNtupleManager.
Definition at line 416 of file G4VAnalysisReader.cc.
References fVNtupleManager.
G4String G4VAnalysisReader::GetType | ( | ) | const |
G4int G4VAnalysisReader::GetVerboseLevel | ( | ) | const |
G4bool G4VAnalysisReader::IsAscii | ( | ) | const |
G4int G4VAnalysisReader::ReadH1 | ( | const G4String & | h1Name, |
const G4String & | fileName = "" , |
||
const G4String & | dirName = "" |
||
) |
Definition at line 120 of file G4VAnalysisReader.cc.
References fkClass, fVFileManager, G4Analysis::kInvalidId, ReadH1Impl(), and G4Analysis::Warn().
|
protectedpure virtual |
Implemented in G4ToolsAnalysisReader.
Referenced by ReadH1().
G4int G4VAnalysisReader::ReadH2 | ( | const G4String & | h2Name, |
const G4String & | fileName = "" , |
||
const G4String & | dirName = "" |
||
) |
Definition at line 138 of file G4VAnalysisReader.cc.
References fkClass, fVFileManager, G4Analysis::kInvalidId, ReadH2Impl(), and G4Analysis::Warn().
|
protectedpure virtual |
Implemented in G4ToolsAnalysisReader.
Referenced by ReadH2().
G4int G4VAnalysisReader::ReadH3 | ( | const G4String & | h3Name, |
const G4String & | fileName = "" , |
||
const G4String & | dirName = "" |
||
) |
Definition at line 156 of file G4VAnalysisReader.cc.
References fkClass, fVFileManager, G4Analysis::kInvalidId, ReadH3Impl(), and G4Analysis::Warn().
|
protectedpure virtual |
Implemented in G4ToolsAnalysisReader.
Referenced by ReadH3().
G4int G4VAnalysisReader::ReadP1 | ( | const G4String & | h1Name, |
const G4String & | fileName = "" , |
||
const G4String & | dirName = "" |
||
) |
Definition at line 174 of file G4VAnalysisReader.cc.
References fkClass, fVFileManager, G4Analysis::kInvalidId, ReadP1Impl(), and G4Analysis::Warn().
|
protectedpure virtual |
Implemented in G4ToolsAnalysisReader.
Referenced by ReadP1().
G4int G4VAnalysisReader::ReadP2 | ( | const G4String & | h2Name, |
const G4String & | fileName = "" , |
||
const G4String & | dirName = "" |
||
) |
Definition at line 192 of file G4VAnalysisReader.cc.
References fkClass, fVFileManager, G4Analysis::kInvalidId, ReadP2Impl(), and G4Analysis::Warn().
|
protectedpure virtual |
Implemented in G4ToolsAnalysisReader.
Referenced by ReadP2().
|
protected |
Definition at line 92 of file G4VAnalysisReader.cc.
References fVFileManager.
Referenced by G4CsvAnalysisReader::G4CsvAnalysisReader(), G4Hdf5AnalysisReader::G4Hdf5AnalysisReader(), G4RootAnalysisReader::G4RootAnalysisReader(), and G4XmlAnalysisReader::G4XmlAnalysisReader().
void G4VAnalysisReader::SetFileName | ( | const G4String & | fileName | ) |
Definition at line 108 of file G4VAnalysisReader.cc.
References fVFileManager.
Definition at line 222 of file G4VAnalysisReader.cc.
References fVH1Manager.
Referenced by SetFirstHistoId().
Definition at line 228 of file G4VAnalysisReader.cc.
References fVH2Manager.
Referenced by SetFirstHistoId().
Definition at line 234 of file G4VAnalysisReader.cc.
References fVH3Manager.
Referenced by SetFirstHistoId().
Definition at line 210 of file G4VAnalysisReader.cc.
References SetFirstH1Id(), SetFirstH2Id(), and SetFirstH3Id().
Definition at line 263 of file G4VAnalysisReader.cc.
References fVNtupleManager.
Definition at line 251 of file G4VAnalysisReader.cc.
References fVP1Manager.
Referenced by SetFirstProfileId().
Definition at line 257 of file G4VAnalysisReader.cc.
References fVP2Manager.
Referenced by SetFirstProfileId().
Definition at line 240 of file G4VAnalysisReader.cc.
References SetFirstP1Id(), and SetFirstP2Id().
|
protected |
Definition at line 56 of file G4VAnalysisReader.cc.
References fVH1Manager.
Referenced by G4ToolsAnalysisReader::G4ToolsAnalysisReader().
|
protected |
Definition at line 62 of file G4VAnalysisReader.cc.
References fVH2Manager.
Referenced by G4ToolsAnalysisReader::G4ToolsAnalysisReader().
|
protected |
Definition at line 68 of file G4VAnalysisReader.cc.
References fVH3Manager.
Referenced by G4ToolsAnalysisReader::G4ToolsAnalysisReader().
Definition at line 303 of file G4VAnalysisReader.cc.
References fVNtupleManager.
G4bool G4VAnalysisReader::SetNtupleDColumn | ( | const G4String & | columnName, |
std::vector< double > & | vector | ||
) |
Definition at line 331 of file G4VAnalysisReader.cc.
References fVNtupleManager.
G4bool G4VAnalysisReader::SetNtupleDColumn | ( | G4int | ntupleId, |
const G4String & | columnName, | ||
G4double & | value | ||
) |
Definition at line 361 of file G4VAnalysisReader.cc.
References fVNtupleManager.
G4bool G4VAnalysisReader::SetNtupleDColumn | ( | G4int | ntupleId, |
const G4String & | columnName, | ||
std::vector< double > & | vector | ||
) |
Definition at line 393 of file G4VAnalysisReader.cc.
References fVNtupleManager.
Definition at line 296 of file G4VAnalysisReader.cc.
References fVNtupleManager.
G4bool G4VAnalysisReader::SetNtupleFColumn | ( | const G4String & | columnName, |
std::vector< float > & | vector | ||
) |
Definition at line 324 of file G4VAnalysisReader.cc.
References fVNtupleManager.
G4bool G4VAnalysisReader::SetNtupleFColumn | ( | G4int | ntupleId, |
const G4String & | columnName, | ||
G4float & | value | ||
) |
Definition at line 353 of file G4VAnalysisReader.cc.
References fVNtupleManager.
G4bool G4VAnalysisReader::SetNtupleFColumn | ( | G4int | ntupleId, |
const G4String & | columnName, | ||
std::vector< float > & | vector | ||
) |
Definition at line 385 of file G4VAnalysisReader.cc.
References fVNtupleManager.
Definition at line 289 of file G4VAnalysisReader.cc.
References fVNtupleManager.
G4bool G4VAnalysisReader::SetNtupleIColumn | ( | const G4String & | columnName, |
std::vector< int > & | vector | ||
) |
Definition at line 317 of file G4VAnalysisReader.cc.
References fVNtupleManager.
G4bool G4VAnalysisReader::SetNtupleIColumn | ( | G4int | ntupleId, |
const G4String & | columnName, | ||
G4int & | value | ||
) |
Definition at line 345 of file G4VAnalysisReader.cc.
References fVNtupleManager.
G4bool G4VAnalysisReader::SetNtupleIColumn | ( | G4int | ntupleId, |
const G4String & | columnName, | ||
std::vector< int > & | vector | ||
) |
Definition at line 377 of file G4VAnalysisReader.cc.
References fVNtupleManager.
|
protected |
Definition at line 86 of file G4VAnalysisReader.cc.
References fVNtupleManager.
Referenced by G4CsvAnalysisReader::G4CsvAnalysisReader(), G4Hdf5AnalysisReader::G4Hdf5AnalysisReader(), G4RootAnalysisReader::G4RootAnalysisReader(), and G4XmlAnalysisReader::G4XmlAnalysisReader().
Definition at line 310 of file G4VAnalysisReader.cc.
References fVNtupleManager.
G4bool G4VAnalysisReader::SetNtupleSColumn | ( | const G4String & | columnName, |
std::vector< std::string > & | vector | ||
) |
Definition at line 338 of file G4VAnalysisReader.cc.
References fVNtupleManager.
G4bool G4VAnalysisReader::SetNtupleSColumn | ( | G4int | ntupleId, |
const G4String & | columnName, | ||
G4String & | value | ||
) |
Definition at line 369 of file G4VAnalysisReader.cc.
References fVNtupleManager.
G4bool G4VAnalysisReader::SetNtupleSColumn | ( | G4int | ntupleId, |
const G4String & | columnName, | ||
std::vector< std::string > & | vector | ||
) |
Definition at line 401 of file G4VAnalysisReader.cc.
References fVNtupleManager.
|
protected |
Definition at line 74 of file G4VAnalysisReader.cc.
References fVP1Manager.
Referenced by G4ToolsAnalysisReader::G4ToolsAnalysisReader().
|
protected |
Definition at line 80 of file G4VAnalysisReader.cc.
References fVP2Manager.
Referenced by G4ToolsAnalysisReader::G4ToolsAnalysisReader().
void G4VAnalysisReader::SetVerboseLevel | ( | G4int | verboseLevel | ) |
Definition at line 462 of file G4VAnalysisReader.cc.
References fState, and G4AnalysisManagerState::SetVerboseLevel().
|
staticconstexprprivate |
Definition at line 269 of file G4VAnalysisReader.hh.
Referenced by GetNtuple(), ReadH1(), ReadH2(), ReadH3(), ReadP1(), and ReadP2().
|
protected |
Definition at line 262 of file G4VAnalysisReader.hh.
Referenced by G4CsvAnalysisReader::G4CsvAnalysisReader(), G4Hdf5AnalysisReader::G4Hdf5AnalysisReader(), G4RootAnalysisReader::G4RootAnalysisReader(), G4ToolsAnalysisReader::G4ToolsAnalysisReader(), G4XmlAnalysisReader::G4XmlAnalysisReader(), SetVerboseLevel(), G4CsvAnalysisReader::~G4CsvAnalysisReader(), G4Hdf5AnalysisReader::~G4Hdf5AnalysisReader(), G4RootAnalysisReader::~G4RootAnalysisReader(), and G4XmlAnalysisReader::~G4XmlAnalysisReader().
|
protected |
Definition at line 265 of file G4VAnalysisReader.hh.
Referenced by GetFileName(), GetNtuple(), ReadH1(), ReadH2(), ReadH3(), ReadP1(), ReadP2(), SetFileManager(), and SetFileName().
|
private |
Definition at line 272 of file G4VAnalysisReader.hh.
Referenced by GetNofH1s(), SetFirstH1Id(), and SetH1Manager().
|
private |
Definition at line 273 of file G4VAnalysisReader.hh.
Referenced by GetNofH2s(), SetFirstH2Id(), and SetH2Manager().
|
private |
Definition at line 274 of file G4VAnalysisReader.hh.
Referenced by GetNofH3s(), SetFirstH3Id(), and SetH3Manager().
|
private |
Definition at line 277 of file G4VAnalysisReader.hh.
Referenced by GetNofNtuples(), GetNtuple(), GetNtupleRow(), SetFirstNtupleId(), SetNtupleDColumn(), SetNtupleFColumn(), SetNtupleIColumn(), SetNtupleManager(), and SetNtupleSColumn().
|
private |
Definition at line 275 of file G4VAnalysisReader.hh.
Referenced by GetNofP1s(), SetFirstP1Id(), and SetP1Manager().
|
private |
Definition at line 276 of file G4VAnalysisReader.hh.
Referenced by GetNofP2s(), SetFirstP2Id(), and SetP2Manager().