1 |
pam-fi |
1.1 |
/* |
2 |
|
|
* CaloAxisChi2VsRigHistoAction.h |
3 |
|
|
* |
4 |
|
|
* Created on: 2010-02-22 |
5 |
|
|
* Author: S. Ricciarini |
6 |
|
|
*/ |
7 |
|
|
|
8 |
|
|
/*! @file CaloAxisChi2VsRigHistoAction.h The CaloAxisChi2VsRigHistoAction class declaration file. */ |
9 |
|
|
|
10 |
|
|
#ifndef CALOAXISCHI2VSRIGHISTOACTION_H_ |
11 |
|
|
#define CALOAXISCHI2VSRIGHISTOACTION_H_ |
12 |
|
|
|
13 |
|
|
#include "../Histo2DAction/Histo2DAction.h" |
14 |
|
|
#include "../../../CaloAxis2.h" |
15 |
|
|
|
16 |
|
|
/*! @brief An action that fills a (X or Y) CaloAxis Chi2 Vs. Trk Rig histogram. */ |
17 |
|
|
class CaloAxisChi2VsRigHistoAction: public Histo2DAction<Int_t> { |
18 |
|
|
|
19 |
|
|
public: |
20 |
|
|
|
21 |
|
|
/*! @brief Constructor. |
22 |
|
|
* |
23 |
|
|
* @param actionName The action's name. |
24 |
|
|
* @param axis The CaloAxis object. |
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 |
|
|
CaloAxisChi2VsRigHistoAction(const char *actionName, CaloAxis *axis, TString outFileBase = "", |
35 |
|
|
TString mode = "UPDATE", bool outRoot = true, bool outText = true, TString title = "CALO axis chi2 vs TRK rig"); |
36 |
|
|
|
37 |
|
|
/*! @brief Destructor */ |
38 |
|
|
~CaloAxisChi2VsRigHistoAction() { |
39 |
|
|
} |
40 |
|
|
|
41 |
|
|
/*! @brief Fills histogram with the selected event. |
42 |
|
|
* |
43 |
|
|
* @param event The selected event. |
44 |
|
|
*/ |
45 |
|
|
void OnGood(PamLevel2 *event); |
46 |
|
|
|
47 |
|
|
private: |
48 |
|
|
|
49 |
|
|
CaloAxis *_axis; |
50 |
|
|
|
51 |
|
|
}; |
52 |
|
|
#endif /* CALOAXISCHI2VSRIGHISTOACTION_H_ */ |