| 22 |
return _actions[iAction]; |
return _actions[iAction]; |
| 23 |
} |
} |
| 24 |
|
|
| 25 |
void SmartCollection::Setup(PamLevel2 *events){ |
void SmartCollection::Setup(PamLevel2 *events) { |
| 26 |
PamCutCollection::Setup(events); |
PamCutCollection::Setup(events); |
| 27 |
|
|
| 28 |
for (unsigned int i = 0; i < GetSize(); i++){ |
for (unsigned int i = 0; i < _actions.size(); i++) { |
| 29 |
_actions[i]->Setup(events); |
_actions[i]->Setup(events); |
| 30 |
} |
} |
| 31 |
} |
} |
| 32 |
|
|
| 33 |
void SmartCollection::Finalize(){ |
void SmartCollection::Finalize() { |
| 34 |
PamCutCollection::Finalize(); |
PamCutCollection::Finalize(); |
| 35 |
|
|
| 36 |
for (unsigned int i = 0; i < GetSize(); i++){ |
for (unsigned int i = 0; i < _actions.size(); i++) { |
| 37 |
_actions[i]->Finalize(); |
_actions[i]->Finalize(); |
| 38 |
} |
} |
| 39 |
} |
} |
| 40 |
|
|
| 41 |
void SmartCollection::OnGood(PamLevel2 *event){ |
void SmartCollection::OnGood(PamLevel2 *event) { |
| 42 |
PamCutCollection::OnGood(event); |
PamCutCollection::OnGood(event); |
| 43 |
|
|
| 44 |
for (unsigned int i = 0; i < GetSize(); i++){ |
for (unsigned int i = 0; i < _actions.size(); i++) { |
| 45 |
_actions[i]->OnGood(event); |
_actions[i]->OnGood(event); |
| 46 |
} |
} |
| 47 |
} |
} |
| 48 |
|
|
| 49 |
void SmartCollection::OnBad(PamLevel2 *event, int selectionResult){ |
void SmartCollection::OnBad(PamLevel2 *event, int selectionResult) { |
| 50 |
PamCutCollection::OnBad(event, selectionResult); |
PamCutCollection::OnBad(event, selectionResult); |
| 51 |
|
|
| 52 |
for (unsigned int i = 0; i < GetSize(); i++){ |
for (unsigned int i = 0; i < _actions.size(); i++) { |
| 53 |
_actions[i]->OnBad(event, selectionResult); |
_actions[i]->OnBad(event, selectionResult); |
| 54 |
} |
} |
| 55 |
} |
} |