Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunesim
dunesim
DetSim
Service
WhiteChannelNoiseService.h
Go to the documentation of this file.
1
// WhiteChannelNoiseService
2
//
3
// David Adams
4
// April 2016
5
// Implementation of TPC channel noise model with white noise.
6
// Same as the nose model 2 in SimWireDUNE35t, e.g. from dunetpc v04_29_01.
7
// FCL parameters:
8
// RandomSeed - Overrides NuRandomService if set nonzero.
9
// LogLevel - (0=none, 1=init only, ...)
10
11
#ifndef WhiteChannelNoiseService_H
12
#define WhiteChannelNoiseService_H
13
14
#include "
dunecore/DuneInterface/Service/ChannelNoiseService.h
"
15
#include <vector>
16
#include <iostream>
17
18
class
TH1;
19
namespace
CLHEP
{
20
class
HepRandomEngine;
21
}
22
23
class
WhiteChannelNoiseService
:
public
ChannelNoiseService
{
24
25
public
:
26
27
// Ctor.
28
WhiteChannelNoiseService
(
fhicl::ParameterSet
const
& pset,
art::ActivityRegistry
&);
29
30
// Dtor.
31
~
WhiteChannelNoiseService
();
32
33
// Add noise to a signal array.
34
int
addNoise(
detinfo::DetectorClocksData
const
& clockData,
35
detinfo::DetectorPropertiesData
const
& detProp,
36
Channel
chan,
AdcSignalVector
& sigs)
const
;
37
38
// Print the configuration.
39
std::ostream& print(std::ostream& out =std::cout,
std::string
prefix
=
""
)
const
;
40
41
private
:
42
43
// Configuration.
44
int
m_RandomSeed
;
45
int
m_LogLevel
;
46
47
// Histograms.
48
TH1*
fNoiseHist
;
///< distribution of noise counts
49
50
CLHEP::HepRandomEngine*
m_pran
;
51
52
};
53
54
DECLARE_ART_SERVICE_INTERFACE_IMPL
(
WhiteChannelNoiseService
,
ChannelNoiseService
, LEGACY)
55
56
#endif
ChannelNoiseService.h
submit_ppfxjobs.prefix
string prefix
Definition:
submit_ppfxjobs.py:128
string
std::string string
Definition:
nybbler.cc:12
DECLARE_ART_SERVICE_INTERFACE_IMPL
DECLARE_ART_SERVICE_INTERFACE_IMPL(MySharedService, art::test::MyServiceInterface, SHARED) DEFINE_ART_SERVICE_INTERFACE_IMPL(MySharedService
detinfo::DetectorPropertiesData
Definition:
DetectorPropertiesData.h:11
WhiteChannelNoiseService::fNoiseHist
TH1 * fNoiseHist
distribution of noise counts
Definition:
WhiteChannelNoiseService.h:48
WhiteChannelNoiseService::m_RandomSeed
int m_RandomSeed
Definition:
WhiteChannelNoiseService.h:44
WhiteChannelNoiseService::m_LogLevel
int m_LogLevel
Definition:
WhiteChannelNoiseService.h:45
CLHEP
Definition:
RandomNumberGenerator.h:144
WhiteChannelNoiseService
Definition:
WhiteChannelNoiseService.h:23
detinfo::DetectorClocksData
Contains all timing reference information for the detector.
Definition:
DetectorClocksData.h:283
art::ActivityRegistry
Definition:
ActivityRegistry.h:52
ChannelNoiseService
Definition:
ChannelNoiseService.h:20
AdcSignalVector
std::vector< AdcSignal > AdcSignalVector
Definition:
AdcTypes.h:22
WhiteChannelNoiseService::m_pran
CLHEP::HepRandomEngine * m_pran
Definition:
WhiteChannelNoiseService.h:50
ChannelNoiseService::Channel
unsigned int Channel
Definition:
ChannelNoiseService.h:24
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11