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

Public Member Functions

DataMap update (AdcChannelData &acd) const override
 
bool viewWithUpdate () const override
 
- 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 43 of file test_AdcChannelTool.cxx.

Member Function Documentation

DataMap AdcChannelTool_update::update ( AdcChannelData acd) const
overridevirtual

Reimplemented from AdcChannelTool.

Definition at line 49 of file test_AdcChannelTool.cxx.

49  {
50  cout << "AdcChannelTool_update::update: Modifying channel " << acd.channel() << endl;
51  acd.setChannelInfo(acd.channel(), 100 + acd.channel());
52  int fembchan = 1000*acd.fembID() + acd.channel();
53  std::vector<int> fembchans(1, fembchan);
54  DataMap ret;
55  ret.setInt("fembchan", fembchan);
56  ret.setIntVector("fembchans", fembchans);
57  return ret;
58 }
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 AdcChannelTool_update::viewWithUpdate ( ) const
inlineoverridevirtual

Reimplemented from AdcChannelTool.

Definition at line 46 of file test_AdcChannelTool.cxx.

46 { return true; }

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