/[PAMELA software]/PamCut/CollectionActions/Histo2DActions/CaloAxisChi2VsRigHistoAction/CaloAxisChi2VsRigHistoAction.h
ViewVC logotype

Contents of /PamCut/CollectionActions/Histo2DActions/CaloAxisChi2VsRigHistoAction/CaloAxisChi2VsRigHistoAction.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.2.1 - (show annotations) (download)
Thu Jul 8 10:43:17 2010 UTC (14 years, 5 months ago) by pam-fi
Branch: V8
CVS Tags: MergedToHEAD_1, nuclei_reproc
Changes since 1.1: +4 -1 lines
File MIME type: text/plain
Support for external CaloAxis library added.

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 NO_CALOAXIS
11
12 #ifndef CALOAXISCHI2VSRIGHISTOACTION_H_
13 #define CALOAXISCHI2VSRIGHISTOACTION_H_
14
15 #include "../Histo2DAction/Histo2DAction.h"
16 #include <CaloAxis.h>
17
18 /*! @brief An action that fills a (X or Y) CaloAxis Chi2 Vs. Trk Rig histogram. */
19 class CaloAxisChi2VsRigHistoAction: public Histo2DAction<Int_t> {
20
21 public:
22
23 /*! @brief Constructor.
24 *
25 * @param actionName The action's name.
26 * @param axis The CaloAxis object.
27 * @param outFileBase The file base name for the ROOT histogram output (".root" will be appended).
28 * If "", no ROOT output will be produced.
29 * @param mode The mode of ROOT file creation (see documentation of TFile constructor
30 * in ROOT's reference guide).
31 * @param outRoot If true, an output ROOT file named outFileBase + ".root" will be produced.
32 * @param outText If true, an output text file named outFileBase + ".txt" will be produced. It will overwrite an
33 * eventually existing file with the same name.
34 * @param title The ROOT histogram title.
35 */
36 CaloAxisChi2VsRigHistoAction(const char *actionName, CaloAxis *axis, TString outFileBase = "",
37 TString mode = "UPDATE", bool outRoot = true, bool outText = true, TString title = "CALO axis chi2 vs TRK rig");
38
39 /*! @brief Destructor */
40 ~CaloAxisChi2VsRigHistoAction() {
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
51 CaloAxis *_axis;
52
53 };
54 #endif /* CALOAXISCHI2VSRIGHISTOACTION_H_ */
55 #endif /* NO_CALOAXIS */

  ViewVC Help
Powered by ViewVC 1.1.23