RawDCMChan.cpp
Go to the documentation of this file.
1 #include "DAQDataFormats/RawDCMChan.h"
2 #include <boost/format.hpp>
3 
4 namespace daqdataformats{
5 //------------------------------------------------------------------------------
6 // Default constructor
8  RawDAQData(0,(sizeofdata_t) &RawDCMChan::sizeofdata)
9 {
10  /// Perform general routines
12 }
13 //------------------------------------------------------------------------------
15  RawDAQData(copy_in)
16 {
17  lastOperationsInDeepCopy(copy_in);
18 }
19 
20 
21 //------------------------------------------------------------------------------
22 RawDCMChan::RawDCMChan(const void* dcmchan_buffer):
24 {
25  copy(dcmchan_buffer);
26 }
27 
28 //------------------------------------------------------------------------------
29 // Destructor
31 
32 //------------------------------------------------------------------------------
33 // Print the MilliSlice DCM Channel identification information
34 void RawDCMChan::print(std::ostream& os) const{
35  os<<boost::format(" DiblockId=%u DCMId=%u DetId=%u RAW=")% getDiblockId()
36  % getDCMId()
37  % getDetId();
38 
39  printWord(0,false, os);
40  os<<std::endl;
41  printWord(0,true, os);
42 }
43 
44 
45 } // end of namespace
#define sizeofdata_t
Definition: FunctionBind.h:30
virtual void copy(const RawDAQData &)
Deep copy from the DAQDataFormat.
Definition: RawDAQData.cpp:830
void lastOperationsInDeepCopy(const RawDAQData &copy_in)
Need to perform these operations in Deep Copy constructor.
Definition: RawDAQData.cpp:151
std::string format(const int32_t &value, const int &ndigits=8)
Definition: HexUtils.cpp:14
void print(std::ostream &os=std::cout) const
Definition: RawDCMChan.cpp:34
void printWord(const uint32_t iword, const bool is_bynary_printing, std::ostream &os=std::cout) const
Print word from Buffer.
Definition: RawDAQData.cpp:440
Class to hold the data from the FEBs in correct formats.
uint32_t sizeofdata() const
Definition: RawDCMChan.h:58