/[PAMELA software]/PamCut/CollectionActions/EvRateS11VsBabsHistoAction/EvRateS11VsBabsHistoAction.h
ViewVC logotype

Contents of /PamCut/CollectionActions/EvRateS11VsBabsHistoAction/EvRateS11VsBabsHistoAction.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Aug 5 13:57:21 2009 UTC (15 years, 3 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 some new actions.

1 /*
2 * EvRateS11VsBabsHistoAction.h
3 *
4 * Created on: 10-jun-2009
5 * Author: Nicola Mori
6 */
7 /*! @file EvRateS11VsBabsHistoAction.h The EvRateS11VsBabsHistoAction class declaration file. */
8
9 #ifndef EVRATES11VSBABSHISTOACTION_H_
10 #define EVRATES11VSBABSHISTOACTION_H_
11
12 #include "../CollectionAction/CollectionAction.h"
13 #include <TH2F.h>
14
15 /*! @brief An action that fills an event rate on S11 Vs. modulus of the geomagnetic field 2D histogram.
16 *
17 * The event rate on S11 is the mean of the event rates on each PMT of S11.
18 */
19 class EvRateS11VsBabsHistoAction: 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 EvRateS11VsBabsHistoAction(const char *actionName, TString outFileName, TString mode = "UPDATE");
30
31 /*! @brief Destructor */
32 ~EvRateS11VsBabsHistoAction() {
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 /* EVRATES11VSBABSHISTOACTION_H_ */

  ViewVC Help
Powered by ViewVC 1.1.23