mcpele  1.0.0
The Monte Carlo Python Energy Landscape Explorer
energy_window_test.cpp
00001 #include "pele/array.h"
00002 
00003 #include "mcpele/energy_window_test.h"
00004 
00005 using pele::Array;
00006 
00007 namespace mcpele {
00008 
00009 EnergyWindowTest::EnergyWindowTest(const double min_energy, const double max_energy)
00010     : m_min_energy(min_energy),
00011       m_max_energy(max_energy)
00012 {}
00013 
00014 bool EnergyWindowTest::test(Array<double>&, double trial_energy,
00015         Array<double>&, double, double, MC*)
00016 {
00017     return ((trial_energy >= m_min_energy) and (trial_energy <= m_max_energy));
00018 }
00019 
00020 } // namespace mcpele
 All Classes Namespaces Functions Variables Typedefs