/[PAMELA software]/PamCut/CollectionActions/CaloDedxVsBetaHistoAction/CaloDedxVsBetaHistoAction.h
ViewVC logotype

Annotation of /PamCut/CollectionActions/CaloDedxVsBetaHistoAction/CaloDedxVsBetaHistoAction.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Wed Aug 5 13:57:22 2009 UTC (15 years, 4 months ago) by pam-fi
Branch: MAIN
File MIME type: text/plain
Added some new actions.

1 pam-fi 1.1 /*
2     * CaloDedxVsBetaHistoAction.h
3     *
4     * Created on: 03/ago/2009
5     * Author: Nicola Mori
6     */
7    
8     /*! @file CaloDedxVsBetaHistoAction.h The CaloDedxVsBetaHistoAction class declaration file. */
9    
10     #ifndef CALODEDXVSBETAHISTOACTION_H_
11     #define CALODEDXVSBETAHISTOACTION_H_
12    
13     #include "../CollectionAction/CollectionAction.h"
14     #include <TH2F.h>
15    
16     /*! @brief An action that fills a CALO dE/dx Vs beta (from TOF) histogram. */
17     class CaloDedxVsBetaHistoAction: public CollectionAction {
18     public:
19    
20     /*! @brief Constructor.
21     * *
22     * @param actionName The action's name.
23     * @param outFileName The output file name.
24     * @param plane The plane from which dE/dx is retrieved (range: [0,21]).
25     * @param view The view to use ( 0 = X, 1 = Y).
26     * @param mode The mode of ROOT file creation (see documentation of TFile constructor
27     * in ROOT's reference guide).
28     * @param minDedx The lower limit for dE/dx axis (in MIP).
29     * @param maxDedx The upper limit for dE/dx axis (in MIP).
30     * @param nBinsDedx The number of dE/dx bins.
31     * @param minBeta The lower limit for beta axis.
32     * @param maxBeta The upper limit for beta axis.
33     * @param nBinsBeta The number of beta bins.
34     */
35     CaloDedxVsBetaHistoAction(const char *actionName, TString outFileName, unsigned int plane, unsigned int view, TString mode = "UPDATE",
36     float minDedx = 0., float maxDedx = 50., unsigned int nBinsDedx = 100, float minBeta = 0., float maxBeta = 2.,
37     unsigned int nBinsBeta = 100);
38    
39     /*! @brief Destructor. */
40     ~CaloDedxVsBetaHistoAction() {
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     /*! @brief Writes the histogram to the output ROOT file.*/
50     void Finalize();
51    
52     /*! Returns the number of bad events.
53     *
54     * Bad events are those events for which no valid dE/dx information (dE/dx > 0 && dE/dx < 4090)
55     * can be found for any layer.
56     */
57     /*unsigned int GetNBadEvents() {
58     return _badEvents;
59     }*/
60     private:
61    
62     TString _outFileName;
63     unsigned int _plane;
64     unsigned int _view;
65     TH2F _histo;
66     TString _mode;
67    
68     };
69    
70     #endif /* CALODEDXVSBETAHISTOACTION_H_ */

  ViewVC Help
Powered by ViewVC 1.1.23