--- PamCut/Collections/SmartCollection/SmartCollection.h 2009/10/27 10:24:00 1.7 +++ PamCut/Collections/SmartCollection/SmartCollection.h 2011/09/05 13:00:41 1.8 @@ -50,7 +50,7 @@ * destroy them in its destructor. */ SmartCollection(const char* collectionName, bool owns = true) : - PamCutCollection(collectionName, owns), _actions(0) { + PamCutCollection(collectionName, owns), _actions(0) { } /*! @brief Destructor. */ @@ -82,6 +82,20 @@ return _actions.size(); } + /*! @brief The position of specified action. + * + * This method returns the position of the iAction-th action. For every action + * placed before the first cut this will return -1. Otherwise it will return the index + * of the cut preceding the action (eg., if action number 3 is after cut number 2, GetActionPosition(3) + * will return 2) + * + * @param iAction The index of the action (0 = first action) + * @return The position of the specified action + */ + int GetActionPosition(unsigned int iAction) { + return _actionsPositions[iAction]; + } + /*! @brief The pre-analysis task definition. * * This override of the Setup() method calls Setup() for the base class PamCutCollection, and subsequently for each