31#ifndef G4NtupleBookingManager_h
32#define G4NtupleBookingManager_h 1
38#include "tools/ntuple_booking"
50 fDeleted = std::make_pair(deleted, keepSetting);
68 std::pair<G4bool, G4bool>
fDeleted {
false,
false };
92 G4bool onlyIfActive)
const;
94 G4bool onlyIfActive)
const;
104 std::vector<int>* vector);
106 std::vector<float>* vector) ;
108 std::vector<double>* vector);
110 std::vector<std::string>* vector);
115 const G4String& name, std::vector<int>* vector);
117 const G4String& name, std::vector<float>* vector);
119 const G4String& name, std::vector<double>* vector);
121 const G4String& name, std::vector<std::string>* vector);
163 G4bool warn =
true)
const;
166 template <
typename T>
168 const G4String& name, std::vector<T>* vector);
169 G4int GetCurrentNtupleId()
const;
172 static constexpr std::string_view fkClass {
"G4NtupleBookingManager" };
176 G4int fFirstNtupleColumnId { 0 };
177 G4bool fLockFirstNtupleColumnId {
false };
181#include "G4NtupleBookingManager.icc"
G4double(*)(G4double) function
G4int GetFirstNtupleColumnId() const
G4bool GetActivation(G4int ntupleId) const
G4bool SetFirstNtupleColumnId(G4int firstId)
std::vector< G4NtupleBooking * > fNtupleBookingVector
G4int GetNofNtuples(G4bool onlyIfExist=false) const
G4String GetFileName(G4int id) const
G4int CreateNtupleSColumn(const G4String &name, std::vector< std::string > *vector)
G4NtupleBooking * FinishNtuple()
G4bool Delete(G4int id, G4bool keepSetting)
G4int CreateNtupleDColumn(const G4String &name, std::vector< double > *vector)
G4int CreateNtuple(const G4String &name, const G4String &title)
G4int CreateNtupleFColumn(const G4String &name, std::vector< float > *vector)
~G4NtupleBookingManager() override
G4String GetFileType() const
std::set< G4int > fFreeIds
const std::vector< G4NtupleBooking * > & GetNtupleBookingVector() const
G4NtupleBookingManager()=delete
void SetFileName(const G4String &fileName)
G4bool List(std::ostream &output, G4bool onlyIfActive=true)
tools::ntuple_booking * GetNtuple(G4bool warn, G4bool onlyIfActive) const
G4int CreateNtupleIColumn(const G4String &name, std::vector< int > *vector)
void SetFileType(const G4String &fileType)
void SetActivation(G4bool activation)
constexpr G4int kInvalidId
void SetDeleted(G4bool deleted, G4bool keepSetting)
~G4NtupleBooking()=default
tools::ntuple_booking fNtupleBooking
G4bool GetDeleted() const
std::pair< G4bool, G4bool > fDeleted
G4NtupleBooking()=default