GLAC
1.0
|
base class for observables. More...
#include <correlator.h>
Public Member Functions | |
Correlator (bool storeFlowObservable) | |
Correlator::Correlator. More... | |
Correlator () | |
Correlator::Correlator. More... | |
virtual | ~Correlator () |
virtual void | calculate (Lattice< SU3 > *lattice, unsigned int iObs) |
Correlator::calculate calculates a observable. More... | |
virtual void | writeObservableToFile (double acceptanceRatio) |
Correlator::writeObservableToFile calls the ObservableStorer for writing observable to file. More... | |
virtual void | writeFlowObservablesToFile (unsigned int iFlow) |
Correlator::writeFlowObservablesToFile. More... | |
virtual void | runStatistics () |
Correlator::runStatistics. More... | |
virtual void | printObservable (unsigned int iObs) |
Correlator::printObservable prints the observable for the output. More... | |
virtual void | printHeader () |
Correlator::printHeader prints a the observable name for output in header. More... | |
virtual void | printStatistics () |
Correlator::printStatistics prints statistics from ObservableStorer. More... | |
virtual void | copyObservable (unsigned int iObs, std::vector< double > obs) |
Correlator::copyObservable copies the observable if has already been calculated at zero flow time. More... | |
virtual std::vector< double > | getObservablesVector (unsigned int iObs) |
Correlator::getObservablesVector. More... | |
virtual double | getObservable (unsigned int iObs) |
Correlator::getObservable. More... | |
virtual std::string | getObservableName () |
virtual int | getHeaderWidth () |
virtual void | reset () |
Correlator::reset resets ObservableStorer. More... | |
virtual void | initializeObservableStorer (bool storeFlowObservable) |
Correlator::initializeObservableStorer initializes ObservableStorer. More... | |
Protected Attributes | |
std::vector< unsigned int > | m_N |
double | m_latticeSize |
double | m_a |
const int | m_headerWidth = 20 |
const std::string | m_observableName = "Correlator" |
const std::string | m_observableNameCompact = "correlator" |
ObservableStorer * | m_observable = nullptr |
bool | m_storeFlowObservable = false |
base class for observables.
Correlator::Correlator | ( | bool | storeFlowObservable | ) |
storeFlowObservable | specifies if one is to sample (and store) a flow observable when initialized. |
Correlator::Correlator | ( | ) |
When no storeFlowObservable is passed, default is to store observables for the configurations.
|
virtual |
Correlator::calculate calculates a observable.
lattice | pointer to lattice of SU3 matrices |
iObs | number of the observable |
Reimplemented in SuperSampler, MasterSamplerTopcXYZ, MasterSampler, LatticeActionChargeDensity, Plaquette, TopologicalCharge, and EnergyDensity.
|
virtual |
Correlator::copyObservable copies the observable if has already been calculated at zero flow time.
iObs | observable number. |
obs | vector containing observable information. Is a vector in case it consists of multiple values(e.g. topc in Euclidean time). |
Reimplemented in SuperSampler, MasterSamplerTopcXYZ, MasterSampler, and LatticeActionChargeDensity.
|
inlinevirtual |
|
virtual |
iObs | number of the observable to print. |
|
inlinevirtual |
Reimplemented in SuperSampler, Plaquette, TopologicalCharge, and EnergyDensity.
|
virtual |
Correlator::getObservablesVector.
iObs |
Reimplemented in SuperSampler, MasterSamplerTopcXYZ, MasterSampler, and LatticeActionChargeDensity.
|
virtual |
Correlator::initializeObservableStorer initializes ObservableStorer.
storeFlowObservable |
Reimplemented in SuperSampler, MasterSamplerTopcXYZ, MasterSampler, and LatticeActionChargeDensity.
|
virtual |
Correlator::printHeader prints a the observable name for output in header.
Reimplemented in SuperSampler, MasterSamplerTopcXYZ, MasterSampler, LatticeActionChargeDensity, and Plaquette.
|
virtual |
Correlator::printObservable prints the observable for the output.
iObs |
Reimplemented in SuperSampler, MasterSamplerTopcXYZ, MasterSampler, LatticeActionChargeDensity, and Plaquette.
|
virtual |
Correlator::printStatistics prints statistics from ObservableStorer.
Reimplemented in SuperSampler, MasterSamplerTopcXYZ, MasterSampler, LatticeActionChargeDensity, TopologicalCharge, and EnergyDensity.
|
virtual |
Correlator::reset resets ObservableStorer.
Reimplemented in SuperSampler, MasterSamplerTopcXYZ, MasterSampler, and LatticeActionChargeDensity.
|
virtual |
Gathers results and performs statistics in the ObservableStorer object.
Reimplemented in SuperSampler, MasterSamplerTopcXYZ, MasterSampler, LatticeActionChargeDensity, EnergyDensity, Plaquette, and TopologicalCharge.
|
virtual |
Correlator::writeFlowObservablesToFile.
iFlow | Gathers results and performs statistics in the ObservableStorer object. |
Reimplemented in SuperSampler, MasterSamplerTopcXYZ, MasterSampler, and LatticeActionChargeDensity.
|
virtual |
Correlator::writeObservableToFile calls the ObservableStorer for writing observable to file.
acceptanceRatio |
Reimplemented in SuperSampler, MasterSamplerTopcXYZ, MasterSampler, and LatticeActionChargeDensity.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |