1 |
pam-fi |
1.1 |
/* |
2 |
|
|
* LiveTimeRunEventHistoAction.h |
3 |
|
|
* |
4 |
|
|
* Created on: 18/jan/2010 |
5 |
|
|
* Author: Sergio Ricciarini, Nicola Mori |
6 |
|
|
*/ |
7 |
|
|
|
8 |
|
|
/*! @file LiveTimeRunEventHistoAction.h The LiveTimeRunEventHistoAction class declaration file. */ |
9 |
|
|
|
10 |
|
|
#ifndef LIVETIMERUNEVENTHISTOACTION_H_ |
11 |
|
|
#define LIVETIMERUNEVENTHISTOACTION_H_ |
12 |
|
|
|
13 |
|
|
#include "../Histo1DAction/Histo1DAction.h" |
14 |
|
|
|
15 |
|
|
/*! @brief Fills the Live Time histogram for events with specified position in the run. */ |
16 |
|
|
class LiveTimeRunEventHistoAction: public Histo1DAction<Float_t> { |
17 |
|
|
public: |
18 |
|
|
|
19 |
|
|
/*! @brief Constructor. |
20 |
|
|
* |
21 |
|
|
* @param actionName The action's name. |
22 |
|
|
* @param outFileBase The output file base name. |
23 |
|
|
* @param eventID The event ID in the run (first event: 0). |
24 |
|
|
* @param mode The mode of ROOT file creation (see documentation of TFile constructor |
25 |
|
|
* in ROOT's reference guide). |
26 |
|
|
*/ |
27 |
|
|
LiveTimeRunEventHistoAction(const char *actionName, TString outFileBase, UInt_t eventID = 0, TString mode = "UPDATE"); |
28 |
|
|
|
29 |
|
|
/*! @brief Destructor. */ |
30 |
|
|
~LiveTimeRunEventHistoAction() { |
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 |
|
|
|
40 |
|
|
private: |
41 |
|
|
|
42 |
|
|
TString _outFileName; |
43 |
|
|
UInt_t _eventID; |
44 |
|
|
TString _mode; |
45 |
|
|
TH1F _Histo; |
46 |
|
|
|
47 |
|
|
}; |
48 |
|
|
#endif /* LIVETIMERUNEVENTHISTOACTION_H_ */ |