/[PAMELA software]/PamCut/CollectionActions/Histo1DActions/LiveTimeRunEventHistoAction/LiveTimeRunEventHistoAction.h
ViewVC logotype

Contents of /PamCut/CollectionActions/Histo1DActions/LiveTimeRunEventHistoAction/LiveTimeRunEventHistoAction.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Jan 18 16:13:56 2010 UTC (14 years, 10 months ago) by pam-fi
Branch: MAIN
CVS Tags: Root_V8, MergedToHEAD_1, nuclei_reproc, MergedFromV8_1, BeforeMergingFromV8_1, V9, HEAD
Branch point for: V8
File MIME type: text/plain
Added to repository.

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_ */

  ViewVC Help
Powered by ViewVC 1.1.23