1 |
pam-fi |
1.1 |
/* |
2 |
|
|
* SVCVsLHistoAction.h |
3 |
|
|
* |
4 |
|
|
* Created on: 14/jan/2010 |
5 |
|
|
* Author: S. Ricciarini |
6 |
|
|
*/ |
7 |
|
|
|
8 |
|
|
/*! @file SVCVsLHistoAction.h The SVCVsLHistoAction class declaration file. */ |
9 |
|
|
|
10 |
|
|
#ifndef SVCVSLHISTOACTION_H_ |
11 |
|
|
#define SVCVSLHISTOACTION_H_ |
12 |
|
|
|
13 |
|
|
#include "../Histo2DAction/Histo2DAction.h" |
14 |
|
|
|
15 |
|
|
/*! @brief An action that fills a Stoermer Vertical Cutoff vs. L shell histogram |
16 |
|
|
* |
17 |
|
|
*/ |
18 |
|
|
class SVCVsLHistoAction: public Histo2DAction<Float_t> { |
19 |
|
|
|
20 |
|
|
public: |
21 |
|
|
|
22 |
|
|
/*! @brief Constructor. |
23 |
|
|
* |
24 |
|
|
* @param actionName The action's name. |
25 |
|
|
* @param outFileBase The file base name for the ROOT histogram output (".root" will be appended). |
26 |
|
|
* If "", no ROOT output will be produced. |
27 |
|
|
* @param mode The mode of ROOT file creation (see documentation of TFile constructor |
28 |
|
|
* in ROOT's reference guide). |
29 |
|
|
* @param outRoot If true, an output ROOT file named outFileBase + ".root" will be produced. |
30 |
|
|
* @param outText If true, an output text file named outFileBase + ".txt" will be produced. It will overwrite an |
31 |
|
|
* eventually existing file with the same name. |
32 |
|
|
* @param title The ROOT histogram title. |
33 |
|
|
*/ |
34 |
|
|
SVCVsLHistoAction(const char *actionName, TString outFileBase = "", TString mode = "UPDATE", |
35 |
|
|
bool outRoot = true, bool outText = true, TString title = "SVC vs. L"); |
36 |
|
|
|
37 |
|
|
|
38 |
|
|
/*! @brief Destructor */ |
39 |
|
|
~SVCVsLHistoAction() { |
40 |
|
|
} |
41 |
|
|
|
42 |
|
|
/*! @brief Fills histogram with the selected event. |
43 |
|
|
* |
44 |
|
|
* @param event The selected event. |
45 |
|
|
*/ |
46 |
|
|
void OnGood(PamLevel2 *event); |
47 |
|
|
|
48 |
|
|
}; |
49 |
|
|
|
50 |
|
|
#endif /* SVCVSLHISTOACTION_H_ */ |