12 #ifndef QMCPLUSPLUS_ESTIMATORMANAGERCROWD_H 13 #define QMCPLUSPLUS_ESTIMATORMANAGERCROWD_H 28 class MCWalkerConifugration;
RefVector< ScalarEstimatorBase > get_scalar_estimators()
helper functions for EinsplineSetBuilder
EstimatorManagerNew::RealType RealType
Class to manage a set of ScalarEstimators As a manager, this class handles the aggregation of data fr...
RealType get_block_weight() const
RealType get_block_num_samples() const
RefVector< qmcplusplus::OperatorEstBase > get_operator_estimators()
std::vector< std::unique_ptr< T > > UPtrVector
int size() const
return the number of ScalarEstimators
static RefVector< T > convertUPtrToRefVector(const UPtrVector< T > &ptr_list)
convert a vector of std::unique_ptrs<T> to a refvector<T>
void startBlock(int steps)
start a block
Thread local estimator container/accumulator.
UPtrVector< ScalarEstimatorBase > scalar_estimators_
estimators of simple scalars
std::unique_ptr< T > UPtr
RealType block_num_samples_
number of samples accumulated in a block
RealType block_weight_
total weight accumulated in a block
std::vector< std::reference_wrapper< T > > RefVector
Declaraton of Vector<T,Alloc> Manage memory through Alloc directly and allow referencing an existing ...
UPtr< ScalarEstimatorBase > main_estimator_
ScalarEstimatorBase & get_main_estimator()
void registerListeners(const RefVectorWithLeader< QMCHamiltonian > &ham_list)
This registers the crowd lever estimators that require listeners into the QMCHamiltonianMultiWalkerRe...
QMCTraits::FullPrecRealType FullPrecRealType
~EstimatorManagerCrowd()
destructor
Abstract class for an estimator of a scalar operator.
EstimatorManagerCrowd(EstimatorManagerNew &em)
EstimatorManagerCrowd are always spawn of an EstimatorManagerNew.
A container class to represent a walker.
QMCTraits::FullPrecRealType RealType
This is to deal with vague expression of precision in legacy code. Don't use in new code...
Define a serialized buffer to store anonymous data.
UPtrVector< OperatorEstBase > operator_ests_
void accumulate(const RefVector< MCPWalker > &walkers, const RefVector< ParticleSet > &psets, const RefVector< TrialWaveFunction > &wfns, const RefVector< QMCHamiltonian > &hams, RandomBase< FullPrecRealType > &rng)
Accumulate over all scalar estimators and operator estimators over all walkers in crowd...
EstimatorManagerNew::FullPrecRealType FullPrecRealType