#include <BlindCutCollection.h>
Public Member Functions | |
BlindCutCollection (const char *collectionName) | |
Constructor. | |
~BlindCutCollection () | |
Destructor. | |
int | Check (PamLevel2 *event) |
Checks all the cuts. | |
int | ApplyCut (PamLevel2 *event) |
Applies all the cuts to the current event. |
This cut collection will apply all the cuts it contains to the events, even if some of them are not satisfied.
BlindCutCollection::BlindCutCollection | ( | const char * | collectionName | ) | [inline] |
Constructor.
collectionName | The collection's name. |
int BlindCutCollection::ApplyCut | ( | PamLevel2 * | event | ) | [virtual] |
Applies all the cuts to the current event.
This routine works pretty much like the redefinition of Check(), calling ApplyCut() (instead of Check() )for each cut. However, if a cut fails, it does not stops but continues until all the cuts are evaluated. If all the cuts are successful, on exit it calls OnGood(); if a single cut failed, it calls OnBad(), passing the index of the first failed cut as selectionResult.
event | The event to analyze. |
Reimplemented from PamCutCollection.
int BlindCutCollection::Check | ( | PamLevel2 * | event | ) | [virtual] |
Checks all the cuts.
This method checks all the cuts for the current event. It exits only after all the cuts have been evaluated. Note that it doesn't call OnGood() nor OnBad(), not even for the PamCut objects in the collection.
event | The event to analyze. |
Reimplemented from PamCutCollection.