1 |
/* |
2 |
* EvRateS11VsCutoffHistoAction.h |
3 |
* |
4 |
* Created on: 21-mag-2009 |
5 |
* Author: Nicola Mori |
6 |
*/ |
7 |
/*! @file EvRateS11VsCutoffHistoAction.h The EvRateS11VsCutoffHistoAction class declaration file. */ |
8 |
|
9 |
#ifndef EVRATES11VSCUTOFFHISTOACTION_H_ |
10 |
#define EVRATES11VSCUTOFFHISTOACTION_H_ |
11 |
|
12 |
#include "../CollectionAction/CollectionAction.h" |
13 |
#include <TH2F.h> |
14 |
|
15 |
/*! @brief An action that fills an event rate on S11 Vs. Stoermer cutoff 2D histogram. |
16 |
* |
17 |
* The event rate on S11 is the mean of the event rates on each PMT of S11. |
18 |
*/ |
19 |
class EvRateS11VsCutoffHistoAction: public CollectionAction { |
20 |
|
21 |
public: |
22 |
/*! @brief Constructor. |
23 |
* |
24 |
* @param actionName The action's name. |
25 |
* @param outFileName The output file name. |
26 |
* @param mode The mode of file creation (see documentation of TFile constructor |
27 |
* in ROOT's reference guide) |
28 |
*/ |
29 |
EvRateS11VsCutoffHistoAction(const char *actionName, TString outFileName, TString mode = "UPDATE"); |
30 |
|
31 |
/*! @brief Destructor */ |
32 |
~EvRateS11VsCutoffHistoAction() { |
33 |
} |
34 |
|
35 |
/*! @brief Fills histogram with the selected event. |
36 |
* |
37 |
* @param event The selected event. |
38 |
*/ |
39 |
void OnGood(PamLevel2 *event); |
40 |
|
41 |
/*! @brief Writes the histogram to the output file. */ |
42 |
void Finalize(); |
43 |
|
44 |
private: |
45 |
|
46 |
TString _outFileName; |
47 |
TH2F _histo; |
48 |
TString _mode; |
49 |
|
50 |
}; |
51 |
|
52 |
#endif /* EVRATES11VSCUTOFFHISTOACTION_H_ */ |