| 66 |
*/ |
*/ |
| 67 |
CollectionAction *GetAction(unsigned int iAction); |
CollectionAction *GetAction(unsigned int iAction); |
| 68 |
|
|
| 69 |
|
/*! @brief Searches for an action by name. |
| 70 |
|
* |
| 71 |
|
* @param actionName The name of the action to search for. |
| 72 |
|
* @return pointer to the desired action; NULL if the specified action cannot be found or if no actions are present. |
| 73 |
|
*/ |
| 74 |
|
CollectionAction *GetAction(const char *actionName); |
| 75 |
|
|
| 76 |
|
/*! @brief The number of actions in the collection. |
| 77 |
|
* |
| 78 |
|
* @return The number of actions currently in the collection. |
| 79 |
|
*/ |
| 80 |
|
unsigned int GetActionsSize(){ |
| 81 |
|
return _actions.size(); |
| 82 |
|
} |
| 83 |
|
|
| 84 |
/*! @brief The pre-analysis task definition. |
/*! @brief The pre-analysis task definition. |
| 85 |
* |
* |
| 86 |
* This override of the Setup() method calls Setup() for the base class PamCutCollection, and subsequently for each |
* This override of the Setup() method calls Setup() for the base class PamCutCollection, and subsequently for each |
| 108 |
|
|
| 109 |
protected: |
protected: |
| 110 |
|
|
| 111 |
|
/*! @brief The vector containing the actions */ |
| 112 |
std::vector<CollectionAction*> _actions; |
std::vector<CollectionAction*> _actions; |
|
std::vector<unsigned int> _actionsPositions; |
|
|
|
|
| 113 |
|
|
| 114 |
|
/*! The vector of actions' positions |
| 115 |
|
* |
| 116 |
|
* An action is placed after N cuts, so that the SmartCollection, after applying N cuts, has to |
| 117 |
|
* perform the action. The numbers N for each action are stored here: the element i is N for the |
| 118 |
|
* i-th action in #_actions. |
| 119 |
|
*/ |
| 120 |
|
std::vector<unsigned int> _actionsPositions; |
| 121 |
|
|
| 122 |
}; |
}; |
| 123 |
|
|