32 #ifndef G4TNtupleManager_h
33 #define G4TNtupleManager_h 1
41 template <
typename TNTUPLE>
59 const G4String& name, std::vector<int>* vector)
final;
61 const G4String& name, std::vector<float>* vector)
final;
63 const G4String& name, std::vector<double>* vector)
final;
68 const G4String& name, std::vector<int>* vector)
final;
70 const G4String& name, std::vector<float>* vector)
final;
72 const G4String& name, std::vector<double>* vector)
final;
103 typename std::vector<TNTUPLE*>::iterator
BeginNtuple();
104 typename std::vector<TNTUPLE*>::iterator
EndNtuple();
106 typename std::vector<TNTUPLE*>::const_iterator
EndConstNtuple()
const;
132 G4bool warn =
true)
const;
135 G4bool warn =
true)
const;
139 template <
typename T>
142 const G4String& name, std::vector<T>* vector);
144 template <
typename T>
146 const G4String& name, std::vector<T>* vector);
148 template <
typename T>
150 const G4String& name, std::vector<T>* vector);
152 template <
typename T>
155 template <
typename T>
virtual G4int CreateNtupleDColumn(const G4String &name, std::vector< double > *vector) final
G4bool FillNtupleTColumn(G4int ntupleId, G4int columnId, const T &value)
G4int CreateNtupleTColumn(G4int ntupleId, const G4String &name, std::vector< T > *vector)
virtual G4int CreateNtupleFColumn(const G4String &name, std::vector< float > *vector) final
virtual void CreateTNtupleFromBooking(G4TNtupleDescription< TNTUPLE > *ntupleDescription)=0
G4TNtupleDescription< TNTUPLE > * GetNtupleDescriptionInFunction(G4int id, G4String function, G4bool warn=true) const
std::vector< G4TNtupleDescription< TNTUPLE > * > fNtupleDescriptionVector
const char * name(G4int ptype)
void CreateNtuplesFromBooking()
virtual G4bool AddNtupleRow() final
virtual G4bool FillNtupleFColumn(G4int columnId, G4float value) final
std::vector< TNTUPLE * >::iterator EndNtuple()
G4bool Reset(G4bool deleteNtuple)
virtual G4bool FillNtupleSColumn(G4int columnId, const G4String &value) final
std::vector< TNTUPLE * >::const_iterator EndConstNtuple() const
virtual G4int GetNofNtuples() const final
virtual G4bool GetActivation(G4int ntupleId) const final
virtual G4int CreateNtupleSColumn(const G4String &name) final
std::vector< TNTUPLE * >::const_iterator BeginConstNtuple() const
G4TNtupleManager(const G4AnalysisManagerState &state)
virtual void CreateTNtuple(G4TNtupleDescription< TNTUPLE > *ntupleDescription, const G4String &name, const G4String &title)=0
virtual G4bool FillNtupleIColumn(G4int columnId, G4int value) final
virtual void SetActivation(G4bool activation) final
virtual void FinishNtuple() final
TNTUPLE * GetNtuple() const
std::vector< TNTUPLE * > fNtupleVector
virtual G4int CreateNtupleIColumn(const G4String &name, std::vector< int > *vector) final
std::vector< TNTUPLE * >::iterator BeginNtuple()
void CreateTColumnInNtuple(G4TNtupleDescription< TNTUPLE > *ntupleDescription, const G4String &name, std::vector< T > *vector)
TNTUPLE * GetNtupleInFunction(G4int id, G4String function, G4bool warn=true) const
virtual void FinishTNtuple(G4TNtupleDescription< TNTUPLE > *ntupleDescription)=0
virtual G4int CreateNtuple(const G4String &name, const G4String &title) final
virtual G4bool FillNtupleDColumn(G4int columnId, G4double value) final