StaticMapService.h
Go to the documentation of this file.
1 #ifndef CHANNELMAPSERVICE__H
2 #define CHANNELMAPSERVICE__H
3 ////////////////////////////////////////////////////////////////////////
4 /// \file ChannelMap_service.cc
5 ///
6 ///
7 /// \author Andrey Sheshukov
8 ////////////////////////////////////////////////////////////////////////
9 
15 #include "fhiclcpp/ParameterSet.h"
20 
22 
24 
25 namespace novaddt{
26  class StaticMapService;
27 }
28 
29 //A service for access to static noise hit map object
30 
32  public:
34  //get map for reading
35  const novaddt::calib::FDHitMap& getMap() const{return fMap;}
36  //map IO from/to file
38  void readMapFromFile(const std::string& fname);
39  protected:
40  void preProcessEvent(const art::Event& event);
41  private:
42  std::string fMapSource; //< filename to read map for each run
45 };
46 
48 #endif
#define DECLARE_ART_SERVICE(svc, scope)
Definition: ServiceMacros.h:91
void preProcessEvent(const art::Event &event)
StaticMapService(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
const novaddt::calib::FDHitMap & getMap() const
void readMapFromFile(const std::string &fname)
enum BeamMode string