PhotonCalibratorProtoDUNESP.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file PhotonCalibratorProtoDUNESP.h
3 //
4 // \brief ProtoDUNESP service provider applying a flat scale factor to all optical hits.
5 //
6 // \author ahimmel@fnal.gov
7 //
8 ////////////////////////////////////////////////////////////////////////
9 
10 
11 #ifndef PHOTONCALIBRATORPROTODUNESP_H
12 #define PHOTONCALIBRATORPROTODUNESP_H
13 
15 
16 // ART includes
17 #include "fhiclcpp/ParameterSet.h"
21 
22 
23 namespace calib {
24 
26  {
27  public:
29 
30  // Override base class functions
31  double PE(double adcs, int opchannel) const override;
32  bool UseArea() const override { return true; } // ProtoDUNE always uses area
33 
34  /// Need a 3D position because result depends on position along length of
35  /// bar. This is going to be pretty imprecise even so.
36  // virtual double GeV(double PE, int opchannel, TVector3 pos) override;
37 
38  private:
39  std::vector<float> fSPESizes;
40  std::vector<float> fSPEShifts;
41  std::vector<int> fBadChannels;
42 
43 
44  }; // class PhotonCalibratorProtoDUNESP
45 }
46 
47 //DECLARE_ART_SERVICE_INTERFACE_IMPL(calib::PhotonCalibratorProtoDUNESP, calib::IPhotonCalibrator, LEGACY)
48 
49 
50 #endif
PhotonCalibratorProtoDUNESP(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
double PE(double adcs, int opchannel) const override