/[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.1 by pam-fi, Wed Aug 12 14:18:37 2009 UTC revision 1.5 by pam-fi, Tue Oct 27 10:18:54 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 + collection's name + "-rig.txt")
40     *                    row for each rigidity bin.     *                    with a row for each rigidity bin. At the beginning of each row there will be two additional columns
41       *                    with the edges of the bin. Additionally, a ROOT file (outFileBase + collection's name +"-rig.root")
42       *                    will be produced, containing the efficiency graph.
43     * @param rigBinsFile The file with the rigidity bins.     * @param rigBinsFile The file with the rigidity bins.
44     * @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 #EffCollection_ErrMethod.
45       * @param owns If true, the collection will own the cuts and the actions, ie., it will
46       *             destroy them in its destructor.
47     */     */
48    EffRigCollection(const char *collectionName, TString outFileBase = "", TString rigBinsFile = "", bool absRig = false);    EffRigCollection(const char *collectionName, TString outFileBase = "", TString rigBinsFile = "", int errMethod =
49          EFFERR_ROOT, bool owns = true);
50    
51    /*! @brief Destructor. */    /*! @brief Destructor. */
52    ~EffRigCollection() {    ~EffRigCollection() {
# Line 59  public: Line 67  public:
67    
68  private:  private:
69    
   bool _absRig;  
70    vector<float> _bins;    vector<float> _bins;
71    vector<unsigned int> _selVector;    vector<unsigned int> _selVector;
72    vector<unsigned int> _detVector;    vector<unsigned int> _detVector;
73    
74    unsigned int _outUp, _outDown;    unsigned int _outUp, _outDown;
75    
76  };  };
77    
78  #endif /* EFFRIGCOLLECTION_H_ */  #endif /* EFFRIGCOLLECTION_H_ */

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.23