/[PAMELA software]/PamCut/Collections/EffBetaCollection/EffBetaCollection.h
ViewVC logotype

Annotation of /PamCut/Collections/EffBetaCollection/EffBetaCollection.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Mon Sep 5 12:57:56 2011 UTC (13 years, 3 months ago) by pam-fi
Branch: MAIN
CVS Tags: V9, HEAD
File MIME type: text/plain
Added to repository.

1 pam-fi 1.1 /*
2     * EffBetaCollection.h
3     *
4     * Created on: 20/jul/2011
5     * Author: Nicola Mori
6     */
7    
8     /*! @file EffBetaCollection.h The EffBetaCollection class definition file. */
9    
10     #ifndef EFFBETACOLLECTION_H_
11     #define EFFBETACOLLECTION_H_
12    
13     #include "../BinnedEffCollection/BinnedEffCollection.h"
14    
15     /*! @brief A beta binned efficiency collection
16     *
17     * This class inherits from #BinnedEffCollection: it only implements the #GetBinValue method
18     * to return event rigidity with sign.
19     *
20     */
21     class EffBetaCollection: public BinnedEffCollection {
22    
23     public:
24    
25     /*! @brief Constructor.
26     *
27     * The parameter standAlone let the user choose which beta measurement use for binning. If standAlone == true,
28     * beta[12] from TOF standAlone track will be used; otherwise, beta[12] from physical tracker's track is used.
29     * Note that in the latter case a physical track must exist, so somewhere in the cut chain a #TrkPhSinCut must
30     * be placed to ensure this condition.
31     *
32     * @param collectionName The collection's name. The graph in the ROOT output will have the same name, so be
33     * careful to name the collection respecting the C++ rules for the names of the variables
34     * (eg. don't use - in the name) otherwise the graph will be unusable.
35     * @param outFileBase The output file base name. It will produce the same file as the parent class #EffCollection
36     * with the total efficiency, plus a similar file (named outFileBase + collection's name + "-rig.txt")
37     * with a row for each rigidity bin. At the beginning of each row there will be two additional columns
38     * with the edges of the bin. Additionally, a ROOT file (outFileBase + collection's name +"-rig.root")
39     * will be produced, containing the efficiency graph.
40     * @param betaBinsFile The file with the beta bins.
41     * @param standAlone If true, beta[12] standaone will be used; otherwise beta[12] from physical track.
42     * @param errMethod The method to use for error computation. Possible values are defined in #EffCollection_ErrMethod.
43     * @param owns If true, the collection will own the cuts and the actions, ie., it will
44     * destroy them in its destructor.
45     */
46     EffBetaCollection(const char *collectionName, TString outFileBase = "", TString betaBinsFile = "", bool standAlone =
47     true, int errMethod = EFFERR_SERGIO, bool owns = true);
48    
49     /*! @brief Destructor. */
50     ~EffBetaCollection() {
51    
52     }
53    
54     /*! @brief The value of binning parameter (beta).
55     *
56     * @param event The current event.
57     * @return The beta of current event.
58     */
59     float GetBinValue(PamLevel2 *event);
60    
61     private:
62    
63     bool _standAlone;
64     };
65    
66     #endif /* EFFBETACOLLECTION_H_ */

  ViewVC Help
Powered by ViewVC 1.1.23