| 13 |
#include "../VerboseCollection/VerboseCollection.h" |
#include "../VerboseCollection/VerboseCollection.h" |
| 14 |
|
|
| 15 |
/*! @enum Flags to select the method of error computation */ |
/*! @enum Flags to select the method of error computation */ |
| 16 |
enum EffRigCollection_ErrMethod { |
enum EffCollection_ErrMethod { |
| 17 |
EFFRIG_SERGIO, ///< Flag for Sergio Ricciarini's Fortran routine |
EFFERR_SERGIO, ///< Flag for Sergio Ricciarini's Fortran routine |
| 18 |
EFFRIG_ROOT |
EFFERR_ROOT |
| 19 |
///< Flag for ROOT TGraphAsymErrors::BayesDivide() |
///< Flag for ROOT TGraphAsymErrors::BayesDivide() |
| 20 |
}; |
}; |
| 21 |
|
|
| 45 |
* |
* |
| 46 |
* @param collectionName The collection's name. |
* @param collectionName The collection's name. |
| 47 |
* @param outFileBase The output file base name. If "", no file output will be produced; otherwise, |
* @param outFileBase The output file base name. If "", no file output will be produced; otherwise, |
| 48 |
* a file named outFilebase + "-eff.txt" will be produced, containing the number of |
* a file named outFilebase + collection's name + ".txt" will be produced, containing |
| 49 |
* 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 #EffRigCollection_ErrMethod. |
| 53 |
*/ |
*/ |
| 54 |
EffCollection(const char *collectionName, TString outFileBase = "", int errMethod = EFFRIG_ROOT); |
EffCollection(const char *collectionName, TString outFileBase = "", int errMethod = EFFERR_ROOT); |
| 55 |
|
|
| 56 |
/*! @brief Destructor. */ |
/*! @brief Destructor. */ |
| 57 |
~EffCollection() { |
~EffCollection() { |