1 |
pam-fi |
1.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 outFileBase The output file name. |
26 |
|
|
*/ |
27 |
|
|
EvRateS11VsCutoffHistoAction(const char *actionName, TString outFileName); |
28 |
|
|
|
29 |
|
|
/*! @brief Destructor */ |
30 |
|
|
~EvRateS11VsCutoffHistoAction() { |
31 |
|
|
} |
32 |
|
|
|
33 |
|
|
/*! @brief Fills histogram with the selected event. |
34 |
|
|
* |
35 |
|
|
* @param event The selected event. |
36 |
|
|
*/ |
37 |
|
|
void OnGood(PamLevel2 *event); |
38 |
|
|
|
39 |
|
|
/*! @brief Writes the histogram to the output file. */ |
40 |
|
|
void Finalize(); |
41 |
|
|
|
42 |
|
|
private: |
43 |
|
|
|
44 |
|
|
TString _outFileName; |
45 |
|
|
TH2F _histo; |
46 |
|
|
|
47 |
|
|
}; |
48 |
|
|
|
49 |
|
|
#endif /* EVRATES11VSCUTOFFHISTOACTION_H_ */ |