Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunesim
dunesim
DetSim
Service
DPhaseSimChannelExtractService.h
Go to the documentation of this file.
1
// DPhaseSimChannelExtractService.h
2
//
3
// Vyacheslav Galymov
4
// February 2016
5
//
6
// Simulate signals from dual-phase detector:
7
// - charge amplification in gas
8
// - charge collection in two views
9
//
10
11
#ifndef _DPhaseSimChannelExtractService_H_
12
#define _DPhaseSimChannelExtractService_H_
13
14
#include <vector>
15
#include <string>
16
#include "
dunecore/DuneInterface/Service/SimChannelExtractService.h
"
17
#include "
art/Framework/Services/Registry/ServiceMacros.h
"
18
#include "
art/Framework/Services/Registry/ServiceHandle.h
"
19
#include "
lardata/Utilities/LArFFT.h
"
20
#include "
dunecore/Utilities/SignalShapingServiceDUNEDPhase.h
"
21
#include "
dunecore/Utilities/CrpGainService.h
"
22
//#include "dunesim/DetSim/Tool/CrpGainSimTool.h"
23
24
namespace
sim
{
25
class
SimChannel;
26
}
27
28
//class CrpGainSimulator;
29
30
class
DPhaseSimChannelExtractService
:
public
SimChannelExtractService
{
31
32
public
:
33
34
DPhaseSimChannelExtractService
(
fhicl::ParameterSet
const
& pset,
art::ActivityRegistry
&);
35
36
int
extract(
detinfo::DetectorClocksData
const
& clockData,
37
const
sim::SimChannel
* psc,
AdcSignalVector
& sig)
const
;
38
39
std::ostream& print(std::ostream& out =std::cout,
std::string
prefix
=
""
)
const
;
40
41
//float GainPerView(){ return fDPGainPerView; };
42
43
private
:
44
45
// standard larsoft FFT service
46
art::ServiceHandle<util::LArFFT>
m_pfft
;
47
48
// dual-phase signal response service
49
art::ServiceHandle<util::SignalShapingServiceDUNEDPhase>
m_psss
;
50
51
//
52
art::ServiceHandle<util::CrpGainService>
m_crpgain
;
53
// tool to simulate charge gain in CRPs
54
//std::string m_CrpGainToolName;
55
//std::unique_ptr<CrpGainSimTool> m_CrpGainTool;
56
57
unsigned
int
m_ntick
;
58
//float fDPGainPerView; // gain in dual-phase
59
};
60
61
DECLARE_ART_SERVICE_INTERFACE_IMPL
(
DPhaseSimChannelExtractService
,
SimChannelExtractService
, LEGACY)
62
63
#endif
art::ServiceHandle< util::LArFFT >
sim::SimChannel
Energy deposited on a readout channel by simulated tracks.
Definition:
SimChannel.h:140
DPhaseSimChannelExtractService::m_crpgain
art::ServiceHandle< util::CrpGainService > m_crpgain
Definition:
DPhaseSimChannelExtractService.h:52
submit_ppfxjobs.prefix
string prefix
Definition:
submit_ppfxjobs.py:128
string
std::string string
Definition:
nybbler.cc:12
SimChannelExtractService.h
DECLARE_ART_SERVICE_INTERFACE_IMPL
DECLARE_ART_SERVICE_INTERFACE_IMPL(MySharedService, art::test::MyServiceInterface, SHARED) DEFINE_ART_SERVICE_INTERFACE_IMPL(MySharedService
DPhaseSimChannelExtractService
Definition:
DPhaseSimChannelExtractService.h:30
ServiceHandle.h
CrpGainService.h
DPhaseSimChannelExtractService::m_psss
art::ServiceHandle< util::SignalShapingServiceDUNEDPhase > m_psss
Definition:
DPhaseSimChannelExtractService.h:49
sim
Code to link reconstructed objects back to the MC truth information.
Definition:
PedestalAdditionService.h:17
SignalShapingServiceDUNEDPhase.h
Service to provide DUNE dual-phase signal shaping for simulation (convolution) and reconstruction (de...
ServiceMacros.h
DPhaseSimChannelExtractService::m_ntick
unsigned int m_ntick
Definition:
DPhaseSimChannelExtractService.h:57
detinfo::DetectorClocksData
Contains all timing reference information for the detector.
Definition:
DetectorClocksData.h:283
art::ActivityRegistry
Definition:
ActivityRegistry.h:52
DPhaseSimChannelExtractService::m_pfft
art::ServiceHandle< util::LArFFT > m_pfft
Definition:
DPhaseSimChannelExtractService.h:46
LArFFT.h
AdcSignalVector
std::vector< AdcSignal > AdcSignalVector
Definition:
AdcTypes.h:22
SimChannelExtractService
Definition:
SimChannelExtractService.h:24
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11