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

#include <FixedDetPedestalService.h>

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

Public Member Functions

 FixedDetPedestalService (const fhicl::ParameterSet &pset, art::ActivityRegistry &reg)
 
 FixedDetPedestalService (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_PedMeanU
 
float m_PedMeanV
 
float m_PedMeanZ
 
float m_PedRmsU
 
float m_PedRmsV
 
float m_PedRmsZ
 
float m_PedMeanErrU
 
float m_PedMeanErrV
 
float m_PedMeanErrZ
 
float m_PedRmsErrU
 
float m_PedRmsErrV
 
float m_PedRmsErrZ
 

Additional Inherited Members

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

Detailed Description

Definition at line 21 of file FixedDetPedestalService.h.

Constructor & Destructor Documentation

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

Definition at line 11 of file FixedDetPedestalService_service.cc.

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

Definition at line 17 of file FixedDetPedestalService_service.cc.

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

Member Function Documentation

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

Implements lariov::DetPedestalService.

Definition at line 62 of file FixedDetPedestalService_service.cc.

62  {
63  return *this;
64 }
float FixedDetPedestalService::PedMean ( raw::ChannelID_t  ch) const
virtual

Retrieve pedestal information.

Implements lariov::DetPedestalProvider.

Definition at line 34 of file FixedDetPedestalService_service.cc.

34  {
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 }
art::ServiceHandle< geo::Geometry > m_hgeo
Planes which measure V.
Definition: geo_types.h:130
Planes which measure Z direction.
Definition: geo_types.h:132
Planes which measure U.
Definition: geo_types.h:129
View_t View(geo::PlaneID const &pid) const
Returns the view (wire orientation) on the channels of specified TPC plane.
float FixedDetPedestalService::PedMeanErr ( raw::ChannelID_t  ch) const
virtual

Implements lariov::DetPedestalProvider.

Definition at line 49 of file FixedDetPedestalService_service.cc.

49  {
50  return m_PedMeanErrZ;
51 }
float FixedDetPedestalService::PedRms ( raw::ChannelID_t  ch) const
virtual

Implements lariov::DetPedestalProvider.

Definition at line 43 of file FixedDetPedestalService_service.cc.

43  {
44  return m_PedRmsZ;
45 }
float FixedDetPedestalService::PedRmsErr ( raw::ChannelID_t  ch) const
virtual

Implements lariov::DetPedestalProvider.

Definition at line 55 of file FixedDetPedestalService_service.cc.

55  {
56  return m_PedRmsErrZ;
57 }

Member Data Documentation

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

Definition at line 43 of file FixedDetPedestalService.h.

float FixedDetPedestalService::m_PedMeanErrU
private

Definition at line 52 of file FixedDetPedestalService.h.

float FixedDetPedestalService::m_PedMeanErrV
private

Definition at line 53 of file FixedDetPedestalService.h.

float FixedDetPedestalService::m_PedMeanErrZ
private

Definition at line 54 of file FixedDetPedestalService.h.

float FixedDetPedestalService::m_PedMeanU
private

Definition at line 46 of file FixedDetPedestalService.h.

float FixedDetPedestalService::m_PedMeanV
private

Definition at line 47 of file FixedDetPedestalService.h.

float FixedDetPedestalService::m_PedMeanZ
private

Definition at line 48 of file FixedDetPedestalService.h.

float FixedDetPedestalService::m_PedRmsErrU
private

Definition at line 55 of file FixedDetPedestalService.h.

float FixedDetPedestalService::m_PedRmsErrV
private

Definition at line 56 of file FixedDetPedestalService.h.

float FixedDetPedestalService::m_PedRmsErrZ
private

Definition at line 57 of file FixedDetPedestalService.h.

float FixedDetPedestalService::m_PedRmsU
private

Definition at line 49 of file FixedDetPedestalService.h.

float FixedDetPedestalService::m_PedRmsV
private

Definition at line 50 of file FixedDetPedestalService.h.

float FixedDetPedestalService::m_PedRmsZ
private

Definition at line 51 of file FixedDetPedestalService.h.


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