| 1 |
/* |
| 2 |
* VerboseCollection.h |
| 3 |
* |
| 4 |
* Created on: 16-mag-2009 |
| 5 |
* Author: Nicola Mori |
| 6 |
*/ |
| 7 |
|
| 8 |
/*! @file VerboseCollection.h The VerboseCollection class definition file */ |
| 9 |
|
| 10 |
#ifndef VERBOSECOLLECTION_H_ |
| 11 |
#define VERBOSECOLLECTION_H_ |
| 12 |
|
| 13 |
#include "../SmartCollection/SmartCollection.h" |
| 14 |
/*! @brief A smart collection which prints selection reports. |
| 15 |
* |
| 16 |
* This class inherits from SmartCollection, so it can handle actions. It is designed to |
| 17 |
* automate a very common task: printing the selection results at the end of the analysis. |
| 18 |
* Other desired tasks can be accomplished by means of actions. |
| 19 |
*/ |
| 20 |
class VerboseCollection: public SmartCollection { |
| 21 |
|
| 22 |
public: |
| 23 |
|
| 24 |
/*! @brief Constructor. |
| 25 |
* |
| 26 |
* @param collectionName The collection's name. |
| 27 |
*/ |
| 28 |
VerboseCollection(const char *collectionName) : |
| 29 |
SmartCollection(collectionName) { |
| 30 |
} |
| 31 |
|
| 32 |
/*! @brief Destructor. */ |
| 33 |
~VerboseCollection() { |
| 34 |
} |
| 35 |
|
| 36 |
/*! @brief The post analysis task. |
| 37 |
* |
| 38 |
* This implementation simply prints the selection report, and then calls |
| 39 |
* SmartColletion::Finalize(). |
| 40 |
*/ |
| 41 |
void Finalize(); |
| 42 |
|
| 43 |
}; |
| 44 |
|
| 45 |
#endif /* VERBOSECOLLECTION_H_ */ |