Index: src/Actions/AnalysisAction/CalculateBoundingBoxAction.cpp
===================================================================
--- src/Actions/AnalysisAction/CalculateBoundingBoxAction.cpp	(revision f89b45ee33bbea1e1d6d5257495f6e87aeb29aeb)
+++ src/Actions/AnalysisAction/CalculateBoundingBoxAction.cpp	(revision f89b45ee33bbea1e1d6d5257495f6e87aeb29aeb)
@@ -0,0 +1,63 @@
+/*
+ * Project: MoleCuilder
+ * Description: creates and alters molecular systems
+ * Copyright (C)  2010 University of Bonn. All rights reserved.
+ * Please see the LICENSE file or "Copyright notice" in builder.cpp for details.
+ */
+
+/*
+ * CalculateBoundingBoxAction.cpp
+ *
+ *  Created on: Nov 02, 2011
+ *      Author: heber
+ */
+
+// include config.h
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include "CodePatterns/MemDebug.hpp"
+
+#include "CodePatterns/Log.hpp"
+
+#include "Box.hpp"
+#include "CodePatterns/Assert.hpp"
+#include "LinearAlgebra/Plane.hpp"
+#include <vector>
+#include <utility>
+#include "World.hpp"
+
+#include <iostream>
+#include <string>
+
+#include "CalculateBoundingBoxAction.hpp"
+
+using namespace MoleCuilder;
+
+// and construct the stuff
+#include "CalculateBoundingBoxAction.def"
+#include "Reaction_impl_pre.hpp"
+
+#include "Reaction_impl.hpp"
+
+/** =========== define the function ====================== */
+doubleVec * AnalysisCalculateBoundingBoxAction::doCalc() {
+  typedef std::pair<Plane,Plane> PairOfPlanes;
+  typedef std::vector<PairOfPlanes> PairOfPlanesVector;
+  const PairOfPlanesVector planes = World::getInstance().getDomain().getBoundingPlanes();
+  doubleVec returnvalues;
+  for (PairOfPlanesVector::const_iterator iter = planes.begin();
+    iter != planes.end(); ++iter) {
+    returnvalues.push_back(fabs(iter->first.getOffset()));
+    returnvalues.push_back(fabs(iter->second.getOffset()));
+  }
+  ASSERT( returnvalues.size() == (size_t)6,
+      "AnalysisCalculateBoundingBoxAction::doCalc() - returnvalues should be of length 6 but is "
+      +toString(returnvalues.size())+".");
+
+  LOG(0, "RESULT: The current bounding box is " << returnvalues << ".");
+
+  return (new doubleVec(returnvalues));
+}
+/** =========== end of function ====================== */
Index: src/Actions/AnalysisAction/CalculateBoundingBoxAction.def
===================================================================
--- src/Actions/AnalysisAction/CalculateBoundingBoxAction.def	(revision f89b45ee33bbea1e1d6d5257495f6e87aeb29aeb)
+++ src/Actions/AnalysisAction/CalculateBoundingBoxAction.def	(revision f89b45ee33bbea1e1d6d5257495f6e87aeb29aeb)
@@ -0,0 +1,34 @@
+/*
+ * CalculateBoundingBoxAction.def
+ *
+ *  Created on: Nov 02, 2011
+ *      Author: heber
+ */
+
+// all includes and forward declarations necessary for non-integral types below
+#include <vector>
+typedef std::vector<double> doubleVec;
+
+// i.e. there is an integer with variable name Z that can be found in
+// ValueStorage by the token "Z" -> first column: int, Z, "Z"
+// "undefine" if no parameters are required, use (NODEFAULT) for each (undefined) default value
+#undef paramtypes
+#undef paramreferences
+#undef paramtokens
+#undef paramdescriptions
+#undef paramdefaults
+
+// Reaction cannot be undone, hence no state
+
+#define returntype doubleVec
+
+// some defines for all the names, you may use REACTION and PARAMS
+#define CATEGORY Analysis
+#define MENUNAME "analysis"
+#define MENUPOSITION 3
+#define ACTIONNAME CalculateBoundingBox
+#define TOKEN "calculate-bounding-box"
+
+// finally the information stored in the ActionTrait specialization
+#define DESCRIPTION "Calculates the cuboid bounding box of the current domain"
+#undef SHORTFORM
Index: src/Actions/AnalysisAction/CalculateBoundingBoxAction.hpp
===================================================================
--- src/Actions/AnalysisAction/CalculateBoundingBoxAction.hpp	(revision f89b45ee33bbea1e1d6d5257495f6e87aeb29aeb)
+++ src/Actions/AnalysisAction/CalculateBoundingBoxAction.hpp	(revision f89b45ee33bbea1e1d6d5257495f6e87aeb29aeb)
@@ -0,0 +1,22 @@
+/*
+ * CalculateBoundingBoxAction.hpp
+ *
+ *  Created on: Nov 02, 2011
+ *      Author: heber
+ */
+
+#ifndef CALCULATEBOUNDINGBOXACTION_HPP_
+#define CALCULATEBOUNDINGBOXACTION_HPP_
+
+// include config.h
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+
+#include "Actions/Reaction.hpp"
+
+#include "CalculateBoundingBoxAction.def"
+#include "Reaction_impl_header.hpp"
+
+#endif /* CALCULATEBOUNDINGBOXACTION_HPP_ */
