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

Annotation of /PamCut/CollectionActions/EvRateS11VsCutoffHistoAction/EvRateS11VsCutoffHistoAction.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Mon Jun 8 10:37:19 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
Changes since 1.2: +4 -1 lines
File MIME type: text/plain
Added support for append mode for output file.

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 pam-fi 1.2 * @param outFileName The output file name.
26 pam-fi 1.3 * @param mode The mode of file creation (see documentation of TFile constructor
27     * in ROOT's reference guide)
28 pam-fi 1.1 */
29 pam-fi 1.3 EvRateS11VsCutoffHistoAction(const char *actionName, TString outFileName, TString mode = "UPDATE");
30 pam-fi 1.1
31     /*! @brief Destructor */
32     ~EvRateS11VsCutoffHistoAction() {
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 pam-fi 1.3 TString _mode;
49 pam-fi 1.1
50     };
51    
52     #endif /* EVRATES11VSCUTOFFHISTOACTION_H_ */

  ViewVC Help
Powered by ViewVC 1.1.23