/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 | Static Public Member Functions | Private Attributes
DayaBay::ReadoutTriggerDataFrame Class Reference

Trigger Data Frame. More...

#include <ReadoutTriggerDataFrame.h>

Inheritance diagram for DayaBay::ReadoutTriggerDataFrame:
Inheritance graph
[legend]
Collaboration diagram for DayaBay::ReadoutTriggerDataFrame:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ReadoutTriggerDataFrame (const DayaBay::ReadoutTriggerDataFrame &rhs)
 copy constructor
 ReadoutTriggerDataFrame ()
 Default Constructor.
virtual ~ReadoutTriggerDataFrame ()
 Default Destructor.
DaqLtbFramedaqLtbFrame (const DayaBay::Detector &detector) const
 Create DaqEvent version of this object.
const
DayaBay::ReadoutRpcTriggerDataFrame
asRpcFrame () const
 Return this object as ReadoutRpcTriggerDataFrame.
ReadoutTriggerDataFrameoperator= (const DayaBay::ReadoutTriggerDataFrame &rhs)
 assignment operator
std::ostream & fillStream (std::ostream &s) const
 Print the trigger data package data.
const
DayaBay::ReadoutTriggerDataPkg
package () const
 Retrieve const Trigger Data Package that this frame lives in.
void setPackage (DayaBay::ReadoutTriggerDataPkg *value)
 Update Trigger Data Package that this frame lives in.
int seqNumber () const
 Retrieve const Internal Local Trigger Sequence Number.
void setSeqNumber (int value)
 Update Internal Local Trigger Sequence Number.
int readoutType () const
 Retrieve const Read Out Type.
void setReadoutType (int value)
 Update Read Out Type.
const
DayaBay::Trigger::TriggerType_t
triggerType () const
 Retrieve const Trigger Type.
void setTriggerType (const DayaBay::Trigger::TriggerType_t &value)
 Update Trigger Type.
const TimeStamptriggerTime () const
 Retrieve const Time in seconds since epoch.
void setTriggerTime (const TimeStamp &value)
 Update Time in seconds since epoch.
unsigned int cycle () const
 Retrieve const Clock Cycle Number (12.5ns) since previous second (m_triggerTime)
void setCycle (unsigned int value)
 Update Clock Cycle Number (12.5ns) since previous second (m_triggerTime)
int nhit () const
 Retrieve const NHit.
void setNhit (int value)
 Update NHit.
int esumAdc () const
 Retrieve const ESum adc data.
void setEsumAdc (int value)
 Update ESum adc data.
int esumComp () const
 Retrieve const ESum comp data.
void setEsumComp (int value)
 Update ESum comp data.
int crossSource () const
 Retrieve const Cross Trigger Source.
void setCrossSource (int value)
 Update Cross Trigger Source.
bool isRpc () const
 Retrieve const Is it an RPC trigger frame?
void setIsRpc (bool value)
 Update Is it an RPC trigger frame?

Static Public Member Functions

static void * operator new (size_t size)
 operator new
