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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Sep 25 15:36:44 2009 UTC (15 years, 2 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
File MIME type: text/plain
Error occurred while calculating annotation data.
Added to repository.

1 /*
2 * TrkDOFVsRigHistoAction.h
3 *
4 * Created on: 01/set/2009
5 * Author: Nicola Mori
6 */
7
8 /*! @file TrkDOFVsRigHistoAction.h The TrkDOFVsRigHistoAction class declaration file. */
9
10 #ifndef TRKDOFVSRIGHISTOACTION_H_
11 #define TRKDOFVSRIGHISTOACTION_H_
12
13 #include "../Histo2DAction/Histo2DAction.h"
14
15 /*! @brief An action that fills a \#DOF Vs. Rigidity histogram.
16 *
17 * The number of degrees of freedom of an event is the number of clusters along the track
18 * minus 5 (which is the number of parameters of the track).
19 */
20 class TrkDOFVsRigHistoAction: public Histo2DAction<Int_t> {
21
22 public:
23
24 /*! @brief Constructor.
25 *
26 * @param actionName The action's name.
27 * @param outFileBase The file base name for the ROOT histogram output (".root" will be appended).
28 * If "", no ROOT output will be produced.
29 * @param mode The mode of ROOT file creation (see documentation of TFile constructor
30 * in ROOT's reference guide).
31 * @param outRoot If true, an output ROOT file named outFileBase + ".root" will be produced.
32 * @param outText If true, an output text file named outFileBase + ".txt" will be produced. It will overwrite an
33 * eventually existing file with the same name.
34 * @param title The ROOT histogram title.
35 */
36 TrkDOFVsRigHistoAction(const char *actionName, TString outFileBase = "", TString mode = "UPDATE",
37 bool outRoot = true, bool outText = true, TString title = "TRK DOF Vs. Rigidity");
38
39 /*! @brief Destructor */
40 ~TrkDOFVsRigHistoAction() {
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 };
50
51 #endif /* TRKDOFVSRIGHISTOACTION_H_ */

  ViewVC Help
Powered by ViewVC 1.1.23