GLAC  1.0
energydensity.h
Go to the documentation of this file.
1 
15 #ifndef ENERGYDENSITY_H
16 #define ENERGYDENSITY_H
17 
18 #include "correlator.h"
19 #include "math/functions.h"
20 
21 class EnergyDensity : public Correlator
22 {
23 private:
24  const std::string m_observableName = "Energy density";
25  const std::string m_observableNameCompact = "energy";
26 
27  // Indexes for retrieving the clovers
28  int mu = 0, rho, sigma;
29  double m_energyDensity;
30  double m_multiplicationFactor;
31  Lattice <double> m_tempDiag;
32  Lattice<SU3> m_clov1, m_clov2, m_U2Temp, m_U3Temp, m_temp;
33 public:
34  EnergyDensity(bool storeFlowObservable);
36  void calculate(Lattice<SU3> *lattice, unsigned int iObs);
37 
38  // Printers
39  void printStatistics();
40  // Getters
41  std::string getObservableName() { return m_observableName; }
42  void runStatistics();
43 };
44 
45 #endif // ENERGYDENSITY_H
void calculate(Lattice< SU3 > *lattice, unsigned int iObs)
Correlator::calculate calculates a observable.
Definition: energydensity.cpp:24
std::string getObservableName()
Definition: energydensity.h:41
~EnergyDensity()
Definition: energydensity.cpp:19
void printStatistics()
Correlator::printStatistics prints statistics from ObservableStorer.
Definition: energydensity.cpp:128
base class for observables.
Definition: correlator.h:20
void runStatistics()
Correlator::runStatistics.
Definition: energydensity.cpp:122
Solely calculates the energy density as given by, The is the clover.
Definition: energydensity.h:21
EnergyDensity(bool storeFlowObservable)
Definition: energydensity.cpp:3