DPhaseFixedDetPedestalService_service.cc
Go to the documentation of this file.
1 // DPhaseFixedDetPedestalService_service.cc
2 
7 
8 //**********************************************************************
9 
12 : DPhaseFixedDetPedestalService(pset.get<fhicl::ParameterSet>("FixedDetPedestal")) { }
13 
14 //**********************************************************************
15 
18  m_PedMeanX = pset.get<float>("PedMeanX");
19  m_PedMeanY = pset.get<float>("PedMeanY");
20  m_PedMeanZ = pset.get<float>("PedMeanZ");
21  m_PedRmsX = pset.get<float>("PedRmsX");
22  m_PedRmsY = pset.get<float>("PedRmsY");
23  m_PedRmsZ = pset.get<float>("PedRmsZ");
24  m_PedMeanErrX = pset.get<float>("PedMeanErrX");
25  m_PedMeanErrY = pset.get<float>("PedMeanErrY");
26  m_PedMeanErrZ = pset.get<float>("PedMeanErrZ");
27  m_PedRmsErrX = pset.get<float>("PedRmsErrX");
28  m_PedRmsErrY = pset.get<float>("PedRmsErrY");
29  m_PedRmsErrZ = pset.get<float>("PedRmsErrZ");
30 }
31 
32 //**********************************************************************
33 
35  if ( m_hgeo->View(ch) == geo::kX ) return m_PedMeanX;
36  else if ( m_hgeo->View(ch) == geo::kY ) return m_PedMeanY;
37  else if ( m_hgeo->View(ch) == geo::kZ ) return m_PedMeanZ;
38  return -999.0;
39 }
40 
41 //**********************************************************************
42 
44  return m_PedRmsZ;
45 }
46 
47 //**********************************************************************
48 
50  if ( m_hgeo->View(ch) == geo::kX ) return m_PedMeanErrX;
51  else if ( m_hgeo->View(ch) == geo::kY ) return m_PedMeanErrY;
52  else if ( m_hgeo->View(ch) == geo::kZ ) return m_PedMeanErrZ;
53  return -999.0;
54 }
55 
56 //**********************************************************************
57 
59  if ( m_hgeo->View(ch) == geo::kX ) return m_PedRmsErrX;
60  else if ( m_hgeo->View(ch) == geo::kY ) return m_PedRmsErrY;
61  else if ( m_hgeo->View(ch) == geo::kZ ) return m_PedRmsErrZ;
62  return m_PedRmsErrZ;
63 }
64 
65 //**********************************************************************
66 
69  return *this;
70 }
71 
72 //**********************************************************************
73 
75 
76 //**********************************************************************
float PedMean(raw::ChannelID_t ch) const
Retrieve pedestal information.
const lariov::DetPedestalProvider & DoGetPedestalProvider() const
Planes which measure X direction.
Definition: geo_types.h:134
Planes which measure Z direction.
Definition: geo_types.h:132
Planes which measure Y direction.
Definition: geo_types.h:133
art framework interface to geometry description
float PedMeanErr(raw::ChannelID_t ch) const
T get(std::string const &key) const
Definition: ParameterSet.h:271
View_t View(geo::PlaneID const &pid) const
Returns the view (wire orientation) on the channels of specified TPC plane.
art::ServiceHandle< geo::Geometry > m_hgeo
unsigned int ChannelID_t
Type representing the ID of a readout channel.
Definition: RawTypes.h:28
DPhaseFixedDetPedestalService(const fhicl::ParameterSet &pset, art::ActivityRegistry &reg)
auto const & get(AssnsNode< L, R, D > const &r)
Definition: AssnsNode.h:115
#define DEFINE_ART_SERVICE_INTERFACE_IMPL(svc, iface)