/[PAMELA software]/PamCut/CollectionActions/Histo1DActions/TrkSigmaDeflHistoAction/TrkSigmaDeflHistoAction.h
ViewVC logotype

Contents of /PamCut/CollectionActions/Histo1DActions/TrkSigmaDeflHistoAction/TrkSigmaDeflHistoAction.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Sep 25 15:36:43 2009 UTC (15 years, 2 months ago) by pam-fi
Branch: MAIN
File MIME type: text/plain
Added to repository.

1 /*
2 * TrkSigmaDeflHistoAction.h
3 *
4 * Created on: 2009-06-17
5 * Author: S. Ricciarini
6 */
7 /*! @file TrkSigmaDeflHistoAction.h The TrkSigmaDeflHistoAction class declaration file. */
8
9 #ifndef TrkSigmaDeflHISTOACTION_H_
10 #define TrkSigmaDeflHISTOACTION_H_
11
12 #include "../Histo1DAction/Histo1DAction.h"
13
14 /*! @brief An action that, given the rigidity bins, fills the histogram with the number of events for which
15 * the deflection error (sigma_defl) is smaller than minimum bin deflection=1/(maximum bin rigidity).
16 *
17 * For each event, the content of ALL the rigidity bins, which satisfy the above condition, is increased by 1.
18 * Since this is quite different from what is done by Histo1DAction::Fill(), the OnGodd() implementation
19 * is customary and doesn't call Fill(). Notice that this implies that no overflow nor underflow counter is
20 * maintained (i current implementation).
21 */
22 class TrkSigmaDeflHistoAction: public Histo1DAction<Int_t> {
23
24 public:
25
26 /*! @brief Constructor.
27 *
28 * Binning is read from a text file.
29 *
30 * @param actionName The action's name.
31 * @param rigBinsFile The file containing the bins (with sign, eventually; from lowest to highest).
32 * @param outFileBase The file base name for the ROOT histogram output (".root" will be appended).
33 * If "", no ROOT output will be produced.
34 * @param mode The mode of ROOT file creation (see documentation of TFile constructor
35 * in ROOT's reference guide).
36 * @param title The ROOT histogram title.
37 */
38 TrkSigmaDeflHistoAction(const char *actionName, TString outFileBase = "", TString mode = "UPDATE",
39 bool outRoot = true, bool outText = true, TString title = "Sigma(deflection)");
40
41
42 /*! @brief Destructor */
43 ~TrkSigmaDeflHistoAction() {
44 }
45
46 /*! @brief Fills histogram with the selected event.
47 *
48 * @param event The selected event.
49 */
50 void OnGood(PamLevel2 *event);
51 };
52
53 #endif /* TrkSigmaDeflHISTOACTION_H_ */

  ViewVC Help
Powered by ViewVC 1.1.23