Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunesim
dunesim
DetSim
Service
ProvidedPedestalAdditionService.h
Go to the documentation of this file.
1
// ProvidedPedestalAdditionService.h
2
3
// David Adams
4
// December 2015
5
//
6
// Pedestal additon service that obtains pedestals and their
7
// RMS values from a pedestal service.
8
// Pedestal noise is assigned using independent random Gaussian values
9
// for each tick with sigma = NoiseScale*RMS
10
// Parameters:
11
// NoiseScale - The above noise scale. (<= 0 for no pedestal noise).
12
// RandomSeed - Overrides NuRandomService if set nonzero.
13
// LogLevel - (0=none, 1=init only, ...)
14
15
#ifndef ProvidedPedestalAdditionService_H
16
#define ProvidedPedestalAdditionService_H
17
18
#include "
dunecore/DuneInterface/Service/PedestalAdditionService.h
"
19
#include "
art/Framework/Services/Registry/ServiceMacros.h
"
20
21
class
TH1;
22
namespace
CLHEP
{
23
class
HepRandomEngine;
24
}
25
namespace
lariov
{
26
class
DetPedestalProvider;
27
}
28
29
class
ProvidedPedestalAdditionService
:
public
PedestalAdditionService
{
30
31
public
:
32
33
ProvidedPedestalAdditionService
(
fhicl::ParameterSet
const
& pset,
art::ActivityRegistry
&);
34
35
~
ProvidedPedestalAdditionService
();
36
37
// Add pedestals and pedestal noise to a signal array.
38
int
addPedestal(
Channel
chan,
AdcSignalVector
& sigs,
float
& ped,
float
& pedrms)
const
;
39
40
// Print parameters.
41
virtual
std::ostream& print(std::ostream& out =std::cout,
std::string
prefix
=
""
)
const
;
42
43
private
:
44
45
// Configuration.
46
float
m_NoiseScale
;
47
int
m_RandomSeed
;
48
int
m_LogLevel
;
49
50
TH1*
m_PedNoiseHist
;
///< Histogram of pedestal noise counts
51
52
CLHEP::HepRandomEngine*
m_pran
;
53
54
const
lariov::DetPedestalProvider
&
m_PedestalProvider
;
55
56
};
57
58
DECLARE_ART_SERVICE_INTERFACE_IMPL
(
ProvidedPedestalAdditionService
,
PedestalAdditionService
, LEGACY)
59
60
#endif
61
submit_ppfxjobs.prefix
string prefix
Definition:
submit_ppfxjobs.py:128
string
std::string string
Definition:
nybbler.cc:12
ProvidedPedestalAdditionService::m_PedNoiseHist
TH1 * m_PedNoiseHist
Histogram of pedestal noise counts.
Definition:
ProvidedPedestalAdditionService.h:50
DECLARE_ART_SERVICE_INTERFACE_IMPL
DECLARE_ART_SERVICE_INTERFACE_IMPL(MySharedService, art::test::MyServiceInterface, SHARED) DEFINE_ART_SERVICE_INTERFACE_IMPL(MySharedService
PedestalAdditionService
Definition:
PedestalAdditionService.h:21
PedestalAdditionService.h
CLHEP
Definition:
RandomNumberGenerator.h:144
ProvidedPedestalAdditionService::m_PedestalProvider
const lariov::DetPedestalProvider & m_PedestalProvider
Definition:
ProvidedPedestalAdditionService.h:54
ProvidedPedestalAdditionService::m_NoiseScale
float m_NoiseScale
Definition:
ProvidedPedestalAdditionService.h:46
PedestalAdditionService::Channel
unsigned int Channel
Definition:
PedestalAdditionService.h:25
ServiceMacros.h
ProvidedPedestalAdditionService::m_RandomSeed
int m_RandomSeed
Definition:
ProvidedPedestalAdditionService.h:47
lariov
Filters for channels, events, etc.
Definition:
ChannelStatusServiceTool.h:19
ProvidedPedestalAdditionService::m_pran
CLHEP::HepRandomEngine * m_pran
Definition:
ProvidedPedestalAdditionService.h:52
ProvidedPedestalAdditionService::m_LogLevel
int m_LogLevel
Definition:
ProvidedPedestalAdditionService.h:48
art::ActivityRegistry
Definition:
ActivityRegistry.h:52
AdcSignalVector
std::vector< AdcSignal > AdcSignalVector
Definition:
AdcTypes.h:22
lariov::DetPedestalProvider
Definition:
DetPedestalProvider.h:25
ProvidedPedestalAdditionService
Definition:
ProvidedPedestalAdditionService.h:29
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11