// AdcMitigationService.h

#ifndef AdcMitigationService_H
#define AdcMitigationService_H

// David Adams
// May 2016
//
// Interface for a service that modifies the signals for an ADC channel.

#include <iostream>
#include "dune/DuneInterface/Data/AdcChannelData.h"

class AdcMitigationService {

public:

  virtual ~AdcMitigationService() = default;

  // Extract the channel, signals and flags. All are pointer types so the caller can use null to
  // indicate any of the fields are not of interest.
  virtual int update(AdcChannelData& data) const =0;

  // Print parameters.
  virtual std::ostream& print(std::ostream& out =std::cout, std::string prefix ="") const =0;

};

#ifndef __CLING__
#include "art/Framework/Services/Registry/ServiceMacros.h"
DECLARE_ART_SERVICE_INTERFACE(AdcMitigationService, LEGACY)
#endif

#endif
