FixedDetPedestalService_service.cc
Go to the documentation of this file.
1 // FixedDetPedestalService_service.cc
2 
7 
8 //**********************************************************************
9 
12 : FixedDetPedestalService(pset.get<fhicl::ParameterSet>("FixedDetPedestal")) { }
13 
14 //**********************************************************************
15 
18  m_PedMeanU = pset.get<float>("PedMeanU");
19  m_PedMeanV = pset.get<float>("PedMeanV");
20  m_PedMeanZ = pset.get<float>("PedMeanZ");
21  m_PedRmsU = pset.get<float>("PedRmsU");
22  m_PedRmsV = pset.get<float>("PedRmsV");
23  m_PedRmsZ = pset.get<float>("PedRmsZ");
24  m_PedMeanErrU = pset.get<float>("PedMeanErrU");
25  m_PedMeanErrV = pset.get<float>("PedMeanErrV");
26  m_PedMeanErrZ = pset.get<float>("PedMeanErrZ");
27  m_PedRmsErrU = pset.get<float>("PedRmsErrU");
28  m_PedRmsErrV = pset.get<float>("PedRmsErrV");
29  m_PedRmsErrZ = pset.get<float>("PedRmsErrZ");
30 }
31 
32 //**********************************************************************
33 
35  if ( m_hgeo->View(ch) == geo::kZ ) return m_PedMeanZ;
36  else if ( m_hgeo->View(ch) == geo::kU ) return m_PedMeanU;
37  else if ( m_hgeo->View(ch) == geo::kV ) return m_PedMeanV;
38  return -999.0;
39 }
40 
41 //**********************************************************************
42 
44  return m_PedRmsZ;
45 }
46 
47 //**********************************************************************
48 
50  return m_PedMeanErrZ;
51 }
52 
53 //**********************************************************************
54 
56  return m_PedRmsErrZ;
57 }
58 
59 //**********************************************************************
60 
63  return *this;
64 }
65 
66 //**********************************************************************
67 
69 
70 //**********************************************************************
float PedRmsErr(raw::ChannelID_t ch) const
art::ServiceHandle< geo::Geometry > m_hgeo
Planes which measure V.
Definition: geo_types.h:130
float PedMeanErr(raw::ChannelID_t ch) const
Planes which measure Z direction.
Definition: geo_types.h:132
art framework interface to geometry description
Planes which measure U.
Definition: geo_types.h:129
float PedMean(raw::ChannelID_t ch) const
Retrieve pedestal information.
T get(std::string const &key) const
Definition: ParameterSet.h:271
FixedDetPedestalService(const fhicl::ParameterSet &pset, art::ActivityRegistry &reg)
View_t View(geo::PlaneID const &pid) const
Returns the view (wire orientation) on the channels of specified TPC plane.
const lariov::DetPedestalProvider & DoGetPedestalProvider() const
unsigned int ChannelID_t
Type representing the ID of a readout channel.
Definition: RawTypes.h:28
auto const & get(AssnsNode< L, R, D > const &r)
Definition: AssnsNode.h:115
float PedRms(raw::ChannelID_t ch) const
#define DEFINE_ART_SERVICE_INTERFACE_IMPL(svc, iface)