| 12 |
|
|
| 13 |
#include "../VerboseCollection/VerboseCollection.h" |
#include "../VerboseCollection/VerboseCollection.h" |
| 14 |
|
|
| 15 |
/*! @enum Flags to select the method of error computation */ |
/*! @enum EffCollection_ErrMethod to select the method of error computation */ |
| 16 |
enum EffCollection_ErrMethod { |
enum EffCollection_ErrMethod { |
| 17 |
EFFERR_SERGIO, ///< Flag for Sergio Ricciarini's Fortran routine |
EFFERR_SERGIO, ///< Flag for Sergio Ricciarini's Fortran routine |
| 18 |
EFFERR_ROOT |
EFFERR_ROOT |
| 49 |
* the number of events surviving the detector cuts (1st column), the selection cuts (2nd column), |
* the number of events surviving the detector cuts (1st column), the selection cuts (2nd column), |
| 50 |
* the efficiency (3rd column), the lower (4th column) and upper (5th column) length |
* the efficiency (3rd column), the lower (4th column) and upper (5th column) length |
| 51 |
* of the efficiency's error bar. |
* of the efficiency's error bar. |
| 52 |
* @param errMethod The method to use for error computation. Possible values are defined in #EffRigCollection_ErrMethod. |
* @param errMethod The method to use for error computation. Possible values are defined in #EffCollection_ErrMethod. |
| 53 |
|
* @param owns If true, the collection will own the cuts and the actions, ie., it will |
| 54 |
|
* destroy them in its destructor. |
| 55 |
*/ |
*/ |
| 56 |
EffCollection(const char *collectionName, TString outFileBase = "", int errMethod = EFFERR_ROOT); |
EffCollection(const char *collectionName, TString outFileBase = "", int errMethod = EFFERR_ROOT, bool owns = true); |
| 57 |
|
|
| 58 |
/*! @brief Destructor. */ |
/*! @brief Destructor. */ |
| 59 |
~EffCollection() { |
~EffCollection() { |
| 66 |
* |
* |
| 67 |
* @param cut The PamCut-derived object to add to the collection. |
* @param cut The PamCut-derived object to add to the collection. |
| 68 |
*/ |
*/ |
| 69 |
void AddCut(PamCut &cut) { |
void AddCut(PamCut *cut) { |
| 70 |
AddDetectorCut(cut); |
AddDetectorCut(cut); |
| 71 |
} |
} |
| 72 |
|
|
| 76 |
* selection cut. |
* selection cut. |
| 77 |
* @param cut The PamCut-derived object to add to the collection. |
* @param cut The PamCut-derived object to add to the collection. |
| 78 |
*/ |
*/ |
| 79 |
void AddDetectorCut(PamCut &cut); |
void AddDetectorCut(PamCut *cut); |
| 80 |
|
|
| 81 |
/*! @brief Adds a selection cut to the collection. |
/*! @brief Adds a selection cut to the collection. |
| 82 |
* |
* |
| 84 |
* selection cut. |
* selection cut. |
| 85 |
* @param cut The PamCut-derived object to add to the collection. |
* @param cut The PamCut-derived object to add to the collection. |
| 86 |
*/ |
*/ |
| 87 |
void AddSelectionCut(PamCut &cut); |
void AddSelectionCut(PamCut *cut); |
| 88 |
|
|
| 89 |
/*! @brief Adds an action to the detector cuts queue. |
/*! @brief Adds an action to the detector cuts queue. |
| 90 |
* |
* |
| 92 |
* |
* |
| 93 |
* @param action The CollectionAction-derived object to add to the collection. |
* @param action The CollectionAction-derived object to add to the collection. |
| 94 |
*/ |
*/ |
| 95 |
void AddAction(CollectionAction &action) { |
void AddAction(CollectionAction *action) { |
| 96 |
AddDetectorAction(action); |
AddDetectorAction(action); |
| 97 |
} |
} |
| 98 |
|
|
| 103 |
* |
* |
| 104 |
* @param action The CollectionAction-derived object to add to the collection. |
* @param action The CollectionAction-derived object to add to the collection. |
| 105 |
*/ |
*/ |
| 106 |
void AddDetectorAction(CollectionAction &action); |
void AddDetectorAction(CollectionAction *action); |
| 107 |
|
|
| 108 |
/*! @brief Adds an action to the selection cuts queue. |
/*! @brief Adds an action to the selection cuts queue. |
| 109 |
* |
* |
| 112 |
* |
* |
| 113 |
* @param action The CollectionAction-derived object to add to the collection. |
* @param action The CollectionAction-derived object to add to the collection. |
| 114 |
*/ |
*/ |
| 115 |
void AddSelectionAction(CollectionAction &action); |
void AddSelectionAction(CollectionAction *action); |
| 116 |
|
|
| 117 |
/*! @brief Applies the selection and detector cuts to the current event. |
/*! @brief Applies the selection and detector cuts to the current event. |
| 118 |
* |
* |