Import Geant4 11.0.0 source tree
This commit is contained in:
committed by
Ben Morgan
parent
6399a014b6
commit
80e2389dd8
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
|
||||
// The pure abstract base class for Ntuple manager.
|
||||
// It defines functions independent from the output type.
|
||||
// The pure abstract base class for Ntuple manager.
|
||||
// It defines functions independent from the output type.
|
||||
//
|
||||
// Author: Ivana Hrivnacova, 18/06/2013 (ivana@ipno.in2p3.fr)
|
||||
|
||||
@@ -48,7 +48,8 @@ class G4VNtupleManager : public G4BaseAnalysisManager
|
||||
public:
|
||||
explicit G4VNtupleManager(const G4AnalysisManagerState& state)
|
||||
: G4BaseAnalysisManager(state) {}
|
||||
virtual ~G4VNtupleManager() {}
|
||||
G4VNtupleManager() = delete;
|
||||
virtual ~G4VNtupleManager() = default;
|
||||
|
||||
// deleted copy constructor & assignment operator
|
||||
G4VNtupleManager(const G4VNtupleManager& rhs) = delete;
|
||||
@@ -58,45 +59,19 @@ class G4VNtupleManager : public G4BaseAnalysisManager
|
||||
// Methods for handling ntuples
|
||||
virtual G4int CreateNtuple(G4NtupleBooking* booking) = 0;
|
||||
|
||||
// // Create columns in the last created ntuple
|
||||
// virtual G4int CreateNtupleIColumn(const G4String& name,
|
||||
// std::vector<int>* vector) = 0;
|
||||
// virtual G4int CreateNtupleFColumn(const G4String& name,
|
||||
// std::vector<float>* vector) = 0;
|
||||
// virtual G4int CreateNtupleDColumn(const G4String& name,
|
||||
// std::vector<double>* vector) = 0;
|
||||
// virtual G4int CreateNtupleSColumn(const G4String& name) = 0;
|
||||
// virtual void FinishNtuple() = 0;
|
||||
|
||||
// // Create columns in the ntuple with given id
|
||||
// virtual G4int CreateNtupleIColumn(G4int ntupleId, const G4String& name,
|
||||
// std::vector<int>* vector) = 0;
|
||||
// virtual G4int CreateNtupleFColumn(G4int ntupleId, const G4String& name,
|
||||
// std::vector<float>* vector) = 0;
|
||||
// virtual G4int CreateNtupleDColumn(G4int ntupleId, const G4String& name,
|
||||
// std::vector<double>* vector) = 0;
|
||||
// virtual G4int CreateNtupleSColumn(G4int ntupleId, const G4String& name) = 0;
|
||||
// virtual void FinishNtuple(G4int ntupleId) = 0;
|
||||
|
||||
// The ntuple column ids are generated automatically starting from 0;
|
||||
// with the following function it is possible to change it
|
||||
// to start from another value
|
||||
// virtual void SetFirstNtupleColumnId(G4int firstId) = 0;
|
||||
// virtual G4int GetFirstNtupleColumnId() const = 0;
|
||||
|
||||
// Methods to fill ntuples
|
||||
// Methods for ntuple with id = FirstNtupleId
|
||||
// Methods for ntuple with id = FirstNtupleId
|
||||
virtual G4bool FillNtupleIColumn(G4int id, G4int value) = 0;
|
||||
virtual G4bool FillNtupleFColumn(G4int id, G4float value) = 0;
|
||||
virtual G4bool FillNtupleDColumn(G4int id, G4double value) = 0;
|
||||
virtual G4bool FillNtupleSColumn(G4int id, const G4String& value) = 0;
|
||||
virtual G4bool AddNtupleRow() = 0;
|
||||
|
||||
// Methods for ntuple with id > FirstNtupleId (when more ntuples exist)
|
||||
// Methods for ntuple with id > FirstNtupleId (when more ntuples exist)
|
||||
virtual G4bool FillNtupleIColumn(G4int ntupleId, G4int columnId, G4int value) = 0;
|
||||
virtual G4bool FillNtupleFColumn(G4int ntupleId, G4int columnId, G4float value) = 0;
|
||||
virtual G4bool FillNtupleDColumn(G4int ntupleId, G4int columnId, G4double value) = 0;
|
||||
virtual G4bool FillNtupleSColumn(G4int ntupleId, G4int columnId,
|
||||
virtual G4bool FillNtupleSColumn(G4int ntupleId, G4int columnId,
|
||||
const G4String& value) = 0;
|
||||
virtual G4bool AddNtupleRow(G4int ntupleId) = 0;
|
||||
|
||||
@@ -105,17 +80,15 @@ class G4VNtupleManager : public G4BaseAnalysisManager
|
||||
virtual void SetActivation(G4int id, G4bool activation) = 0;
|
||||
virtual G4bool GetActivation(G4int id) const = 0;
|
||||
|
||||
// // File name option
|
||||
// virtual void SetFileName(const G4String& fileName) = 0;
|
||||
// virtual void SetFileName(G4int id, const G4String& fileName) = 0;
|
||||
// virtual G4String GetFileName(G4int id) const = 0;
|
||||
|
||||
// Access methods
|
||||
virtual G4int GetNofNtuples() const = 0;
|
||||
// virtual G4int GetNofNtupleBookings() const = 0;
|
||||
|
||||
// Set first column Id
|
||||
virtual G4bool SetFirstNtupleColumnId(G4int firstId) = 0;
|
||||
|
||||
// Clear all date
|
||||
virtual void Clear() = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user