File indexing completed on 2025-01-18 09:59:26
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031 #ifndef G4VRNtupleManager_h
0032 #define G4VRNtupleManager_h 1
0033
0034 #include "G4BaseAnalysisManager.hh"
0035 #include "globals.hh"
0036
0037 #include <vector>
0038
0039 class G4VRNtupleManager : public G4BaseAnalysisManager
0040 {
0041
0042
0043 friend class G4VAnalysisReader;
0044
0045 public:
0046 explicit G4VRNtupleManager(const G4AnalysisManagerState& state)
0047 : G4BaseAnalysisManager(state) {}
0048 G4VRNtupleManager() = delete;
0049 ~G4VRNtupleManager() override = default;
0050
0051
0052 G4VRNtupleManager(const G4VRNtupleManager& rhs) = delete;
0053 G4VRNtupleManager& operator=(const G4VRNtupleManager& rhs) = delete;
0054
0055 protected:
0056
0057 virtual G4int ReadNtupleImpl(const G4String& ntupleName,
0058 const G4String& fileName,
0059 const G4String& dirName,
0060 G4bool isUserFileName) = 0;
0061
0062
0063 virtual G4bool SetNtupleIColumn(const G4String& columnName,
0064 G4int& value) = 0;
0065 virtual G4bool SetNtupleFColumn(const G4String& columnName,
0066 G4float& value) = 0;
0067 virtual G4bool SetNtupleDColumn(const G4String& columnName,
0068 G4double& value) = 0;
0069 virtual G4bool SetNtupleSColumn(const G4String& columnName,
0070 G4String& value) = 0;
0071
0072 virtual G4bool SetNtupleIColumn(const G4String& columnName,
0073 std::vector<G4int>& vector) = 0;
0074 virtual G4bool SetNtupleFColumn(const G4String& columnName,
0075 std::vector<G4float>& vector) = 0;
0076 virtual G4bool SetNtupleDColumn(const G4String& columnName,
0077 std::vector<G4double>& vector) = 0;
0078 virtual G4bool SetNtupleSColumn(const G4String& columnName,
0079 std::vector<std::string>& vector) = 0;
0080
0081 virtual G4bool SetNtupleIColumn(G4int ntupleId,
0082 const G4String& columnName, G4int& value)= 0;
0083 virtual G4bool SetNtupleFColumn(G4int ntupleId,
0084 const G4String& columnName, G4float& value)= 0;
0085 virtual G4bool SetNtupleDColumn(G4int ntupleId,
0086 const G4String& columnName, G4double& value)= 0;
0087 virtual G4bool SetNtupleSColumn(G4int ntupleId,
0088 const G4String& columnName, G4String& value)= 0;
0089
0090 virtual G4bool SetNtupleIColumn(G4int ntupleId, const G4String& columnName,
0091 std::vector<G4int>& vector) = 0;
0092 virtual G4bool SetNtupleFColumn(G4int ntupleId, const G4String& columnName,
0093 std::vector<G4float>& vector) = 0;
0094 virtual G4bool SetNtupleDColumn(G4int ntupleId, const G4String& columnName,
0095 std::vector<G4double>& vector) = 0;
0096 virtual G4bool SetNtupleSColumn(G4int ntupleId, const G4String& columnName,
0097 std::vector<std::string>& vector) = 0;
0098 virtual G4bool GetNtupleRow() = 0;
0099 virtual G4bool GetNtupleRow(G4int ntupleId) = 0;
0100
0101
0102 virtual G4int GetNofNtuples() const = 0;
0103 };
0104
0105 #endif
0106