/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Public Attributes
PerReadoutHeader Class Reference

#include <PerReadoutHeader.h>

Inheritance diagram for PerReadoutHeader:
Inheritance graph
[legend]
Collaboration diagram for PerReadoutHeader:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PerReadoutHeader ()
virtual ~PerReadoutHeader ()
PerDaqPmtCrate daqPmtCrate (bool deepCopy=true) const

Public Attributes

PerReadoutreadout
Context context
int execNumber
DayaBay::JobId jobId
std::vector< unsigned long > randomState
std::vector< PerRefinputHeaders
TimeStamp earliest
TimeStamp latest
int clID

Detailed Description

Definition at line 17 of file PerReadoutHeader.h.


Constructor & Destructor Documentation

PerReadoutHeader::PerReadoutHeader ( )

Definition at line 13 of file PerReadoutHeader.cc.

PerReadoutHeader::~PerReadoutHeader ( ) [virtual]

Definition at line 18 of file PerReadoutHeader.cc.

{
    if (readout) {
        delete readout; readout = 0;
    }
}

Member Function Documentation

PerDaqPmtCrate PerReadoutHeader::daqPmtCrate ( bool  deepCopy = true) const

Definition at line 25 of file PerReadoutHeader.cc.

                                                                {
    std::vector<unsigned int>& rawData = readout->rawEvent;
    unsigned int capacity = rawData.size() * ByteBuffer::BYTES_IN_INT;
    char* buffer;
    if (deepCopy) {
        buffer = new char[capacity];
        memcpy(buffer,
               &(rawData[0]),
               capacity);
    } else {
        buffer = (char*)(&(rawData[0]));
    }
    ByteBuffer* byteBuffer = new ByteBuffer(buffer,
                                            capacity);
    EventReadout* eventReadout =  new EventReadout(*byteBuffer);
    byteBuffer->release();
    return PerDaqPmtCrate(eventReadout);
}

Member Data Documentation

Definition at line 22 of file PerReadoutHeader.h.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 10:05:05 for PerReadoutEvent by doxygen 1.7.4