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

Contents of /PamCut/CollectionActions/TrkDedxVsRigHistoAction/TrkDedxVsRigHistoAction.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Jun 10 12:41:42 2009 UTC (16 years, 6 months ago) by pam-fi
Branch: MAIN
File MIME type: text/plain
Added to repository.

1 /*
2 * TrkDedxVsRigHistoAction.h
3 *
4 * Created on: 9-giu-2009
5 * Author: Nicola Mori
6 */
7
8 /*! @file TrkDedxVsRigHistoAction.h The TrkDedxVsRigHistoAction class declaration file. */
9
10 #include "../CollectionAction/CollectionAction.h"
11 #include <TH2F.h>
12
13 #ifndef TRKDEDXVSRIGHISTOACTION_H_
14 #define TRKDEDXVSRIGHISTOACTION_H_
15
16 class TrkDedxVsRigHistoAction: public CollectionAction {
17 public:
18
19 /*! @brief Constructor.
20 * *
21 * @param actionName The action's name.
22 * @param outFileName The output file name.
23 * @param mode The mode of ROOT file creation (see documentation of TFile constructor
24 * in ROOT's reference guide).
25 * @param minDedx The lower limit for dE/dx axis (in MIP).
26 * @param maxdEdx The upper limit for dE/dx axis (in MIP).
27 * @param nBinsDedx The number of dE/dx bins.
28 * @param minR The lower limit for rigidity axis (in GV).
29 * @param maxR The upper limit for rigidity axis (in GV).
30 * @param nBinsR The number of rigidity bins.
31 */
32 TrkDedxVsRigHistoAction(const char *actionName, TString outFileName, TString mode = "UPDATE", float minDedx = 0.,
33 float maxDedx = 50., unsigned int nBinsDedx = 100, float minR = -100., float maxR = 100., unsigned int nBinsR = 100);
34
35 /*! @brief Destructor. */
36 ~TrkDedxVsRigHistoAction() {
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 /*! @brief Writes the histogram to the output ROOT file.*/
46 void Finalize();
47 private:
48
49 TString _outFileName;
50 TH2F _histo;
51 TString _mode;
52
53 };
54 #endif /* TRKDEDXVSRIGHISTOACTION_H_ */

  ViewVC Help
Powered by ViewVC 1.1.23