1 |
/* |
2 |
* TrkXAngHistoAction.h |
3 |
* |
4 |
* Created on: 2009-12-24 |
5 |
* Author: S. Ricciarini |
6 |
*/ |
7 |
|
8 |
/*! @file TrkXAngHistoAction.h The TrkXAngHistoAction class declaration file. */ |
9 |
|
10 |
#ifndef TRKXANGHISTOACTION_H_ |
11 |
#define TRKXANGHISTOACTION_H_ |
12 |
|
13 |
#include "../Histo1DAction/Histo1DAction.h" |
14 |
|
15 |
/*! @brief An action that fills the histogram: TRK track XZ angle (degrees) on the first TRK plane. |
16 |
*/ |
17 |
class TrkXAngHistoAction: public Histo1DAction<Int_t> { |
18 |
|
19 |
public: |
20 |
|
21 |
/*! @brief Constructor. |
22 |
* |
23 |
* @param actionName The action's name. |
24 |
* @param outFileBase The file base name for the ROOT histogram output (".root" will be appended). |
25 |
* If "", no ROOT output will be produced. |
26 |
* @param mode The mode of ROOT file creation (see documentation of TFile constructor |
27 |
* @param outRoot If true, the output file in ROOT format will be produced. |
28 |
* @param outText If true, the output file in text format will be produced. |
29 |
* in ROOT's reference guide). |
30 |
* @param title The ROOT histogram title. |
31 |
*/ |
32 |
TrkXAngHistoAction(const char *actionName, TString outFileBase = "", TString mode = "UPDATE", bool outRoot = true, bool outText = true, TString title = "XZ angle on first TRK plane"); |
33 |
|
34 |
/*! @brief Destructor */ |
35 |
~TrkXAngHistoAction() { |
36 |
} |
37 |
|
38 |
/*! @brief Fills histogram with the selected event. |
39 |
* |
40 |
* @param event The selected event. |
41 |
*/ |
42 |
void OnGood(PamLevel2 *event); |
43 |
|
44 |
private: |
45 |
|
46 |
}; |
47 |
|
48 |
#endif /* TRKXANGHISTOACTION_H_ */ |