/[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.1 - (show annotations) (download)
Mon Jan 18 16:28:28 2010 UTC (14 years, 10 months ago) by pam-fi
Branch: MAIN
File MIME type: text/plain
Added to repository.

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 */
32 TofRigPHistoAction(const char *actionName, TString outFileBase = "", TString mode = "UPDATE", bool outRoot = true, bool outText = true, TString title = "Rigidity modulus", Int_t *trackTof=NULL, Float_t resMax=10., Float_t qualCut=10., Float_t chi2Cut=20.):
33 Histo1DAction<Float_t> (actionName, title, outFileBase, mode, outRoot, outText), _trackTof(trackTof), _resMax(resMax), _qualCut(qualCut), _chi2Cut(chi2Cut) {}
34
35 /*! @brief Destructor */
36 ~TofRigPHistoAction() {
37 }
38
39 /*! @brief Fills histogram with the selected event.
40 *
41 * @param event The selected event.
42 */
43 void OnGood(PamLevel2 *event);
44
45 private:
46
47 Int_t *_trackTof;
48 Float_t _resMax, _qualCut, _chi2Cut;
49
50 };
51
52 #endif /* TOFRIGPHISTOACTION_H_ */

  ViewVC Help
Powered by ViewVC 1.1.23