17 #ifndef QMCPLUSPLUS_CORRELATEDLOCALENERGYESTIMATOR_H 18 #define QMCPLUSPLUS_CORRELATEDLOCALENERGYESTIMATOR_H 26 class TrialWaveFunction;
60 std::string
getName()
const override {
return "CSEnergyEstimator"; }
77 for (; first != last; ++first)
Matrix< RealType > tmp_data
temporary dat
CSEnergyEstimator * clone() override
clone the object
This file contains the input classes for the supported "main estimator" classes derived from ScalarEs...
const std::string & get_type() const
A set of walkers that are to be advanced by Metropolis Monte Carlo.
helper functions for EinsplineSetBuilder
RealType getUmbrellaWeight(int ipsi)
Collection of Local Energy Operators.
void registerObservables(std::vector< ObservableHelper > &h5dec, hdf_archive &gid) override
add descriptors of observables to utilize hdf5
std::vector< std::string > h_components
name of hamiltonian components
std::vector< RealType > uweights
save umbrella weights
bool isMainEstimator() const override
Is this estimator a main estimator i.e. the estimator required for a particular driver.
const std::string & getSubTypeStr() const override
String representation of the derived type of the ScalarEstimator.
void accumulate(const RefVector< MCPWalker > &walkers) override
a virtual function to accumulate observables or collectables
int FirstHamiltonian
index of the starting Hamiltonian component
const CSLocalEnergyInput input_
std::string getName() const override
void accumulate(const MCWalkerConfiguration &W, WalkerIterator first, WalkerIterator last, RealType wgt) override
std::vector< accumulator_type > scalars_saved
scalars saved
int NumCopies
number of correlated systems
std::vector< std::reference_wrapper< T > > RefVector
int LastHamiltonian
index of the ending Hamiltonian component
void accumulate(const Walker_t &awalker, RealType wgt)
MCWalkerConfiguration::const_iterator WalkerIterator
void add2Record(RecordNamedProperty< RealType > &record) override
add the local energy, variance and all the Hamiltonian components to the scalar record container ...
Abstract class for an estimator of a scalar operator.
A container class to represent a walker.
CSEnergyEstimator(const QMCHamiltonian &h, int hcopy=1)
constructor
MCWalkerConfiguration::Walker_t Walker_t