Public Member Functions | Private Member Functions | Private Attributes | List of all members
DPhaseFixedDetPedestalService Class Reference

#include <DPhaseFixedDetPedestalService.h>

Inheritance diagram for DPhaseFixedDetPedestalService:
lariov::DetPedestalService lariov::DetPedestalProvider lar::UncopiableAndUnmovableClass

Public Member Functions

 DPhaseFixedDetPedestalService (const fhicl::ParameterSet &pset, art::ActivityRegistry &reg)
 
 DPhaseFixedDetPedestalService (const fhicl::ParameterSet &pset)
 
float PedMean (raw::ChannelID_t ch) const
 Retrieve pedestal information. More...
 
float PedRms (raw::ChannelID_t ch) const
 
float PedMeanErr (raw::ChannelID_t ch) const
 
float PedRmsErr (raw::ChannelID_t ch) const
 
- Public Member Functions inherited from lariov::DetPedestalService
virtual ~DetPedestalService ()=default
 
const DetPedestalProviderGetPedestalProvider () const
 
DetPedestalProvider const * provider () const
 
- Public Member Functions inherited from lariov::DetPedestalProvider
virtual ~DetPedestalProvider ()=default
 

Private Member Functions

const lariov::DetPedestalProviderDoGetPedestalProvider () const
 

Private Attributes

art::ServiceHandle< geo::Geometrym_hgeo
 
float m_PedMeanX
 
float m_PedMeanY
 
float m_PedMeanZ
 
float m_PedRmsX
 
float m_PedRmsY
 
float m_PedRmsZ
 
float m_PedMeanErrX
 
float m_PedMeanErrY
 
float m_PedMeanErrZ
 
float m_PedRmsErrX
 
float m_PedRmsErrY
 
float m_PedRmsErrZ
 

Additional Inherited Members

- Public Types inherited from lariov::DetPedestalService
using provider_type = DetPedestalProvider
 

Detailed Description

Definition at line 23 of file DPhaseFixedDetPedestalService.h.

Constructor & Destructor Documentation

DPhaseFixedDetPedestalService::DPhaseFixedDetPedestalService ( const fhicl::ParameterSet pset,
art::ActivityRegistry reg 
)

Definition at line 11 of file DPhaseFixedDetPedestalService_service.cc.

12 : DPhaseFixedDetPedestalService(pset.get<fhicl::ParameterSet>("FixedDetPedestal")) { }
T get(std::string const &key) const
Definition: ParameterSet.h:271
DPhaseFixedDetPedestalService(const fhicl::ParameterSet &pset, art::ActivityRegistry &reg)
DPhaseFixedDetPedestalService::DPhaseFixedDetPedestalService ( const fhicl::ParameterSet pset)

Definition at line 17 of file DPhaseFixedDetPedestalService_service.cc.

17  {
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 }
T get(std::string const &key) const
Definition: ParameterSet.h:271

Member Function Documentation

const lariov::DetPedestalProvider & DPhaseFixedDetPedestalService::DoGetPedestalProvider ( ) const
privatevirtual

Implements lariov::DetPedestalService.

Definition at line 68 of file DPhaseFixedDetPedestalService_service.cc.

68  {
69  return *this;
70 }
float DPhaseFixedDetPedestalService::PedMean ( raw::ChannelID_t  ch) const
virtual

Retrieve pedestal information.

Implements lariov::DetPedestalProvider.

Definition at line 34 of file DPhaseFixedDetPedestalService_service.cc.

34  {
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 }
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
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
float DPhaseFixedDetPedestalService::PedMeanErr ( raw::ChannelID_t  ch) const
virtual

Implements lariov::DetPedestalProvider.

Definition at line 49 of file DPhaseFixedDetPedestalService_service.cc.

49  {
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 }
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
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
float DPhaseFixedDetPedestalService::PedRms ( raw::ChannelID_t  ch) const
virtual
float DPhaseFixedDetPedestalService::PedRmsErr ( raw::ChannelID_t  ch) const
virtual

Implements lariov::DetPedestalProvider.

Definition at line 58 of file DPhaseFixedDetPedestalService_service.cc.

58  {
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 }
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
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

Member Data Documentation

art::ServiceHandle<geo::Geometry> DPhaseFixedDetPedestalService::m_hgeo
private

Definition at line 45 of file DPhaseFixedDetPedestalService.h.

float DPhaseFixedDetPedestalService::m_PedMeanErrX
private

Definition at line 54 of file DPhaseFixedDetPedestalService.h.

float DPhaseFixedDetPedestalService::m_PedMeanErrY
private

Definition at line 55 of file DPhaseFixedDetPedestalService.h.

float DPhaseFixedDetPedestalService::m_PedMeanErrZ
private

Definition at line 56 of file DPhaseFixedDetPedestalService.h.

float DPhaseFixedDetPedestalService::m_PedMeanX
private

Definition at line 48 of file DPhaseFixedDetPedestalService.h.

float DPhaseFixedDetPedestalService::m_PedMeanY
private

Definition at line 49 of file DPhaseFixedDetPedestalService.h.

float DPhaseFixedDetPedestalService::m_PedMeanZ
private

Definition at line 50 of file DPhaseFixedDetPedestalService.h.

float DPhaseFixedDetPedestalService::m_PedRmsErrX
private

Definition at line 57 of file DPhaseFixedDetPedestalService.h.

float DPhaseFixedDetPedestalService::m_PedRmsErrY
private

Definition at line 58 of file DPhaseFixedDetPedestalService.h.

float DPhaseFixedDetPedestalService::m_PedRmsErrZ
private

Definition at line 59 of file DPhaseFixedDetPedestalService.h.

float DPhaseFixedDetPedestalService::m_PedRmsX
private

Definition at line 51 of file DPhaseFixedDetPedestalService.h.

float DPhaseFixedDetPedestalService::m_PedRmsY
private

Definition at line 52 of file DPhaseFixedDetPedestalService.h.

float DPhaseFixedDetPedestalService::m_PedRmsZ
private

Definition at line 53 of file DPhaseFixedDetPedestalService.h.


The documentation for this class was generated from the following files: