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

Annotation of /PamCut/CollectionActions/EvRateCorrHistoAction/EvRateCorrHistoAction.h

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.23