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

In This Package:

ReadoutTriggerDataFrame.cc
Go to the documentation of this file.
00001 #include "Event/ReadoutTriggerDataFrame.h"
00002 #include <ostream>
00003 
00004 std::ostream& DayaBay::ReadoutTriggerDataFrame::fillStream(std::ostream& s) const
00005 {
00006     s  << "\t{\n"
00007        << "\t\ttime: " << m_triggerTime << std::endl;
00008     s  << "\t\tNhit: " << m_nhit << std::endl;
00009     s  << "\t\tesumComp: " << m_esumComp << std::endl;
00010     s  << "\t\tesumAdc: " << m_esumAdc << std::endl;
00011     s  << "\t\tcross source: " << m_crossSource << std::endl;
00012     s  << "\t\tcycle: " << m_cycle << std::endl;
00013 
00014     s << "\t}" << std::endl;
00015     return s;
00016 }
00017 
00018 DayaBay::DaqLtbFrame* DayaBay::ReadoutTriggerDataFrame::daqLtbFrame(const DayaBay::Detector& detector) const {
00019     DaqLtbFrame* result = new DaqLtbFrame(m_readoutType,
00020                                           m_triggerType,
00021                                           TimeStamp(m_triggerTime),
00022                                           m_nhit,
00023                                           m_esumAdc,
00024                                           0 != (m_esumComp & 0x04),
00025                                           0 != (m_esumComp & 0x02),
00026                                           0 != (m_esumComp & 0x01),
00027                                           m_crossSource,
00028                                           detector);
00029     return result;
00030 }
00031 
00032 const DayaBay::ReadoutRpcTriggerDataFrame* DayaBay::ReadoutTriggerDataFrame::asRpcFrame() const
00033 {
00034     return dynamic_cast<const ReadoutRpcTriggerDataFrame*>(this);
00035 }
00036 
00037 DayaBay::ReadoutTriggerDataFrame::ReadoutTriggerDataFrame(const DayaBay::ReadoutTriggerDataFrame& rh)
00038 {
00039     m_package=0; 
00040     m_seqNumber=rh.seqNumber();
00041     m_readoutType=rh.readoutType();
00042     m_triggerType=rh.triggerType();
00043     m_triggerTime=rh.triggerTime();
00044     m_cycle=rh.cycle();
00045     m_nhit=rh.nhit();
00046     m_esumAdc=rh.esumAdc();
00047     m_esumComp=rh.esumComp();
00048     m_crossSource=rh.crossSource();
00049 }
00050 
00051 DayaBay::ReadoutTriggerDataFrame& DayaBay::ReadoutTriggerDataFrame::operator=(const DayaBay::ReadoutTriggerDataFrame& rh)
00052 {
00053     if (this == &rh) return *this;
00054 
00055     m_package=0; 
00056     m_seqNumber=rh.seqNumber();
00057     m_readoutType=rh.readoutType();
00058     m_triggerType=rh.triggerType();
00059     m_triggerTime=rh.triggerTime();
00060     m_cycle=rh.cycle();
00061     m_nhit=rh.nhit();
00062     m_esumAdc=rh.esumAdc();
00063     m_esumComp=rh.esumComp();
00064     m_crossSource=rh.crossSource();
00065 
00066     return *this;
00067 }
00068 
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 10:01:16 for ReadoutEvent by doxygen 1.7.4