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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Thu Jul 8 14:00:22 2010 UTC (14 years, 5 months ago) by pam-fi
Branch: MAIN
CVS Tags: MergedFromV8_1, V9, HEAD
Changes since 1.4: +2 -1 lines
File MIME type: text/plain
Merged from branch V8 (tag MergedToHEAD_1). Tag before the merge: BeforeMergingFromV8_1.

1 pam-fi 1.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 pam-fi 1.4 /*! @brief An action that, given the rigidity bins, fills an integral histogram with the number of events for which
15     * the deflection error (sigma_defl) times a constant is smaller than minimum bin deflection=1/(maximum bin rigidity).
16 pam-fi 1.1 *
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 pam-fi 1.2 * maintained (in current implementation).
21 pam-fi 1.1 */
22 pam-fi 1.5 class TrkSigmaDeflHistoAction: public Histo1DAction<Float_t> {
23 pam-fi 1.1
24     public:
25    
26 pam-fi 1.3 /*! @brief Constructor.
27 pam-fi 1.1 *
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 pam-fi 1.4 * @param mode The mode of ROOT file creation (see documentation of TFile constructor).
32 pam-fi 1.5 * @param sigmaDeflFactor The factor to multiply sigma_deflection by before comparing it to the deflection.
33 pam-fi 1.2 * @param outRoot If true, the output file in ROOT format will be produced.
34     * @param outText If true, the output file in text format will be produced.
35 pam-fi 1.3 * in ROOT's reference guide).
36 pam-fi 1.1 * @param title The ROOT histogram title.
37     */
38 pam-fi 1.4 TrkSigmaDeflHistoAction(const char *actionName, TString outFileBase = "", TString mode = "UPDATE",
39     float sigmaDeflFactor = 1., bool outRoot = true, bool outText = true, TString title = "Sigma(deflection)");
40 pam-fi 1.1
41     /*! @brief Destructor */
42     ~TrkSigmaDeflHistoAction() {
43     }
44    
45     /*! @brief Fills histogram with the selected event.
46     *
47     * @param event The selected event.
48     */
49     void OnGood(PamLevel2 *event);
50 pam-fi 1.4
51     private:
52     float _sigmaDeflFactor;
53 pam-fi 1.1 };
54    
55     #endif /* TrkSigmaDeflHISTOACTION_H_ */

  ViewVC Help
Powered by ViewVC 1.1.23