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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Mar 10 08:46:46 2010 UTC (14 years, 9 months ago) by pam-fi
Branch: MAIN
File MIME type: text/plain
Added to repository.

1 /*
2 * TrkDedxVsBetaHistoAction.h
3 *
4 * Created on: 18-feb-2010
5 * Author: Nicola Mori
6 */
7
8 /*! @file TrkDedxVsBetaHistoAction.h The TrkDedxVsBetaHistoAction class declaration file. */
9
10 #include "../Histo2DAction/Histo2DAction.h"
11
12 #ifndef TRKDEDXVSBETAHISTOACTION_H_
13 #define TRKDEDXVSBETAHISTOACTION_H_
14
15 enum WHICHBETA {
16 BETA12, BETA12_STANDALONE, BETABEST, BETABEST_STANDALONE
17 };
18
19 /*! @brief An action that fills a TRK dE/dx Vs beta histogram.
20 *
21 * beta can be recomputed by using the appropriate input parameters of the constructor
22 */
23 class TrkDedxVsBetaHistoAction: public Histo2DAction<Int_t> {
24 public:
25
26 /*! @brief Constructor.
27 *
28 * @param actionName The action's name.
29 * @param outFileBase The file base name for the ROOT histogram output (".root" will be appended).
30 * If "", no ROOT output will be produced.
31 * @param mode The mode of ROOT file creation (see documentation of TFile constructor
32 * in ROOT's reference guide).
33 * @param whichBeta the beta to use. Actually BETA12 and BETABEST are supported.
34 * @param outRoot If true, an output ROOT file named outFileBase + ".root" will be produced.
35 * @param outText If true, an output text file named outFileBase + ".txt" will be produced. It will overwrite an
36 * eventually existing file with the same name.
37 * @param title The ROOT histogram title.
38 */
39 TrkDedxVsBetaHistoAction(const char *actionName, TString outFileBase = "", TString mode = "UPDATE", int whichBeta =
40 BETA12, bool outRoot = true, bool outText = true,
41 TString title = "TRK dE/dx Vs. #beta");
42
43 /*! @brief Destructor. */
44 ~TrkDedxVsBetaHistoAction() {
45 }
46
47 /*! @brief Fills histogram with the selected event.
48 *
49 * @param event The selected event.
50 */
51 void OnGood(PamLevel2 *event);
52
53 private:
54
55 int _whichBeta;
56
57 };
58 #endif /* TRKDEDXVSBETAHISTOACTION_H_ */

  ViewVC Help
Powered by ViewVC 1.1.23