opdet::SBNDOpDeconvolution::SBNDOpDeconvolution |
( |
fhicl::ParameterSet const & |
p | ) |
|
|
explicit |
Definition at line 62 of file SBNDOpDeconvolution_module.cc.
69 fPDTypes =
p.get< std::vector<std::string> >(
"PDTypes");
70 fElectronics =
p.get< std::vector<std::string> >(
"Electronics");
71 fOpDecoAlgPtr = art::make_tool<opdet::OpDeconvolutionAlg>(
p.get< fhicl::ParameterSet >(
"OpDecoAlg") );
73 produces< std::vector< raw::OpDetWaveform > >();
std::vector< std::string > fPDTypes
std::unique_ptr< opdet::OpDeconvolutionAlg > fOpDecoAlgPtr
std::vector< std::string > fElectronics
void opdet::SBNDOpDeconvolution::produce |
( |
art::Event & |
e | ) |
|
|
override |
Definition at line 76 of file SBNDOpDeconvolution_module.cc.
79 art::Handle< std::vector< raw::OpDetWaveform > > wfHandle;
81 if (!wfHandle.isValid()) {
82 mf::LogError(
"SBNDOpDeconvolution")<<
"Input waveforms with input label "<<
fInputLabel<<
" couldn't be loaded..."<<std::endl;
83 throw cet::exception(
"SBNDOpDeconvolution") <<
"Input waveforms with input label " <<
fInputLabel <<
" not found\n";
86 std::vector< raw::OpDetWaveform > RawWfVector;
87 RawWfVector.reserve(wfHandle->size());
89 for(
auto const& wf : *wfHandle){
92 RawWfVector.push_back(wf);
96 std::unique_ptr< std::vector< raw::OpDetWaveform > > DecoWf_VecPtr(std::make_unique< std::vector< raw::OpDetWaveform > > ());
97 auto & DecoWf_Vec(*DecoWf_VecPtr);
100 e.put( std::move(DecoWf_VecPtr) );
opdet::sbndPDMapAlg pdsmap
std::vector< std::string > fPDTypes
std::unique_ptr< opdet::OpDeconvolutionAlg > fOpDecoAlgPtr
std::vector< std::string > fElectronics
std::string electronicsType(size_t ch) const
std::string pdType(size_t ch) const override
std::vector<std::string> opdet::SBNDOpDeconvolution::fElectronics |
|
private |
std::string opdet::SBNDOpDeconvolution::fInputLabel |
|
private |
std::vector<std::string> opdet::SBNDOpDeconvolution::fPDTypes |
|
private |
The documentation for this class was generated from the following file: