/[PAMELA software]/PamCut/CollectionActions/Histo1DActions/TofRigPHistoAction/TofRigPHistoAction.h
ViewVC logotype

Contents of /PamCut/CollectionActions/Histo1DActions/TofRigPHistoAction/TofRigPHistoAction.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Mar 23 17:27:31 2010 UTC (14 years, 8 months ago) by pam-fi
Branch: MAIN
CVS Tags: Root_V8, MergedToHEAD_1, nuclei_reproc, MergedFromV8_1, BeforeMergingFromV8_1, V9, HEAD
Branch point for: V8
Changes since 1.1: +13 -4 lines
File MIME type: text/plain
Documentation updated.

1 /*
2 * TofRigPHistoAction.h
3 *
4 * Created on: 2009-11-23
5 * Author: S. Ricciarini
6 */
7
8 /*! @file TofRigPHistoAction.h The TofRigPHistoAction class declaration file. */
9
10 #ifndef TOFRIGPHISTOACTION_H_
11 #define TOFRIGPHISTOACTION_H_
12
13 #include "../Histo1DAction/Histo1DAction.h"
14
15 /*! @brief An action that fills the histogram: TOF rigidity modulus (from beta measurement) assuming proton mass and charge.
16 */
17 class TofRigPHistoAction: public Histo1DAction<Float_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 * @param trackTof Pointer to an Int_t variable whic stores the number of the Tof Track to be used to compute
32 * beta. If NULL the standalone track will be used.
33 * @param resMax See documentation for ToFLevel2::CalcBeta. Default: 10. (equivalent to beta[12])
34 * @param qualCut See documentation for ToFLevel2::CalcBeta. Default: 10. (equivalent to beta[12])
35 * @param chi2Cut See documentation for ToFLevel2::CalcBeta. Default: 20. (equivalent to beta[12])
36 */
37 TofRigPHistoAction(const char *actionName, TString outFileBase = "", TString mode = "UPDATE", bool outRoot = true,
38 bool outText = true, TString title = "Rigidity modulus", Int_t *trackTof = NULL, Float_t resMax = 10.,
39 Float_t qualCut = 10., Float_t chi2Cut = 20.) :
40 Histo1DAction<Float_t> (actionName, title, outFileBase, mode, outRoot, outText), _trackTof(trackTof), _resMax(
41 resMax), _qualCut(qualCut), _chi2Cut(chi2Cut) {
42 }
43
44 /*! @brief Destructor */
45 ~TofRigPHistoAction() {
46 }
47
48 /*! @brief Fills histogram with the selected event.
49 *
50 * @param event The selected event.
51 */
52 void OnGood(PamLevel2 *event);
53
54 private:
55
56 Int_t *_trackTof;
57 Float_t _resMax, _qualCut, _chi2Cut;
58
59 };
60
61 #endif /* TOFRIGPHISTOACTION_H_ */

  ViewVC Help
Powered by ViewVC 1.1.23