43 for (
int i = 0; i < NumObservables; ++i)
61 for (
int i = 0; i < NumObservables; ++i)
76 std::array<char, 80> aname;
83 int length = std::snprintf(aname.data(), aname.size(),
"%s_%i",
h_components[k].c_str(), i);
85 throw std::runtime_error(
"Error generating record name");
86 record.
add(std::string(aname.data(), length));
92 int length = std::snprintf(aname.data(), aname.size(),
"wpsi_%i", i);
94 throw std::runtime_error(
"Error generating record name");
95 record.
add(std::string(aname.data(), length));
104 int length = std::snprintf(aname.data(), aname.size(),
"d%s_%d_%d",
h_components[k].c_str(), i, j);
106 throw std::runtime_error(
"Error generating record name");
107 record.
add(std::string(aname.data(), length));
129 std::vector<double> weightaverage(
NumCopies);
135 uweights[i] = prop[WP::UMBRELLAWEIGHT];
136 *prop_saved++ = prop[WP::LOCALENERGY];
137 *prop_saved++ = prop[WP::LOCALPOTENTIAL];
Matrix< RealType > tmp_data
temporary dat
CSEnergyEstimator * clone() override
clone the object
std::string getObservableName(int i) const
return the name of the i-th observable
int startIndex() const
retrun the starting index
helper functions for EinsplineSetBuilder
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
void resize(size_type n, size_type m)
Resize the container.
int FirstIndex
first index within an record of the first element handled by an object
std::vector< accumulator_type > scalars
scalars to be measured
void copy(const Array< T1, 3 > &src, Array< T2, 3 > &dest)
int FirstHamiltonian
index of the starting Hamiltonian component
int add(const std::string &aname)
const CSLocalEnergyInput input_
int sizeOfObservables() const
return the size of observables
std::vector< accumulator_type > scalars_saved
scalars saved
int NumCopies
number of correlated systems
void clear()
clear the scalars to collect
Declaration of a TrialWaveFunction.
Indexes
an enum denoting index of physical properties
Declaraton of ParticleAttrib<T>
int LastHamiltonian
index of the ending Hamiltonian component
void accumulate(const Walker_t &awalker, RealType wgt)
void add2Record(RecordNamedProperty< RealType > &record) override
add the local energy, variance and all the Hamiltonian components to the scalar record container ...
FullPrecRealType * getPropertyBase()
int LastIndex
last index within an record of the first element handled by an object
ACC::value_type mean(const ACC &ac)
A container class to represent a walker.
Declaration of QMCHamiltonian.
CSEnergyEstimator(const QMCHamiltonian &h, int hcopy=1)
constructor