--- PamCut/PamCutBase/PamCutBase.h 2009/05/27 13:30:09 1.1 +++ PamCut/PamCutBase/PamCutBase.h 2009/06/17 12:58:00 1.4 @@ -119,7 +119,7 @@ */ virtual void Setup(PamLevel2 *events); - /*! @brief The post-analysis task definition. + /*! @brief The post-analysis task definition. * * This method is automatically called by Process() after the event selection has been * performed; override this in derived classes to perform post-analysis tasks like writing @@ -173,10 +173,10 @@ /*! @brief Constructor. * - * @param cutName The cut's name. + * @param collectionName The collection's name. */ - PamCutCollection(const char *cutName) : - PamCut(cutName) { + PamCutCollection(const char *collectionName) : + PamCut(collectionName) { } /*! @brief Destructor. */ @@ -197,6 +197,7 @@ * Like in the mother class, this method performs a basic check on the current event: it calls * Check() for each cut previously added with AddCut(), exiting if one of them is not satisfied. * + * @param event The event to analyze. * @return the index of the failed cut (range: [0, \#cuts-1], see AddCut()); #CUTOK if the event * satisfies all the cuts. */ @@ -223,13 +224,22 @@ * */ PamCut *GetCut(unsigned int iCut); + /*! @brief Searches for a cut by name. + * + * The return value of this method is a pointer to a PamCut object; hence, to use the specific method of + * derived cuts it must be cast to the proper cut class. + * + * @param cutName The name of the cut to search for. + * @return pointer to the iCut-th cut; NULL if the specified cut cannot be found or if no cuts are present. + * */ + PamCut *GetCut(const char *cutName); + /*! @brief The number of cuts contained in the collection. * * @return The number of cuts */ unsigned int GetSize(); - /*! @brief The pre-analysis task definition. * * This override of the Setup() method calls Setup() for the base class PamCut, and subsequently for each cut