Index: trunk/FACT++/src/StateMachineImp.cc
===================================================================
--- trunk/FACT++/src/StateMachineImp.cc	(revision 11301)
+++ trunk/FACT++/src/StateMachineImp.cc	(revision 11302)
@@ -416,4 +416,20 @@
 // --------------------------------------------------------------------------
 //
+//! Call for each event in fListEvents its Print function with the given
+//! stream if it is an allowed event in the current state.
+//!
+//! @param out
+//!    ostream to which the output should be redirected
+//!
+//
+void StateMachineImp::PrintListOfAllowedEvents(ostream &out) const
+{
+    for (vector<EventImp*>::const_iterator c=fListOfEvents.begin(); c!=fListOfEvents.end(); c++)
+        if ((*c)->IsStateAllowed(fCurrentState))
+            (*c)->Print(out, true);
+}
+
+// --------------------------------------------------------------------------
+//
 //! Call PrintListOfEvents with fOut as the output stream
 //!
Index: trunk/FACT++/src/StateMachineImp.h
===================================================================
--- trunk/FACT++/src/StateMachineImp.h	(revision 11301)
+++ trunk/FACT++/src/StateMachineImp.h	(revision 11302)
@@ -127,4 +127,7 @@
     void PrintListOfEvents(const std::string &str="") const;
 
+    void PrintListOfAllowedEvents(std::ostream &out) const;
+    void PrintListOfAllowedEvents() const;
+
     void PrintListOfStates(std::ostream &out) const;
     void PrintListOfStates() const;
