1 |
pam-fi |
1.1 |
/* |
2 |
|
|
* TrkYVsXHistoAction.h |
3 |
|
|
* |
4 |
|
|
* Created on: 02/dec/2009 |
5 |
|
|
* Author: Sergio Ricciarini |
6 |
|
|
*/ |
7 |
|
|
|
8 |
|
|
/*! @file TrkYVsXHistoAction.h The TrkYVsXHistoAction class declaration file. */ |
9 |
|
|
|
10 |
|
|
#ifndef TRKYVSXHISTOACTION_H_ |
11 |
|
|
#define TRKYVSXHISTOACTION_H_ |
12 |
|
|
|
13 |
|
|
#include "../Histo2DAction/Histo2DAction.h" |
14 |
|
|
|
15 |
|
|
/*! @brief An action that fills a TRK Y vs. X histogram for track 0 over acceptance planes ipl. |
16 |
|
|
* |
17 |
|
|
*/ |
18 |
|
|
class TrkYVsXHistoAction: public Histo2DAction<Int_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 |
|
|
* @param ipl The acceptance plane (index goes from 0 to 13). Default: 4 (upper cavity face) |
34 |
|
|
*/ |
35 |
|
|
TrkYVsXHistoAction(const char *actionName, TString outFileBase = "", TString mode = "UPDATE", |
36 |
|
|
bool outRoot = true, bool outText = true, TString title = "TRK Y Vs X", UInt_t igf = 4); |
37 |
|
|
|
38 |
|
|
|
39 |
|
|
/*! @brief Destructor */ |
40 |
|
|
~TrkYVsXHistoAction() { |
41 |
|
|
} |
42 |
|
|
|
43 |
|
|
/*! @brief Fills histogram with the selected event. |
44 |
|
|
* |
45 |
|
|
* @param event The selected event. |
46 |
|
|
*/ |
47 |
|
|
void OnGood(PamLevel2 *event); |
48 |
|
|
|
49 |
|
|
private: |
50 |
|
|
UInt_t _igf; |
51 |
|
|
|
52 |
|
|
}; |
53 |
|
|
|
54 |
|
|
#endif /* TRKYVSXHISTOACTION_H_ */ |