FACT++  1.0
ConnectionFAD::ConnectionFAD ( ba::io_service &  ioservice,
MessageImp imp,
uint16_t  slot 
)
inline

Definition at line 357 of file fadctrl.cc.

References kMaxBins, and kNumChannels.

357  :
358  Connection(ioservice, imp()), fSlot(slot),
359  fIsVerbose(false), fIsHexOutput(false), fIsDataOutput(false),
360  fBlockTransmission(false), fCounter(0),
362  {
363  // Maximum possible needed space:
364  // The full header, all channels with all DRS bins
365  // Two trailing shorts
366  fBuffer.reserve(sizeof(FAD::EventHeader) + FAD::kNumChannels*(sizeof(FAD::ChannelHeader) + FAD::kMaxBins*sizeof(uint16_t)) + 2*sizeof(uint16_t));
367 
368  SetLogStream(&imp);
369  }
uint16_t fSlot
Definition: fadctrl.cc:33
vector< uint16_t > fTargetRoi
Definition: fadctrl.cc:51
bool fIsDataOutput
Definition: fadctrl.cc:45
bool fBlockTransmission
Definition: fadctrl.cc:46
bool fIsVerbose
Definition: fadctrl.cc:43
uint64_t fCounter
Definition: fadctrl.cc:48
vector< uint16_t > fBuffer
Definition: fadctrl.cc:36
void SetLogStream(MessageImp *log)
Definition: Connection.h:50
Connection(boost::asio::io_service &io_service, std::ostream &out)
Definition: Connection.cc:454
bool fIsHexOutput
Definition: fadctrl.cc:44