Project

General

Profile

Support #23569

Updated by Kyle Knoepfel 9 months ago

Hi,

I want to create a new source module to import raw data and dump it into an art file, compatible with LArSoft.

As a first approach, I copied an existing module that already does this, in order to adapt it to my data.

I copied the module dunetpc/dune/Protodune/dualphase/RawDecoding/PDDPRawInput_source.cc
into the new one: dunetpc/dune/Protodune/dualphase/RawDecoding/PDDPRawInputPMT_source.cc

I also consequently modified all names and the CMakeList inside the file.

It compiles without any error, but when I try to run the new module I get the following:

<pre>
$ lar -c pddp_pmtdaq_converter.fcl /eos/experiment/neutplatform/protodune/rawdata/np02/rawdata/1033/1033_10_a.cosmics

%MSG-s ArtException: RootOutput:out1@Construction 08-Nov-2019 12:06:16 CET ModuleConstruction
cet::exception caught in art
---- Configuration BEGIN
FailedInputSource Configuration of main input source has failed
---- Configuration BEGIN
Library specification "PDDPRawInputPMT": does not correspond to any library in CET_PLUGIN_PATH of type "source"
---- Configuration END
---- Configuration END
%MSG
Art has completed and will exit with status 9.
</pre>


It seems that it doesn't find the library, but it is specified in the _source.cc code:

<pre>
#include "art/Framework/Core/InputSourceMacros.h"
#include "art/Framework/IO/Sources/Source.h"
#include "dune/Protodune/dualphase/RawDecoding/PDDPRawInputPMTDriver.h"
namespace lris
{
typedef art::Source<PDDPRawInputPMTDriver> PDDPRawInputPMT;
}

DEFINE_ART_INPUT_SOURCE(lris::PDDPRawInputPMT)
</pre>


And also in the CMakeList:

<pre>
simple_plugin(PDDPRawInputPMT "source"
PDDPRawInputPMTDriver_service
lardataobj_RawData
lardata_Utilities
${ART_FRAMEWORK_CORE}
${ART_FRAMEWORK_IO_SOURCES}
${ART_FRAMEWORK_PRINCIPAL}
${ART_FRAMEWORK_PERSISTENCY_COMMON}
art_Persistency_Common canvas
art_Persistency_Provenance canvas
art_Utilities canvas
${FHICLCPP}
${MF_MESSAGELOGGER}
${CETLIB}
${ROOT_BASIC_LIB_LIST}
BASENAME_ONLY
)
</pre>


Any idea of why I get this error?

I have published the code in dunetpc in case you want to reproduce the error: feature/jsoto_PDDP_PMTRawDataImporter

Thank you in advance for your help,
José

Back