--- PamCut/CollectionActions/Histo1DActions/TrkSigmaDeflHistoAction/TrkSigmaDeflHistoAction.h 2009/10/01 10:35:12 1.2 +++ PamCut/CollectionActions/Histo1DActions/TrkSigmaDeflHistoAction/TrkSigmaDeflHistoAction.h 2010/05/03 14:33:48 1.4 @@ -11,8 +11,8 @@ #include "../Histo1DAction/Histo1DAction.h" -/*! @brief An action that, given the rigidity bins, fills the histogram with the number of events for which - * the deflection error (sigma_defl) is smaller than minimum bin deflection=1/(maximum bin rigidity). +/*! @brief An action that, given the rigidity bins, fills an integral histogram with the number of events for which + * the deflection error (sigma_defl) times a constant is smaller than minimum bin deflection=1/(maximum bin rigidity). * * For each event, the content of ALL the rigidity bins, which satisfy the above condition, is increased by 1. * Since this is quite different from what is done by Histo1DAction::Fill(), the OnGodd() implementation @@ -23,23 +23,19 @@ public: - /*! @brief Constructor. - * - * Binning is read from a text file. + /*! @brief Constructor. * * @param actionName The action's name. - * @param rigBinsFile The file containing the bins (with sign, eventually; from lowest to highest). * @param outFileBase The file base name for the ROOT histogram output (".root" will be appended). * If "", no ROOT output will be produced. - * @param mode The mode of ROOT file creation (see documentation of TFile constructor - * in ROOT's reference guide). + * @param mode The mode of ROOT file creation (see documentation of TFile constructor). * @param outRoot If true, the output file in ROOT format will be produced. * @param outText If true, the output file in text format will be produced. + * in ROOT's reference guide). * @param title The ROOT histogram title. */ TrkSigmaDeflHistoAction(const char *actionName, TString outFileBase = "", TString mode = "UPDATE", - bool outRoot = true, bool outText = true, TString title = "Sigma(deflection)"); - + float sigmaDeflFactor = 1., bool outRoot = true, bool outText = true, TString title = "Sigma(deflection)"); /*! @brief Destructor */ ~TrkSigmaDeflHistoAction() { @@ -50,6 +46,9 @@ * @param event The selected event. */ void OnGood(PamLevel2 *event); + +private: + float _sigmaDeflFactor; }; #endif /* TrkSigmaDeflHISTOACTION_H_ */