Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunedataprep
dunedataprep
DataPrep
Service
DuneRoiBuildingService.h
Go to the documentation of this file.
1
// AdcRoiBuildingService.h
2
//
3
// David Adams
4
// June 2016
5
//
6
// Implementation of service to build ROIs in AdcChannelData using
7
// the same algorithm as in the original DUNE 35t module. An unpadded
8
// ROI starts for any signal above NSigmaStart sigma above the noise
9
// and continues until the level falls below NSigmaEnd sigma. The
10
// noise level sigma = sss.GetDeconNoise() where sss is the DUNE
11
// signal shaping service. Note that NSigmaEnd was fixed to 1.0 in
12
// the original code.
13
//
14
// The ROIs are then padded to include PadLow channels below and PadHigh
15
// channels above the unpadded region. Overlapping ROIs are then merged.
16
//
17
// The original code defines the upper value for an unpadded ROI to be one
18
// tick beyond the last tick above threshold unless it extends to the
19
// end of the sample array. Here the upper value is always set to be the
20
// last tick above threshold. one should be able to reproduce the old
21
// behavior by adding one to NSigmaEnd.
22
//
23
// The ROIs are recorded in in data.rois.
24
//
25
// Configuration:
26
// LogLevel - usual log level
27
// NSigmaStart - Level in sigma at which an unpadded signal starts.
28
// NSigmaEnd - Level in sigma at which an unpadded signal ends.
29
// PadLow - Number of ticks to retain before signal above threshold.
30
// PadHigh - Number of ticks to retain after signal above threshold.
31
//
32
#ifndef DuneRoiBuildingService_H
33
#define DuneRoiBuildingService_H
34
35
#include "
dunecore/DuneInterface/Service/AdcRoiBuildingService.h
"
36
37
class
AdcSuppressService
;
38
39
class
DuneRoiBuildingService
:
public
AdcRoiBuildingService
{
40
41
public
:
42
43
DuneRoiBuildingService
(
fhicl::ParameterSet
const
& pset,
art::ActivityRegistry
&);
44
45
int
build
(
AdcChannelData
&
data
)
const
;
46
47
std::ostream&
print
(std::ostream& out =std::cout,
std::string
prefix
=
""
)
const
;
48
49
private
:
50
51
// Parameters.
52
int
m_LogLevel
;
53
AdcSignal
m_NSigmaStart
;
54
AdcSignal
m_NSigmaEnd
;
55
AdcIndex
m_PadLow
;
56
AdcIndex
m_PadHigh
;
57
58
};
59
60
DECLARE_ART_SERVICE_INTERFACE_IMPL
(
DuneRoiBuildingService
,
AdcRoiBuildingService
, LEGACY)
61
62
#endif
DuneRoiBuildingService::build
int build(AdcChannelData &data) const
Definition:
DuneRoiBuildingService_service.cc:36
DuneRoiBuildingService
Definition:
DuneRoiBuildingService.h:39
AdcRoiBuildingService
Definition:
AdcRoiBuildingService.h:14
submit_ppfxjobs.prefix
string prefix
Definition:
submit_ppfxjobs.py:128
string
std::string string
Definition:
nybbler.cc:12
AdcSignal
float AdcSignal
Definition:
AdcTypes.h:21
DECLARE_ART_SERVICE_INTERFACE_IMPL
DECLARE_ART_SERVICE_INTERFACE_IMPL(MySharedService, art::test::MyServiceInterface, SHARED) DEFINE_ART_SERVICE_INTERFACE_IMPL(MySharedService
DuneRoiBuildingService::DuneRoiBuildingService
DuneRoiBuildingService(fhicl::ParameterSet const &pset, art::ActivityRegistry &)
Definition:
DuneRoiBuildingService_service.cc:22
DuneRoiBuildingService::m_NSigmaStart
AdcSignal m_NSigmaStart
Definition:
DuneRoiBuildingService.h:53
AdcChannelData
Definition:
AdcChannelData.h:95
DuneRoiBuildingService::m_NSigmaEnd
AdcSignal m_NSigmaEnd
Definition:
DuneRoiBuildingService.h:54
DuneRoiBuildingService::print
std::ostream & print(std::ostream &out=std::cout, std::string prefix="") const
Definition:
DuneRoiBuildingService_service.cc:118
AdcRoiBuildingService.h
AdcIndex
unsigned int AdcIndex
Definition:
AdcTypes.h:15
make_THn_beam_input.data
data
Definition:
make_THn_beam_input.py:80
art::ActivityRegistry
Definition:
ActivityRegistry.h:52
DuneRoiBuildingService::m_LogLevel
int m_LogLevel
Definition:
DuneRoiBuildingService.h:52
DuneRoiBuildingService::m_PadLow
AdcIndex m_PadLow
Definition:
DuneRoiBuildingService.h:55
DuneRoiBuildingService::m_PadHigh
AdcIndex m_PadHigh
Definition:
DuneRoiBuildingService.h:56
AdcSuppressService
Definition:
AdcSuppressService.h:27
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11