15 #ifndef QMCPLUSPLUS_LOCALENERGY_ONLY_ESTIMATOR_H 16 #define QMCPLUSPLUS_LOCALENERGY_ONLY_ESTIMATOR_H 32 std::string
getName()
const override {
return "LocalEnergyOnlyEstimator"; }
39 for (; first != last; ++first)
41 scalars[0]((*first)->Properties(WP::LOCALENERGY), wgt);
42 scalars[1]((*first)->Properties(WP::LOCALPOTENTIAL), wgt);
63 int s1 = record.
add(
"LocalPotential");
72 const std::string
type_str =
"LocalEnergyOnlyEstimatorNotSupportedInBatchedVersion";
A set of walkers that are to be advanced by Metropolis Monte Carlo.
helper functions for EinsplineSetBuilder
Estimator for local energy only.
void accumulate(const MCWalkerConfiguration &W, WalkerIterator first, WalkerIterator last, RealType wgt) override
a virtual function to accumulate observables or collectables
int FirstIndex
first index within an record of the first element handled by an object
QMCTraits::FullPrecRealType RealType
std::vector< accumulator_type > scalars
scalars to be measured
int add(const std::string &aname)
const std::string type_str
void add2Record(RecordListType &record) override
add the local energy, variance and all the Hamiltonian components to the scalar record container ...
std::string getName() const override
LocalEnergyOnlyEstimator()
std::vector< accumulator_type > scalars_saved
scalars saved
void clear()
clear the scalars to collect
const std::string & getSubTypeStr() const override
String representation of the derived type of the ScalarEstimator.
std::vector< std::reference_wrapper< T > > RefVector
Indexes
an enum denoting index of physical properties
MCWalkerConfiguration::const_iterator WalkerIterator
void accumulate(const RefVector< MCPWalker > &walkers) override
a virtual function to accumulate observables or collectables
LocalEnergyOnlyEstimator * clone() override
clone the object
Abstract class for an estimator of a scalar operator.
int LastIndex
last index within an record of the first element handled by an object
void registerObservables(std::vector< ObservableHelper > &h5dec, hdf_archive &file) override
add descriptors of observables to utilize hdf5
A container class to represent a walker.