Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunecore
dunecore
DuneInterface
Service
PedestalEvaluationService.h
Go to the documentation of this file.
1
// PedestalEvaluationService.h
2
3
#ifndef PedestalEvaluationService_H
4
#define PedestalEvaluationService_H
5
6
// David Adams
7
// May 2016
8
//
9
// Interface for a service that uses a vector of ADC signals to estimate
10
// the pedestal for a channel.
11
12
#include <iostream>
13
#include "
dunecore/DuneInterface/Data/AdcChannelData.h
"
14
15
class
PedestalEvaluationService
{
16
17
public
:
18
19
virtual
~PedestalEvaluationService
() =
default
;
20
21
// Extract the channel, signals and flags. All are pointer types so the caller can use null to
22
// indicate any of the fields are not of interest.
23
// sigs - Input signal vector
24
// *pped - Pedestal
25
// *prem - Pedestal RMS
26
// *ppederr - Uncertainty in the pedestal
27
// *premerr - Uncertainty in the pedestal RMS
28
// The last four arguments are output values. Null values may be used to indicate the value
29
// is not used and need not be calculated.
30
virtual
int
evaluate
(
const
AdcChannelData
&
data
,
31
AdcSignal
* pped =
nullptr
,
AdcSignal
* prms =
nullptr
,
32
AdcSignal
* ppederr =
nullptr
,
AdcSignal
* prmserr =
nullptr
)
const
=0;
33
34
// Print parameters.
35
virtual
std::ostream&
print
(std::ostream& out =std::cout,
std::string
prefix
=
""
)
const
=0;
36
37
};
38
39
#ifndef __CLING__
40
#include "
art/Framework/Services/Registry/ServiceMacros.h
"
41
DECLARE_ART_SERVICE_INTERFACE
(
PedestalEvaluationService
, LEGACY)
42
#endif
43
44
#endif
submit_ppfxjobs.prefix
string prefix
Definition:
submit_ppfxjobs.py:128
string
std::string string
Definition:
nybbler.cc:12
AdcChannelData.h
AdcSignal
float AdcSignal
Definition:
AdcTypes.h:21
PedestalEvaluationService::evaluate
virtual int evaluate(const AdcChannelData &data, AdcSignal *pped=nullptr, AdcSignal *prms=nullptr, AdcSignal *ppederr=nullptr, AdcSignal *prmserr=nullptr) const =0
AdcChannelData
Definition:
AdcChannelData.h:95
PedestalEvaluationService
Definition:
PedestalEvaluationService.h:15
PedestalEvaluationService::print
virtual std::ostream & print(std::ostream &out=std::cout, std::string prefix="") const =0
ServiceMacros.h
make_THn_beam_input.data
data
Definition:
make_THn_beam_input.py:80
PedestalEvaluationService::~PedestalEvaluationService
virtual ~PedestalEvaluationService()=default
DECLARE_ART_SERVICE_INTERFACE
#define DECLARE_ART_SERVICE_INTERFACE(svc, scope)
Definition:
ServiceDeclarationMacros.h:80
Generated by
1.8.11