Public Member Functions | List of all members
TpcDataTool Class Reference

#include <TpcDataTool.h>

Inheritance diagram for TpcDataTool:
AdcChannelTool AcdDigitReader AcdWireReader Adc2dConvolute AdcChannelDumper AdcChannelFFT AdcChannelMetric AdcChannelPlotter AdcChannelSplitter AdcChannelTrimmer AdcCodeMitigator AdcDataDumper AdcDataPlotter AdcDeconvoluteFFT AdcDetectorPlotter AdcDPhase3x1x1LocalRoiBuilder AdcDPhase3x1x1RoiBuilder AdcEventViewer AdcKeepAllSignalFinder AdcMultiChannelPlotter AdcMultiThreshSignalFinder AdcNoiseSignalFinder AdcPedestalFitter AdcRangeSampleScaler AdcRegularSignalFinder AdcResultDumper AdcRoiShifter AdcRoiSlicer AdcRoiToTree AdcRoiViewer AdcSampleFiller AdcSampleScaler AdcThresholdSignalFinder AdcTickModViewer AdcTimingMitigator AdcToRoi2d AdcUnderflowFlagger BaselineDetrend CnrByGroup CnrGroupWeighted DuneAdcSignalFinder ExpTailPedRemover ExpTailRemover FclStickyCodeFlagger FembLinearCalibration FembMappedAdcModifier FloatArrayGainCalibration PddpVintageDeconvoluter PdspNoiseRemoval RemoveBadChannels Roi2dToAdc SubtractBaseline Tpc2dDeconvolute TpcDataTool_update UndershootCorr VintageDeconvoluter

Public Member Functions

virtual DataMap updateTpcData (TpcData &) const
 
virtual DataMap viewTpcData (const TpcData &) const
 
virtual int forwardTpcData () const
 
- Public Member Functions inherited from AdcChannelTool
virtual ~AdcChannelTool ()=default
 
virtual DataMap update (AdcChannelData &) const
 
virtual DataMap view (const AdcChannelData &acd) const
 
virtual DataMap updateMap (AdcChannelDataMap &acds) const
 
virtual DataMap viewMap (const AdcChannelDataMap &acds) const
 
virtual bool updateWithView () const
 
virtual bool viewWithUpdate () const
 
virtual DataMap beginEvent (const DuneEventInfo &) const
 
virtual DataMap endEvent (const DuneEventInfo &) const
 
virtual DataMap close (const DataMap *dmin=nullptr)
 

Additional Inherited Members

- Public Types inherited from AdcChannelTool
using Index = unsigned int
 
- Static Public Member Functions inherited from AdcChannelTool
static int interfaceNotImplemented ()
 

Detailed Description

Definition at line 17 of file TpcDataTool.h.

Member Function Documentation

virtual int TpcDataTool::forwardTpcData ( ) const
inlinevirtual

Definition at line 30 of file TpcDataTool.h.

30 { return 1; }
DataMap TpcDataTool::updateTpcData ( TpcData tpd) const
inlinevirtual

Reimplemented in Tpc2dDeconvolute, AdcToRoi2d, and Roi2dToAdc.

Definition at line 39 of file TpcDataTool.h.

39  {
40  if ( forwardTpcData() == 1 ) {
41  DataMap dm;
42  for ( TpcData::AdcDataPtr padc : tpd.getAdcData() ) {
43  if ( padc ) dm = updateMap(*padc);
44  }
45  return dm;
46  } else if ( updateWithView() ) {
47  return viewTpcData(tpd);
48  }
50 }
static int interfaceNotImplemented()
std::shared_ptr< AdcChannelDataMap > AdcDataPtr
Definition: TpcData.h:35
virtual DataMap viewTpcData(const TpcData &) const
Definition: TpcDataTool.h:55
AdcDataVector & getAdcData()
Definition: TpcData.h:55
virtual DataMap updateMap(AdcChannelDataMap &acds) const
virtual bool updateWithView() const
virtual int forwardTpcData() const
Definition: TpcDataTool.h:30
DataMap TpcDataTool::viewTpcData ( const TpcData tpd) const
inlinevirtual

Reimplemented in Tpc2dDeconvolute.

Definition at line 55 of file TpcDataTool.h.

55  {
56  if ( forwardTpcData() == 1 ) {
57  DataMap dm;
58  for ( TpcData::AdcDataPtr padc : tpd.getAdcData() ) {
59  if ( padc ) dm = viewMap(*padc);
60  }
61  return dm;
62  }
63  // We do not copy TpcData.
65 }
virtual DataMap viewMap(const AdcChannelDataMap &acds) const
static int interfaceNotImplemented()
std::shared_ptr< AdcChannelDataMap > AdcDataPtr
Definition: TpcData.h:35
AdcDataVector & getAdcData()
Definition: TpcData.h:55
virtual int forwardTpcData() const
Definition: TpcDataTool.h:30

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