28 int loc = h5desc.size();
30 for (
int i = loc; i < h5desc.size(); ++i)
void registerCollectables(std::vector< ObservableHelper > &h5desc, hdf_archive &file) const
register collectables so that their averages can be dumped to hdf5
int sizeOfCollectables() const
return the size of collectables
helper functions for EinsplineSetBuilder
Collection of Local Energy Operators.
CollectablesEstimator * clone() override
implement virtual function
int FirstIndex
first index within an record of the first element handled by an object
std::vector< accumulator_type > scalars
scalars to be measured
TinyVector< T, 3 > lower_bound(const TinyVector< T, 3 > &a, const TinyVector< T, 3 > &b)
helper function to determine the lower bound of a domain (need to move up)
void add2Record(RecordListType &record) override
add the local energy, variance and all the Hamiltonian components to the scalar record container ...
Declaration of ObservableHelper and other helper class for observables.
Handle an ensemble average of Hamiltonian components.
std::vector< accumulator_type > scalars_saved
scalars saved
void clear()
clear the scalars to collect
void registerObservables(std::vector< ObservableHelper > &h5dec, hdf_archive &file) override
add descriptors of observables to utilize hdf5
int LastIndex
last index within an record of the first element handled by an object
const QMCHamiltonian & refH
save the reference hamiltonian
CollectablesEstimator(QMCHamiltonian &h)
constructor