static void * operator new (size_t size, void *pObj)
 placement operator new it is needed by libstdc++ 3.2.3 (e.g.
static void operator delete (void *p)
 operator delete
static void operator delete (void *p, void *pObj)
 placement operator delete not sure if really needed, but it does not harm

Private Attributes

DayaBay::ReadoutTriggerDataPkgm_package
 Trigger Data Package that this frame lives in.
int m_seqNumber
 Internal Local Trigger Sequence Number.
int m_readoutType
 Read Out Type.
DayaBay::Trigger::TriggerType_t m_triggerType
 Trigger Type.
TimeStamp m_triggerTime
 Time in seconds since epoch.
unsigned int m_cycle
 Clock Cycle Number (12.5ns) since previous second (m_triggerTime)
int m_nhit
 NHit.
int m_esumAdc
 ESum adc data.
int m_esumComp
 ESum comp data.
int m_crossSource
 Cross Trigger Source.
bool m_isRpc
 Is it an RPC trigger frame?

Detailed Description

Trigger Data Frame.

Author:
bseilhan@iit.edu created Thu Dec 5 17:52:31 2013

Definition at line 44 of file ReadoutTriggerDataFrame.h.


Constructor & Destructor Documentation

DayaBay::ReadoutTriggerDataFrame::ReadoutTriggerDataFrame ( const DayaBay::ReadoutTriggerDataFrame rhs)

copy constructor

should be by data pacakge

Definition at line 37 of file ReadoutTriggerDataFrame.cc.

{
    m_package=0; 
    m_seqNumber=rh.seqNumber();
    m_readoutType=rh.readoutType();
    m_triggerType=rh.triggerType();
    m_triggerTime=rh.triggerTime();
    m_cycle=rh.cycle();
    m_nhit=rh.nhit();
    m_esumAdc=rh.esumAdc();
    m_esumComp=rh.esumComp();
    m_crossSource=rh.crossSource();
}
DayaBay::ReadoutTriggerDataFrame::ReadoutTriggerDataFrame ( ) [inline]

Default Constructor.

Definition at line 52 of file ReadoutTriggerDataFrame.h.

virtual DayaBay::ReadoutTriggerDataFrame::~ReadoutTriggerDataFrame ( ) [inline, virtual]

Default Destructor.

Definition at line 65 of file ReadoutTriggerDataFrame.h.

{}

Member Function Documentation

DayaBay::DaqLtbFrame * DayaBay::ReadoutTriggerDataFrame::daqLtbFrame ( const DayaBay::Detector detector) const

Create DaqEvent version of this object.

Definition at line 18 of file ReadoutTriggerDataFrame.cc.

                                                                                                     {
    DaqLtbFrame* result = new DaqLtbFrame(m_readoutType,
                                          m_triggerType,
                                          TimeStamp(m_triggerTime),
                                          m_nhit,
                                          m_esumAdc,
                                          0 != (m_esumComp & 0x04),
                                          0 != (m_esumComp & 0x02),
                                          0 != (m_esumComp & 0x01),
                                          m_crossSource,
                                          detector);
    return result;
}
const DayaBay::ReadoutRpcTriggerDataFrame * DayaBay::ReadoutTriggerDataFrame::asRpcFrame ( ) const

Return this object as ReadoutRpcTriggerDataFrame.

Definition at line 32 of file ReadoutTriggerDataFrame.cc.

{
    return dynamic_cast<const ReadoutRpcTriggerDataFrame*>(this);
}
DayaBay::ReadoutTriggerDataFrame & DayaBay::ReadoutTriggerDataFrame::operator= ( const DayaBay::ReadoutTriggerDataFrame rhs)

assignment operator

should be by data pacakge

Definition at line 51 of file ReadoutTriggerDataFrame.cc.

{
    if (this == &rh) return *this;

    m_package=0; 
    m_seqNumber=rh.seqNumber();
    m_readoutType=rh.readoutType();
    m_triggerType=rh.triggerType();
    m_triggerTime=rh.triggerTime();
    m_cycle=rh.cycle();
    m_nhit=rh.nhit();
    m_esumAdc=rh.esumAdc();
    m_esumComp=rh.esumComp();
    m_crossSource=rh.crossSource();

    return *this;
}
std::ostream & DayaBay::ReadoutTriggerDataFrame::fillStream ( std::ostream &  s) const

Print the trigger data package data.

Reimplemented in DayaBay::ReadoutRpcTriggerDataFrame.

Definition at line 4 of file ReadoutTriggerDataFrame.cc.

{
    s  << "\t{\n"
       << "\t\ttime: " << m_triggerTime << std::endl;
    s  << "\t\tNhit: " << m_nhit << std::endl;
    s  << "\t\tesumComp: " << m_esumComp << std::endl;
    s  << "\t\tesumAdc: " << m_esumAdc << std::endl;
    s  << "\t\tcross source: " << m_crossSource << std::endl;
    s  << "\t\tcycle: " << m_cycle << std::endl;

    s << "\t}" << std::endl;
    return s;
}
const DayaBay::ReadoutTriggerDataPkg * DayaBay::ReadoutTriggerDataFrame::package ( ) const [inline]

Retrieve const Trigger Data Package that this frame lives in.

Definition at line 234 of file ReadoutTriggerDataFrame.h.

{
  return m_package;
}
void DayaBay::ReadoutTriggerDataFrame::setPackage ( DayaBay::ReadoutTriggerDataPkg value) [inline]

Update Trigger Data Package that this frame lives in.

Definition at line 239 of file ReadoutTriggerDataFrame.h.

{
  m_package = value;
}
int DayaBay::ReadoutTriggerDataFrame::seqNumber ( ) const [inline]

Retrieve const Internal Local Trigger Sequence Number.

Definition at line 244 of file ReadoutTriggerDataFrame.h.

{
  return m_seqNumber;
}
void DayaBay::ReadoutTriggerDataFrame::setSeqNumber ( int  value) [inline]

Update Internal Local Trigger Sequence Number.

Definition at line 249 of file ReadoutTriggerDataFrame.h.

{
  m_seqNumber = value;
}
int DayaBay::ReadoutTriggerDataFrame::readoutType ( ) const [inline]

Retrieve const Read Out Type.

Definition at line 254 of file ReadoutTriggerDataFrame.h.

{
  return m_readoutType;
}
void DayaBay::ReadoutTriggerDataFrame::setReadoutType ( int  value) [inline]

Update Read Out Type.

Definition at line 259 of file ReadoutTriggerDataFrame.h.

{
  m_readoutType = value;
}
const DayaBay::Trigger::TriggerType_t & DayaBay::ReadoutTriggerDataFrame::triggerType ( ) const [inline]

Retrieve const Trigger Type.

Definition at line 264 of file ReadoutTriggerDataFrame.h.

{
  return m_triggerType;
}
void DayaBay::ReadoutTriggerDataFrame::setTriggerType ( const DayaBay::Trigger::TriggerType_t value) [inline]

Update Trigger Type.

Definition at line 269 of file ReadoutTriggerDataFrame.h.

{
  m_triggerType = value;
}
const TimeStamp & DayaBay::ReadoutTriggerDataFrame::triggerTime ( ) const [inline]

Retrieve const Time in seconds since epoch.

Definition at line 274 of file ReadoutTriggerDataFrame.h.

{
  return m_triggerTime;
}
void DayaBay::ReadoutTriggerDataFrame::setTriggerTime ( const TimeStamp value) [inline]

Update Time in seconds since epoch.

Definition at line 279 of file ReadoutTriggerDataFrame.h.

{
  m_triggerTime = value;
}
unsigned int DayaBay::ReadoutTriggerDataFrame::cycle ( ) const [inline]

Retrieve const Clock Cycle Number (12.5ns) since previous second (m_triggerTime)

Definition at line 284 of file ReadoutTriggerDataFrame.h.

{
  return m_cycle;
}
void DayaBay::ReadoutTriggerDataFrame::setCycle ( unsigned int  value) [inline]

Update Clock Cycle Number (12.5ns) since previous second (m_triggerTime)

Definition at line 289 of file ReadoutTriggerDataFrame.h.

{
  m_cycle = value;
}
int DayaBay::ReadoutTriggerDataFrame::nhit ( ) const [inline]

Retrieve const NHit.

Definition at line 294 of file ReadoutTriggerDataFrame.h.

{
  return m_nhit;
}
void DayaBay::ReadoutTriggerDataFrame::setNhit ( int  value) [inline]

Update NHit.

Definition at line 299 of file ReadoutTriggerDataFrame.h.

{
  m_nhit = value;
}
int DayaBay::ReadoutTriggerDataFrame::esumAdc ( ) const [inline]

Retrieve const ESum adc data.

Definition at line 304 of file ReadoutTriggerDataFrame.h.

{
  return m_esumAdc;
}
void DayaBay::ReadoutTriggerDataFrame::setEsumAdc ( int  value) [inline]

Update ESum adc data.

Definition at line 309 of file ReadoutTriggerDataFrame.h.

{
  m_esumAdc = value;
}
int DayaBay::ReadoutTriggerDataFrame::esumComp ( ) const [inline]

Retrieve const ESum comp data.

Definition at line 314 of file ReadoutTriggerDataFrame.h.

{
  return m_esumComp;
}
void DayaBay::ReadoutTriggerDataFrame::setEsumComp ( int  value) [inline]

Update ESum comp data.

Definition at line 319 of file ReadoutTriggerDataFrame.h.

{
  m_esumComp = value;
}
int DayaBay::ReadoutTriggerDataFrame::crossSource ( ) const [inline]

Retrieve const Cross Trigger Source.

Definition at line 324 of file ReadoutTriggerDataFrame.h.

{
  return m_crossSource;
}
void DayaBay::ReadoutTriggerDataFrame::setCrossSource ( int  value) [inline]

Update Cross Trigger Source.

Definition at line 329 of file ReadoutTriggerDataFrame.h.

{
  m_crossSource = value;
}
bool DayaBay::ReadoutTriggerDataFrame::isRpc ( ) const [inline]

Retrieve const Is it an RPC trigger frame?

Definition at line 334 of file ReadoutTriggerDataFrame.h.

{
  return m_isRpc;
}
void DayaBay::ReadoutTriggerDataFrame::setIsRpc ( bool  value) [inline]

Update Is it an RPC trigger frame?

Definition at line 339 of file ReadoutTriggerDataFrame.h.

{
  m_isRpc = value;
}
static void* DayaBay::ReadoutTriggerDataFrame::operator new ( size_t  size) [inline, static]

operator new

Reimplemented in DayaBay::ReadoutRpcTriggerDataFrame.

Definition at line 170 of file ReadoutTriggerDataFrame.h.

    {
      return ( sizeof(ReadoutTriggerDataFrame) == size ? 
               boost::singleton_pool<ReadoutTriggerDataFrame, sizeof(ReadoutTriggerDataFrame)>::malloc() :
               ::operator new(size) );
    }
static void* DayaBay::ReadoutTriggerDataFrame::operator new ( size_t  size,
void *  pObj 
) [inline, static]

placement operator new it is needed by libstdc++ 3.2.3 (e.g.

in std::vector) it is not needed in libstdc++ >= 3.4

Reimplemented in DayaBay::ReadoutRpcTriggerDataFrame.

Definition at line 180 of file ReadoutTriggerDataFrame.h.

    {
      return ::operator new (size,pObj);
    }
static void DayaBay::ReadoutTriggerDataFrame::operator delete ( void *  p) [inline, static]

operator delete

Reimplemented in DayaBay::ReadoutRpcTriggerDataFrame.

Definition at line 186 of file ReadoutTriggerDataFrame.h.

    {
      boost::singleton_pool<ReadoutTriggerDataFrame, sizeof(ReadoutTriggerDataFrame)>::is_from(p) ?
      boost::singleton_pool<ReadoutTriggerDataFrame, sizeof(ReadoutTriggerDataFrame)>::free(p) :
      ::operator delete(p);
    }
static void DayaBay::ReadoutTriggerDataFrame::operator delete ( void *  p,
void *  pObj 
) [inline, static]

placement operator delete not sure if really needed, but it does not harm

Reimplemented in DayaBay::ReadoutRpcTriggerDataFrame.

Definition at line 195 of file ReadoutTriggerDataFrame.h.

    {
      ::operator delete (p, pObj);
    }

Member Data Documentation

Trigger Data Package that this frame lives in.

Definition at line 204 of file ReadoutTriggerDataFrame.h.

Internal Local Trigger Sequence Number.

Definition at line 205 of file ReadoutTriggerDataFrame.h.

Read Out Type.

Definition at line 206 of file ReadoutTriggerDataFrame.h.

Trigger Type.

Definition at line 207 of file ReadoutTriggerDataFrame.h.

Time in seconds since epoch.

Definition at line 208 of file ReadoutTriggerDataFrame.h.

Clock Cycle Number (12.5ns) since previous second (m_triggerTime)

Definition at line 209 of file ReadoutTriggerDataFrame.h.

NHit.

Definition at line 210 of file ReadoutTriggerDataFrame.h.

ESum adc data.

Definition at line 211 of file ReadoutTriggerDataFrame.h.

ESum comp data.

Definition at line 212 of file ReadoutTriggerDataFrame.h.

Cross Trigger Source.

Definition at line 213 of file ReadoutTriggerDataFrame.h.

Is it an RPC trigger frame?

Definition at line 214 of file ReadoutTriggerDataFrame.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:01:16 for ReadoutEvent by doxygen 1.7.4