QMCPACK
FakeEstimator.h
Go to the documentation of this file.
1 //////////////////////////////////////////////////////////////////////////////////////
2 // This file is distributed under the University of Illinois/NCSA Open Source License.
3 // See LICENSE file in top directory for details.
4 //
5 // Copyright (c) 2022 QMCPACK developers.
6 //
7 // File developed by: Mark Dewing, mdewin@anl.gov, Argonne National Laboratory
8 // Peter Doak, doakpw@ornl.gov, Oak Ridge National Laboratory
9 //
10 // Refactored from test_manager.cpp
11 //////////////////////////////////////////////////////////////////////////////////////
12 
13 #ifndef QMCPLUSPLUS_FAKEESTIMATOR_H
14 #define QMCPLUSPLUS_FAKEESTIMATOR_H
15 
17 namespace qmcplusplus
18 {
20 {
21 public:
22  std::string getName() const override { return "FakeEstimator"; }
23 
24  void accumulate(const MCWalkerConfiguration& W, WalkerIterator first, WalkerIterator last, RealType wgt) override {}
25 
26  void accumulate(const RefVector<MCPWalker>& walkers) override {}
27 
28  void add2Record(RecordNamedProperty<RealType>& record) override {}
29 
30  void registerObservables(std::vector<ObservableHelper>& h5dec, hdf_archive& file) override {}
31 
32  FakeEstimator* clone() override { return new FakeEstimator; }
33 
34  std::string type_{"fake"};
35  const std::string& getSubTypeStr() const override { return type_; }
36 };
37 
38 } // namespace qmcplusplus
39 #endif
A set of walkers that are to be advanced by Metropolis Monte Carlo.
void accumulate(const MCWalkerConfiguration &W, WalkerIterator first, WalkerIterator last, RealType wgt) override
a virtual function to accumulate observables or collectables
Definition: FakeEstimator.h:24
helper functions for EinsplineSetBuilder
Definition: Configuration.h:43
void add2Record(RecordNamedProperty< RealType > &record) override
add the content of the scalar estimator to the record
Definition: FakeEstimator.h:28
void accumulate(const RefVector< MCPWalker > &walkers) override
a virtual function to accumulate observables or collectables
Definition: FakeEstimator.h:26
class to handle hdf file
Definition: hdf_archive.h:51
const char walkers[]
Definition: HDFVersion.h:36
QMCTraits::FullPrecRealType RealType
std::vector< std::reference_wrapper< T > > RefVector
MCWalkerConfiguration::const_iterator WalkerIterator
const std::string & getSubTypeStr() const override
String representation of the derived type of the ScalarEstimator.
Definition: FakeEstimator.h:35
Abstract class for an estimator of a scalar operator.
void registerObservables(std::vector< ObservableHelper > &h5dec, hdf_archive &file) override
add descriptors of observables to utilize hdf5
Definition: FakeEstimator.h:30
std::string getName() const override
Definition: FakeEstimator.h:22
FakeEstimator * clone() override
clone the object
Definition: FakeEstimator.h:32