1 |
/* |
2 |
* VerboseBlindCollection.h |
3 |
* |
4 |
* Created on: 16-mag-2009 |
5 |
* Author: Nicola Mori |
6 |
*/ |
7 |
|
8 |
/*! @file VerboseBlindCollection.h The VerboseBlindCollection class definition file */ |
9 |
|
10 |
#ifndef VERBOSEBLINDCOLLECTION_H_ |
11 |
#define VERBOSEBLINDCOLLECTION_H_ |
12 |
|
13 |
#include "../SmartBlindCollection/SmartBlindCollection.h" |
14 |
/*! @brief A smart blind collection which prints selection reports. |
15 |
* |
16 |
* This class inherits from SmartBlindCollection, 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 VerboseBlindCollection: public SmartBlindCollection { |
21 |
|
22 |
public: |
23 |
|
24 |
/*! @brief Constructor. |
25 |
* |
26 |
* @param collectionName The collection's name. |
27 |
* @param owns If true, the collection will own the cuts and the actions, ie., it will |
28 |
* destroy them in its destructor. |
29 |
*/ |
30 |
VerboseBlindCollection(const char *collectionName, bool owns = true) : |
31 |
SmartBlindCollection(collectionName, owns) { |
32 |
} |
33 |
|
34 |
/*! @brief Destructor. */ |
35 |
~VerboseBlindCollection() { |
36 |
} |
37 |
|
38 |
/*! @brief The post analysis task. |
39 |
* |
40 |
* This implementation simply prints the selection report, and then calls |
41 |
* SmartColletion::Finalize(). |
42 |
*/ |
43 |
void Finalize(); |
44 |
|
45 |
}; |
46 |
|
47 |
#endif /* VERBOSEBLINDCOLLECTION_H_ */ |