1#ifndef RPG_HAMILTONIAN_ANALYZER_H
2#define RPG_HAMILTONIAN_ANALYZER_H
11#include "AverageListAnalyzer.h"
12#include <rpg/System.h>
21 template <
int D>
class System;
22 template <
int D>
class Simulator;
125 {
return *systemPtr_; }
130 {
return *simulatorPtr_; }
132 #ifndef RPG_HAMILTONIAN_ANALYZER_TPP
Analyze averages and block averages of several real variables.
void setName(int i, std::string name)
Set name of variable.
void setValue(int i, double value)
Set current value, used by compute function.
Compute averages and output block averages of Hamiltonian components.
Simulator< D > & simulator()
Return reference to parent Simulator.
void compute()
Compute and store values of Hamiltonian components.
Simulator< D > * simulatorPtr_
Pointer to parent Simulator.
HamiltonianAnalyzer(Simulator< D > &simulator, System< D > &system)
Constructor.
virtual void readParameters(std::istream &in)
Read interval and output file name.
System< D > & system()
Return reference to parent system.
System< D > * systemPtr_
Pointer to the parent system.
virtual ~HamiltonianAnalyzer()
Destructor.
Field theoretic simulator (base class).
Main class for calculations that represent one system.
Calculates the average and variance of a sampled property.
Loading (input) archive for binary istream.
Saving / output archive for binary ostream.
void setClassName(const char *className)
Set class name string.
virtual void save(Serializable::OArchive &ar)
Saves all parameters to an archive.
virtual void loadParameters(Serializable::IArchive &ar)
Load state from archive, without adding Begin and End lines.
PSCF package top-level namespace.
Utility classes for scientific computation.