Public Member Functions | List of all members
TpcDataTool_update Class Reference
Inheritance diagram for TpcDataTool_update:
TpcDataTool AdcChannelTool

Public Member Functions

DataMap update (AdcChannelData &acd) const override
 
bool viewWithUpdate () const override
 
- Public Member Functions inherited from TpcDataTool
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 view (const AdcChannelData &acd) const
 
virtual DataMap updateMap (AdcChannelDataMap &acds) const
 
virtual DataMap viewMap (const AdcChannelDataMap &acds) const
 
virtual bool updateWithView () 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 41 of file test_TpcDataTool.cxx.

Member Function Documentation

DataMap TpcDataTool_update::update ( AdcChannelData acd) const
overridevirtual

Reimplemented from AdcChannelTool.

Definition at line 47 of file test_TpcDataTool.cxx.

47  {
48  cout << "TpcDataTool_update::update: Modifying channel " << acd.channel() << endl;
49  acd.setChannelInfo(acd.channel(), 100 + acd.channel());
50  int fembchan = 1000*acd.fembID() + acd.channel();
51  std::vector<int> fembchans(1, fembchan);
52  DataMap ret;
53  ret.setInt("fembchan", fembchan);
54  ret.setIntVector("fembchans", fembchans);
55  return ret;
56 }
Index fembID() const
void setIntVector(Name name, const IntVector &val)
Definition: DataMap.h:132
void setChannelInfo(ChannelInfoPtr pchi)
void setInt(Name name, int val)
Definition: DataMap.h:131
Channel channel() const
QTextStream & endl(QTextStream &s)
bool TpcDataTool_update::viewWithUpdate ( ) const
inlineoverridevirtual

Reimplemented from AdcChannelTool.

Definition at line 44 of file test_TpcDataTool.cxx.

44 { return true; }

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