File indexing completed on 2025-01-18 09:59:25
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 G4VNtupleManager_h
0033 #define G4VNtupleManager_h 1
0034
0035 #include "G4BaseAnalysisManager.hh"
0036 #include "globals.hh"
0037
0038 #include <vector>
0039
0040 struct G4NtupleBooking;
0041
0042 class G4VNtupleManager : public G4BaseAnalysisManager
0043 {
0044
0045
0046 friend class G4VAnalysisManager;
0047
0048 public:
0049 explicit G4VNtupleManager(const G4AnalysisManagerState& state)
0050 : G4BaseAnalysisManager(state) {}
0051 G4VNtupleManager() = delete;
0052 ~G4VNtupleManager() override = default;
0053
0054
0055 G4VNtupleManager(const G4VNtupleManager& rhs) = delete;
0056 G4VNtupleManager& operator=(const G4VNtupleManager& rhs) = delete;
0057
0058 protected:
0059
0060 virtual G4int CreateNtuple(G4NtupleBooking* booking) = 0;
0061
0062
0063
0064 virtual G4bool FillNtupleIColumn(G4int id, G4int value) = 0;
0065 virtual G4bool FillNtupleFColumn(G4int id, G4float value) = 0;
0066 virtual G4bool FillNtupleDColumn(G4int id, G4double value) = 0;
0067 virtual G4bool FillNtupleSColumn(G4int id, const G4String& value) = 0;
0068 virtual G4bool AddNtupleRow() = 0;
0069
0070
0071 virtual G4bool FillNtupleIColumn(G4int ntupleId, G4int columnId, G4int value) = 0;
0072 virtual G4bool FillNtupleFColumn(G4int ntupleId, G4int columnId, G4float value) = 0;
0073 virtual G4bool FillNtupleDColumn(G4int ntupleId, G4int columnId, G4double value) = 0;
0074 virtual G4bool FillNtupleSColumn(G4int ntupleId, G4int columnId,
0075 const G4String& value) = 0;
0076 virtual G4bool AddNtupleRow(G4int ntupleId) = 0;
0077
0078
0079 virtual void SetActivation(G4bool activation) = 0;
0080 virtual void SetActivation(G4int id, G4bool activation) = 0;
0081 virtual G4bool GetActivation(G4int id) const = 0;
0082
0083
0084 virtual void SetNewCycle(G4bool value) = 0;
0085 virtual G4bool GetNewCycle() const = 0;
0086
0087
0088 virtual G4bool SetFirstNtupleColumnId(G4int firstId) = 0;
0089
0090
0091 virtual void Clear() = 0;
0092
0093
0094 virtual G4bool Delete(G4int id) = 0;
0095 };
0096
0097 #endif