#ifndef CalibMuon_DTCalibration_DTVDriftMeanTimer_h
#define CalibMuon_DTCalibration_DTVDriftMeanTimer_h

/** \class DTVDriftMeanTimer
 *  Concrete implementation of a DTVDriftBaseAlgo.
 *  Computes vDrift using the Mean Timer algorithm.
 *
 *  \author A. Vilela Pereira
 */

#include "CalibMuon/DTCalibration/interface/DTVDriftBaseAlgo.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Framework/interface/ConsumesCollector.h"

class TFile;
class DTMeanTimerFitter;

namespace dtCalibration {

  class DTVDriftMeanTimer : public DTVDriftBaseAlgo {
  public:
    DTVDriftMeanTimer(edm::ParameterSet const&, edm::ConsumesCollector);
    ~DTVDriftMeanTimer() override;

    void setES(const edm::EventSetup& setup) override;
    DTVDriftData compute(const DTSuperLayerId&) override;

  private:
    TFile* rootFile_;
    DTMeanTimerFitter* fitter_;
  };

}  // namespace dtCalibration
#endif
