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;
117 virtual void CreateTNtuple(
120 virtual void CreateTNtupleFromBooking(
123 virtual void FinishTNtuple(
132 G4bool warn =
true)
const;
133 TNTUPLE* GetNtupleInFunction(
G4int id,
135 G4bool warn =
true)
const;
139 template <
typename T>
140 void CreateTColumnInNtuple(
142 const G4String& name, std::vector<T>* vector);
144 template <
typename T>
146 const G4String& name, std::vector<T>* vector);
148 template <
typename T>
149 G4int CreateNtupleTColumn(
150 const G4String& name, std::vector<T>* vector);
152 template <
typename T>
155 template <
typename T>
156 G4bool FillNtupleTColumn(
G4int columnId,
const T& value);
159 #include "G4TNtupleManager.icc"
virtual G4int CreateNtupleDColumn(const G4String &name, std::vector< double > *vector) final
virtual G4int CreateNtupleFColumn(const G4String &name, std::vector< float > *vector) final
std::vector< G4TNtupleDescription< TNTUPLE > * > fNtupleDescriptionVector
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
const XML_Char int const XML_Char * value
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 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()
virtual G4int CreateNtuple(const G4String &name, const G4String &title) final
virtual G4bool FillNtupleDColumn(G4int columnId, G4double value) final