TPCDecoder class definiton.
More...
|
| TPCDecoder (fhicl::ParameterSet const &pset) |
| Constructor. More...
|
|
| ~TPCDecoder () |
| Destructor. More...
|
|
virtual void | produces (art::ProducesCollector &) override |
| Each algorithm may have different objects it wants "produced" so use this to let the top level producer module "know" what it is outputting. More...
|
|
virtual void | configure (const fhicl::ParameterSet &) override |
| Interface for configuring the particular algorithm tool. More...
|
|
virtual void | initializeDataProducts () override |
| Initialize any data products the tool will output. More...
|
|
virtual void | process_fragment (const artdaq::Fragment &fragment) override |
| Given a set of recob hits, run DBscan to form 3D clusters. More...
|
|
virtual void | outputDataProducts (art::Event &event) override |
| Output the data products to the event store. More...
|
|
virtual | ~IDecoder () noexcept=default |
| Virtual Destructor. More...
|
|
virtual void | consumes (art::ConsumesCollector &) |
| Declare to the framework what you expect to read. More...
|
|
virtual void | setupRun (art::Run const &run) |
| Preparation to process a new run. More...
|
|
virtual void | setupEvent (art::Event const &event) |
| Preparation to process a new event. More...
|
|
TPCDecoder class definiton.
Definition at line 39 of file TPCDecoder_tool.cc.
daq::TPCDecoder::TPCDecoder |
( |
fhicl::ParameterSet const & |
pset | ) |
|
|
explicit |
Constructor.
- Parameters
-
Definition at line 99 of file TPCDecoder_tool.cc.
virtual void configure(const fhicl::ParameterSet &) override
Interface for configuring the particular algorithm tool.
daq::TPCDecoder::~TPCDecoder |
( |
| ) |
|
void daq::TPCDecoder::configure |
( |
const fhicl::ParameterSet & |
pset | ) |
|
|
overridevirtual |
Interface for configuring the particular algorithm tool.
- Parameters
-
ParameterSet | The input set of parameters for configuration |
Implements daq::IDecoder.
Definition at line 116 of file TPCDecoder_tool.cc.
120 fGeometry = art::ServiceHandle<geo::Geometry const>{}.get();
uint32_t fFragment_id_offset
const geo::Geometry * fGeometry
void daq::TPCDecoder::initializeDataProducts |
( |
| ) |
|
|
overridevirtual |
Initialize any data products the tool will output.
Implements daq::IDecoder.
Definition at line 125 of file TPCDecoder_tool.cc.
RawDigitCollectionPtr fRawDigitCollection
std::unique_ptr< std::vector< raw::RawDigit >> RawDigitCollectionPtr
void daq::TPCDecoder::outputDataProducts |
( |
art::Event & |
event | ) |
|
|
overridevirtual |
Output the data products to the event store.
- Parameters
-
event | The event store objects |
Implements daq::IDecoder.
Definition at line 172 of file TPCDecoder_tool.cc.
RawDigitCollectionPtr fRawDigitCollection
void daq::TPCDecoder::process_fragment |
( |
const artdaq::Fragment & |
fragment | ) |
|
|
overridevirtual |
Given a set of recob hits, run DBscan to form 3D clusters.
- Parameters
-
fragment | The artdaq fragment to process |
rawDigitColllection | The output RawDigits |
Implements daq::IDecoder.
Definition at line 132 of file TPCDecoder_tool.cc.
137 icarus::PhysCrateFragment physCrateFragment(fragment);
139 size_t nBoardsPerFragment = physCrateFragment.nBoards();
140 size_t nChannelsPerBoard = physCrateFragment.nChannelsPerBoard();
143 for(
size_t board = 0; board < physCrateFragment.nBoards(); board++)
148 size_t boardId = nChannelsPerBoard * (nBoardsPerFragment * fragment_id + board);
151 const icarus::A2795DataBlock::data_t* dataBlock = physCrateFragment.BoardData(board);
154 for(
size_t channel = 0; channel < physCrateFragment.nChannelsPerBoard(); channel++)
162 for(
size_t tick = 0;
tick < physCrateFragment.nSamplesPerChannel();
tick++)
163 wvfm[
tick] = dataBlock[channel +
tick * physCrateFragment.nChannelsPerBoard()];
165 fRawDigitCollection->emplace_back(channel_num,physCrateFragment.nSamplesPerChannel(),wvfm);
std::vector< short > ADCvector_t
Type representing a (compressed) vector of ADC counts.
uint32_t fFragment_id_offset
RawDigitCollectionPtr fRawDigitCollection
tick_as<> tick
Tick number, represented by std::ptrdiff_t.
unsigned int ChannelID_t
Type representing the ID of a readout channel.
void daq::TPCDecoder::produces |
( |
art::ProducesCollector & |
collector | ) |
|
|
overridevirtual |
Each algorithm may have different objects it wants "produced" so use this to let the top level producer module "know" what it is outputting.
Implements daq::IDecoder.
Definition at line 110 of file TPCDecoder_tool.cc.
112 collector.produces< std::vector<raw::RawDigit>>();
uint32_t daq::TPCDecoder::fFragment_id_offset |
|
private |
The documentation for this class was generated from the following file: