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

Diff of /PamCut/Collections/EffRigCollection/EffRigCollection.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by pam-fi, Thu Sep 24 18:17:26 2009 UTC revision 1.3 by pam-fi, Fri Sep 25 15:02:01 2009 UTC
# Line 16  Line 16 
16   *   *
17   * This class inherits from #EffCollection: it has selection and detector4 cuts and actions, and it   * This class inherits from #EffCollection: it has selection and detector4 cuts and actions, and it
18   * computes and saves the integrated detector efficiency. Plus, it will compute and save the efficiency   * computes and saves the integrated detector efficiency. Plus, it will compute and save the efficiency
19   * for each rigidity bin given to the constructor.   * for each rigidity bin given to the constructor. The output consists of text files and a ROOT file
20     * with the efficiency graph.
21   *   *
22   * NOTE: to divide the events in rigidity bins, a physical track is required from which the   * NOTE: to divide the events in rigidity bins, a physical track is required from which the
23   * rigidity can be calculated. It is MANDATORY to add a #TrkPhSinCut object to the selection   * rigidity can be calculated. It is MANDATORY to add a #TrkPhSinCut object to the selection
# Line 31  public: Line 32  public:
32    
33    /*! @brief Constructor.    /*! @brief Constructor.
34     *     *
35     * @param collectionName The collection's name.     * @param collectionName The collection's name. The graph in the ROOT output will have the same name, so be
36       *                       careful to name the collection respecting the C++ rules for the names of the variables
37       *                       (eg. don't use - in the name) otherwise the graph will be unusable.
38     * @param outFileBase The output file base name. It will produce the same file as the parent class #EffCollection     * @param outFileBase The output file base name. It will produce the same file as the parent class #EffCollection
39     *                    with the total efficiency, plus a similar file (named outFileBase + "-eff-rig.txt") with a     *                    with the total efficiency, plus a similar file (named outFileBase + "-eff-rig.txt") with a
40     *                    row for each rigidity bin.     *                    row for each rigidity bin. Additionally, a ROOT file (outFileBase + "-eff-rig.root") will be
41       *                    produced, containing the efficiency graph.
42     * @param rigBinsFile The file with the rigidity bins.     * @param rigBinsFile The file with the rigidity bins.
43     * @param absRig If true, the absolute rigidity of the selected events will be considered..     * @param errMethod The method to use for error computation. Possible values are defined in #EffRigCollection_ErrMethod.
44     */     */
45    EffRigCollection(const char *collectionName, TString outFileBase = "", TString rigBinsFile = "", bool absRig = false);    EffRigCollection(const char *collectionName, TString outFileBase = "", TString rigBinsFile = "", int errMethod =
46          EFFRIG_ROOT);
47    
48    /*! @brief Destructor. */    /*! @brief Destructor. */
49    ~EffRigCollection() {    ~EffRigCollection() {
# Line 59  public: Line 64  public:
64    
65  private:  private:
66    
   bool _absRig;  
67    vector<float> _bins;    vector<float> _bins;
68    vector<unsigned int> _selVector;    vector<unsigned int> _selVector;
69    vector<unsigned int> _detVector;    vector<unsigned int> _detVector;
70    
71    unsigned int _outUp, _outDown;    unsigned int _outUp, _outDown;
72    
73  };  };
74    
75  #endif /* EFFRIGCOLLECTION_H_ */  #endif /* EFFRIGCOLLECTION_H_ */

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.23