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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Sep 25 15:39:34 2009 UTC (15 years, 5 months ago) by pam-fi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -0 lines
File MIME type: text/plain
FILE REMOVED
Removed from repository (switch to the new Histo1DAction and Histo2DAction framework)

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 "../CollectionAction/CollectionAction.h"
13 #include <TH2F.h>
14
15 /*! @brief An action that, given the rigidity bins, fills the histogram with the number of events for which the deflection error (sigma_defl) is smaller than minimum bin deflection=1/(maximum bin rigidity). For each event, the content of ALL the rigidity bins, which satisfy the above condition, is increased by 1.
16 */
17 class TrkSigmaDeflHistoAction: public CollectionAction {
18
19 public:
20 /*! @brief Constructor.
21 *
22 * @param actionName The action's name.
23 * @param binning A vector containing the histogram binning in rigidity (with sign)
24 */
25
26 TrkSigmaDeflHistoAction(const char *actionName, std::vector<float> binning);
27
28 /*! @brief Destructor */
29 ~TrkSigmaDeflHistoAction() {
30 }
31
32 /*! @brief Fills histogram with the selected event.
33 *
34 * @param event The selected event.
35 */
36 void OnGood(PamLevel2 *event);
37
38 void Finalize() {
39 }
40
41 /*! @brief Returns the histogram.
42 *
43 * @return A reference to a vector containing the values of the bins of the histogram.
44 */
45 vector<UInt_t> &GetHisto() {
46 return _histogram;
47 }
48
49 private:
50
51 std::vector<float> _binning;
52 vector<UInt_t> _histogram;
53
54 };
55
56 #endif /* TrkSigmaDeflHISTOACTION_H_ */

  ViewVC Help
Powered by ViewVC 1.1.23