/* * TrkRigHistoAction.h * * Created on: 2009-06-05 * Author: S. Ricciarini */ /*! @file TrkRigHistoAction.h The TrkRigHistoAction class declaration file. */ #ifndef TRKRIGHISTOACTION_H_ #define TRKRIGHISTOACTION_H_ #include "../CollectionAction/CollectionAction.h" #include /*! @brief An action that fills the histogram: TRK rigidity (with sign). */ class TrkRigHistoAction: public CollectionAction { public: /*! @brief Constructor. * * @param actionName The action's name. * @param binning A vector containing the histogram binning in rigidity (with sign) */ TrkRigHistoAction(const char *actionName, std::vector binning); /*! @brief Destructor */ ~TrkRigHistoAction() { } /*! @brief Fills histogram with the selected event. * * @param event The selected event. */ void OnGood(PamLevel2 *event); void Finalize() { } /*! @brief Returns the histogram. * * @return A reference to a vector containing the values of the bins of the histogram. */ vector &GetHisto() { return _histogram; } private: std::vector _binning; vector _histogram; }; #endif /* TRKRIGHISTOACTION_H_ */