15 #ifndef QMCPLUSPLUS_COLLECTABLES_ESTIMATOR_H 16 #define QMCPLUSPLUS_COLLECTABLES_ESTIMATOR_H 50 for (
int i = 0; i < data.
size(); ++i)
54 std::string
getName()
const override {
return "CollectiblesEstimator"; }
56 const std::string
type_str =
"ColletiblesEstimatorNotSupportedInBatchedVersion";
size_type size() const
return the size of the data
A set of walkers that are to be advanced by Metropolis Monte Carlo.
const std::string & getSubTypeStr() const override
String representation of the derived type of the ScalarEstimator.
helper functions for EinsplineSetBuilder
std::string getName() const override
Collection of Local Energy Operators.
CollectablesEstimator * clone() override
implement virtual function
QMCTraits::FullPrecRealType RealType
std::vector< accumulator_type > scalars
scalars to be measured
void add2Record(RecordListType &record) override
add the local energy, variance and all the Hamiltonian components to the scalar record container ...
void accumulate(const MCWalkerConfiguration &W, WalkerIterator first, WalkerIterator last, RealType wgt) override
do nothing with accumulate
Handle an ensemble average of Hamiltonian components.
void accumulate(const RefVector< MCPWalker > &walkers) override
a virtual function to accumulate observables or collectables
std::vector< std::reference_wrapper< T > > RefVector
MCWalkerConfiguration::const_iterator WalkerIterator
void registerObservables(std::vector< ObservableHelper > &h5dec, hdf_archive &file) override
add descriptors of observables to utilize hdf5
Abstract class for an estimator of a scalar operator.
const QMCHamiltonian & refH
save the reference hamiltonian
const std::string type_str
void accumulate_all(const MCWalkerConfiguration::Buffer_t &data, RealType wgt)
accumulate the collectables
Declaration of QMCHamiltonian.
CollectablesEstimator(QMCHamiltonian &h)
constructor