--- PamCut/Collections/EffCollection/EffCollection.h 2009/08/11 08:37:18 1.1 +++ PamCut/Collections/EffCollection/EffCollection.h 2009/08/14 10:32:14 1.3 @@ -24,6 +24,7 @@ * This class implements specific methods to add selection and detector cuts; cuts added * with the standard #AddCut method will be treated as detector cuts. The same for actions. * + * */ class EffCollection: public VerboseCollection { @@ -32,15 +33,12 @@ /*! @brief Constructor. * * @param collectionName The collection's name. - * @param rigBinsFile The file with the rigidity bins. - * @param outFileBase The output file base name. If != "", 3 text files will be produced: - * - outFileBase + "-sel.txt": events surviving the selection cuts for each bin; - * - outFileBase + "-det.txt": events surviving the detector cuts for each bin; - * - outFileBase + "-eff.txt": efficiency for each bin (will be 0 if no event survives selection cuts). - * @param absRig If true, the absolute rigidity of the selected events will be considered. - * + * @param outFileBase The output file base name. If "", no file output will be produced; otherwise, + * a file named outFilebase + "-eff.txt" will be produced, containing the number of + * events surviving the detector cuts (1st column), the selection cuts (2nd column) + * and the efficiency (3rd column). */ - EffCollection(const char *collectionName, TString rigBinsFile, TString &outFileBase = "", bool absRig = false); + EffCollection(const char *collectionName, TString outFileBase = ""); /*! @brief Destructor. */ ~EffCollection() { @@ -115,17 +113,23 @@ */ void Finalize(); -private: +protected: + /*! This collection contains the selection cuts. */ SmartCollection _selCollection; + + /*! This collection contains the detector cuts. */ SmartCollection _detCollection; + + /*! The base name of the output file. */ TString _outFileBase; - bool _absRig; - vector _bins; - vector _sel; - vector _det; - unsigned int _outUp, _outDown; + /*! The number of events surviving the detector cuts. */ + unsigned int _det; + + /*! The number of events surviving the selection cuts. */ + unsigned int _sel; + }; #endif /* EFFCOLLECTION_H_ */