File indexing completed on 2025-01-18 09:57:57
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
0032 #ifndef G4BaseRNtupleManager_h
0033 #define G4BaseRNtupleManager_h 1
0034
0035 #include "G4VRNtupleManager.hh"
0036 #include "globals.hh"
0037
0038 #include <vector>
0039
0040 class G4BaseRNtupleManager : public G4VRNtupleManager
0041 {
0042
0043
0044 friend class G4VAnalysisReader;
0045
0046 public:
0047 explicit G4BaseRNtupleManager(const G4AnalysisManagerState& state);
0048 ~G4BaseRNtupleManager() override = default;
0049
0050
0051 G4BaseRNtupleManager() = delete;
0052 G4BaseRNtupleManager(const G4BaseRNtupleManager& rhs) = delete;
0053 G4BaseRNtupleManager& operator=(const G4BaseRNtupleManager& rhs) = delete;
0054
0055 protected:
0056
0057
0058 G4bool SetNtupleIColumn(const G4String& columnName, G4int& value) final;
0059 G4bool SetNtupleFColumn(const G4String& columnName, G4float& value) final;
0060 G4bool SetNtupleDColumn(const G4String& columnName, G4double& value) final;
0061 G4bool SetNtupleSColumn(const G4String& columnName, G4String& value) final;
0062
0063 G4bool SetNtupleIColumn(G4int ntupleId, const G4String& columnName, G4int& value) override = 0;
0064 G4bool SetNtupleFColumn(
0065 G4int ntupleId, const G4String& columnName, G4float& value) override = 0;
0066 G4bool SetNtupleDColumn(
0067 G4int ntupleId, const G4String& columnName, G4double& value) override = 0;
0068 G4bool SetNtupleSColumn(
0069 G4int ntupleId, const G4String& columnName, G4String& value) override = 0;
0070
0071
0072 G4bool SetNtupleIColumn(const G4String& columnName, std::vector<G4int>& vector) final;
0073 G4bool SetNtupleFColumn(const G4String& columnName, std::vector<G4float>& vector) final;
0074 G4bool SetNtupleDColumn(const G4String& columnName, std::vector<G4double>& vector) final;
0075 G4bool SetNtupleSColumn(const G4String& columnName, std::vector<std::string>& vector) final;
0076
0077 G4bool SetNtupleIColumn(
0078 G4int ntupleId, const G4String& columnName, std::vector<G4int>& vector) override = 0;
0079 G4bool SetNtupleFColumn(
0080 G4int ntupleId, const G4String& columnName, std::vector<G4float>& vector) override = 0;
0081 G4bool SetNtupleDColumn(
0082 G4int ntupleId, const G4String& columnName, std::vector<G4double>& vector) override = 0;
0083 G4bool SetNtupleSColumn(
0084 G4int ntupleId, const G4String& columnName, std::vector<std::string>& vector) override = 0;
0085 G4bool GetNtupleRow() final;
0086 G4bool GetNtupleRow(G4int ntupleId) override = 0;
0087
0088
0089 G4int GetNofNtuples() const override = 0;
0090
0091 private:
0092
0093 G4int GetCurrentNtupleId() const;
0094 };
0095
0096 #endif