All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
daq::DaqDecoderICARUSTrigger Class Reference
Inheritance diagram for daq::DaqDecoderICARUSTrigger:

Public Member Functions

 DaqDecoderICARUSTrigger (fhicl::ParameterSet const &p)
 
 DaqDecoderICARUSTrigger (DaqDecoderICARUSTrigger const &)=delete
 
 DaqDecoderICARUSTrigger (DaqDecoderICARUSTrigger &&)=delete
 
DaqDecoderICARUSTriggeroperator= (DaqDecoderICARUSTrigger const &)=delete
 
DaqDecoderICARUSTriggeroperator= (DaqDecoderICARUSTrigger &&)=delete
 
void beginRun (art::Run &run) override
 
void produce (art::Event &e) override
 

Private Attributes

std::unique_ptr< IDecoderfDecoderTool
 
art::InputTag fInputTag
 

Detailed Description

Definition at line 28 of file DaqDecoderICARUSTrigger_module.cc.

Constructor & Destructor Documentation

daq::DaqDecoderICARUSTrigger::DaqDecoderICARUSTrigger ( fhicl::ParameterSet const &  p)
explicit

Definition at line 48 of file DaqDecoderICARUSTrigger_module.cc.

48  : art::EDProducer{params}, fInputTag(params.get<std::string>("FragmentsLabel", "daq:ICARUSTriggerUDP"))
49  {
50  consumes<artdaq::Fragments>(fInputTag);
51 
52  fDecoderTool = art::make_tool<IDecoder>(params.get<fhicl::ParameterSet>("DecoderTool"));
53  fDecoderTool->produces(producesCollector());
54 
55  return;
56  }
std::unique_ptr< IDecoder > fDecoderTool
daq::DaqDecoderICARUSTrigger::DaqDecoderICARUSTrigger ( DaqDecoderICARUSTrigger const &  )
delete
daq::DaqDecoderICARUSTrigger::DaqDecoderICARUSTrigger ( DaqDecoderICARUSTrigger &&  )
delete

Member Function Documentation

void daq::DaqDecoderICARUSTrigger::beginRun ( art::Run &  run)
override

Definition at line 58 of file DaqDecoderICARUSTrigger_module.cc.

59  {
60  fDecoderTool->setupRun(run);
61  }
std::unique_ptr< IDecoder > fDecoderTool
DaqDecoderICARUSTrigger& daq::DaqDecoderICARUSTrigger::operator= ( DaqDecoderICARUSTrigger const &  )
delete
DaqDecoderICARUSTrigger& daq::DaqDecoderICARUSTrigger::operator= ( DaqDecoderICARUSTrigger &&  )
delete
void daq::DaqDecoderICARUSTrigger::produce ( art::Event &  e)
override

Definition at line 64 of file DaqDecoderICARUSTrigger_module.cc.

65  {
66  fDecoderTool->initializeDataProducts();
67  auto const & daq_handle = event.getValidHandle<artdaq::Fragments>(fInputTag);
68  if(daq_handle.isValid() && daq_handle->size() > 0)
69  {
70  for (auto const & rawFrag: *daq_handle) fDecoderTool->process_fragment(rawFrag);
71  }
72  else
73  std::cout << "No Trigger Fragment Information Found!" << std::endl;
74 
75  fDecoderTool->outputDataProducts(event);
76  return;
77 
78  }
std::unique_ptr< IDecoder > fDecoderTool
BEGIN_PROLOG could also be cout

Member Data Documentation

std::unique_ptr<IDecoder> daq::DaqDecoderICARUSTrigger::fDecoderTool
private

Definition at line 41 of file DaqDecoderICARUSTrigger_module.cc.

art::InputTag daq::DaqDecoderICARUSTrigger::fInputTag
private

Definition at line 42 of file DaqDecoderICARUSTrigger_module.cc.


The documentation for this class was generated from the following file: