| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

DayaBay::ReadoutRpcChannel Class Reference

Readout data for one channel (strip) in the RPC electronics. More...

#include <ReadoutRpcChannel.h>

Collaboration diagram for DayaBay::ReadoutRpcChannel:

[legend]
List of all members.

Public Member Functions

 ReadoutRpcChannel (const DayaBay::FecChannelId &channelId, DayaBay::ReadoutRpcCrate *readout)
 standard constructor
 ReadoutRpcChannel ()
 Default Constructor.
virtual ~ReadoutRpcChannel ()
 Default Destructor.
virtual std::ostream & fillStream (std::ostream &s) const
 Fill the ASCII output stream.
const DayaBay::FecChannelIdchannelId () const
 Retrieve const Front-End Card Channel ID.
void setChannelId (const DayaBay::FecChannelId &value)
 Update Front-End Card Channel ID.
bool hit () const
 Retrieve const Rpc channel was hit?
void setHit (bool value)
 Update Rpc channel was hit?
const DayaBay::ReadoutRpcCratereadout () const
 Retrieve const Reference to full readout which contains this data.
void setReadout (DayaBay::ReadoutRpcCrate *value)
 Update Reference to full readout which contains this data.

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::FecChannelId m_channelId
 Front-End Card Channel ID.
bool m_hit
 Rpc channel was hit?
DayaBay::ReadoutRpcCratem_readout
 Reference to full readout which contains this data.

Detailed Description

Readout data for one channel (strip) in the RPC electronics.

Author:
dandwyer@caltech.edu created Mon Apr 11 03:45:46 2011

Definition at line 41 of file ReadoutRpcChannel.h.


Constructor & Destructor Documentation

DayaBay::ReadoutRpcChannel::ReadoutRpcChannel ( const DayaBay::FecChannelId channelId,
DayaBay::ReadoutRpcCrate readout 
) [inline]

standard constructor

Definition at line 142 of file ReadoutRpcChannel.h.

00144 {
00145 
00146           setChannelId(channelId);
00147           setReadout(readout);
00148         
00149 }

DayaBay::ReadoutRpcChannel::ReadoutRpcChannel (  )  [inline]

Default Constructor.

Definition at line 50 of file ReadoutRpcChannel.h.

00050                         : m_channelId(0),
00051                           m_hit(),
00052                           m_readout(0) {}

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

Default Destructor.

Definition at line 55 of file ReadoutRpcChannel.h.

00055 {}


Member Function Documentation

std::ostream & DayaBay::ReadoutRpcChannel::fillStream ( std::ostream &  s  )  const [inline, virtual]

Fill the ASCII output stream.

Definition at line 151 of file ReadoutRpcChannel.h.

00152 {
00153   char l_hit = (m_hit) ? 'T' : 'F';
00154   s << "{ " << "channelId :     " << m_channelId << std::endl
00155             << "hit :   " << l_hit << std::endl
00156             << "readout :       " << m_readout << std::endl << " }";
00157   return s;
00158 }

const DayaBay::FecChannelId & DayaBay::ReadoutRpcChannel::channelId (  )  const [inline]

Retrieve const Front-End Card Channel ID.

Definition at line 161 of file ReadoutRpcChannel.h.

00162 {
00163   return m_channelId;
00164 }

void DayaBay::ReadoutRpcChannel::setChannelId ( const DayaBay::FecChannelId value  )  [inline]

Update Front-End Card Channel ID.

Definition at line 166 of file ReadoutRpcChannel.h.

00167 {
00168   m_channelId = value;
00169 }

bool DayaBay::ReadoutRpcChannel::hit (  )  const [inline]

Retrieve const Rpc channel was hit?

Definition at line 171 of file ReadoutRpcChannel.h.

00172 {
00173   return m_hit;
00174 }

void DayaBay::ReadoutRpcChannel::setHit ( bool  value  )  [inline]

Update Rpc channel was hit?

Definition at line 176 of file ReadoutRpcChannel.h.

00177 {
00178   m_hit = value;
00179 }

const DayaBay::ReadoutRpcCrate * DayaBay::ReadoutRpcChannel::readout (  )  const [inline]

Retrieve const Reference to full readout which contains this data.

Definition at line 181 of file ReadoutRpcChannel.h.

00182 {
00183   return m_readout;
00184 }

void DayaBay::ReadoutRpcChannel::setReadout ( DayaBay::ReadoutRpcCrate value  )  [inline]

Update Reference to full readout which contains this data.

Definition at line 186 of file ReadoutRpcChannel.h.

00187 {
00188   m_readout = value;
00189 }

static void* DayaBay::ReadoutRpcChannel::operator new ( size_t  size  )  [inline, static]

operator new

Definition at line 87 of file ReadoutRpcChannel.h.

00088     {
00089       return ( sizeof(ReadoutRpcChannel) == size ? 
00090                boost::singleton_pool<ReadoutRpcChannel, sizeof(ReadoutRpcChannel)>::malloc() :
00091                ::operator new(size) );
00092     }

static void* DayaBay::ReadoutRpcChannel::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

Definition at line 97 of file ReadoutRpcChannel.h.

00098     {
00099       return ::operator new (size,pObj);
00100     }

static void DayaBay::ReadoutRpcChannel::operator delete ( void *  p  )  [inline, static]

operator delete

Definition at line 103 of file ReadoutRpcChannel.h.

00104     {
00105       boost::singleton_pool<ReadoutRpcChannel, sizeof(ReadoutRpcChannel)>::is_from(p) ?
00106       boost::singleton_pool<ReadoutRpcChannel, sizeof(ReadoutRpcChannel)>::free(p) :
00107       ::operator delete(p);
00108     }

static void DayaBay::ReadoutRpcChannel::operator delete ( void *  p,
void *  pObj 
) [inline, static]

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

Definition at line 112 of file ReadoutRpcChannel.h.

00113     {
00114       ::operator delete (p, pObj);
00115     }


Member Data Documentation

DayaBay::FecChannelId DayaBay::ReadoutRpcChannel::m_channelId [private]

Front-End Card Channel ID.

Definition at line 121 of file ReadoutRpcChannel.h.

bool DayaBay::ReadoutRpcChannel::m_hit [private]

Rpc channel was hit?

Definition at line 122 of file ReadoutRpcChannel.h.

DayaBay::ReadoutRpcCrate* DayaBay::ReadoutRpcChannel::m_readout [private]

Reference to full readout which contains this data.

Definition at line 123 of file ReadoutRpcChannel.h.


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

Generated on Mon Apr 11 20:24:50 2011 for ReadoutEvent by doxygen 1.4.7