/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::DaqRpcStrip Class Reference

Class that describes a RPC hit in a strip. More...

#include <DaqRpcStrip.h>

Collaboration diagram for DayaBay::DaqRpcStrip:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DaqRpcStrip (const DayaBay::FecChannelId &channelId, const DayaBay::DaqRpcPanel *rpcPanel)
 Constructor.
 DaqRpcStrip ()
 Default Constructor.
virtual ~DaqRpcStrip ()
 Destroy this instance of the class.
virtual std::ostream & fillStream (std::ostream &s) const
 Fill the ASCII output stream.
bool fromRot () const
 whether this hit is from the main trigger
int layer () const
 NOTE: To be abandoned, use channelId instead.
int strip () const
 NOTE: To be abandoned, use channelId instead.
const DayaBay::FecChannelIdchannelId () const
 Retrieve const channelId of this hit in the module.
const DayaBay::DaqRpcPanelrpcPanel () const
 Retrieve const The pointer to DaqRpcPanel that contains this hit.

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
 channelId of this hit in the module
const DayaBay::DaqRpcPanelm_rpcPanel
 The pointer to DaqRpcPanel that contains this hit.

Detailed Description

Class that describes a RPC hit in a strip.

Author:
zoujh@ihep.ac.cn created Thu Dec 5 17:51:48 2013

Definition at line 41 of file DaqRpcStrip.h.


Constructor & Destructor Documentation

DaqRpcStrip::DaqRpcStrip ( const DayaBay::FecChannelId channelId,
const DayaBay::DaqRpcPanel rpcPanel 
)

Constructor.

Definition at line 8 of file DaqRpcStrip.cc.

    : m_channelId(channelId),
      m_rpcPanel(rpcPanel)
{
}
DayaBay::DaqRpcStrip::DaqRpcStrip ( ) [inline]

Default Constructor.

Definition at line 50 of file DaqRpcStrip.h.

                  : m_channelId(),
                    m_rpcPanel(0) {}
DaqRpcStrip::~DaqRpcStrip ( ) [virtual]

Destroy this instance of the class.

Definition at line 14 of file DaqRpcStrip.cc.

{
}

Member Function Documentation

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

Fill the ASCII output stream.

Definition at line 133 of file DaqRpcStrip.h.

{
  s << "{ " << "channelId :     " << m_channelId << std::endl
            << "rpcPanel :      " << m_rpcPanel << std::endl << " }";
  return s;
}
bool DaqRpcStrip::fromRot ( ) const

whether this hit is from the main trigger

Definition at line 18 of file DaqRpcStrip.cc.

{
    if ( m_rpcPanel != 0 ) {
        return m_rpcPanel->fromRot();
    }
    return false;
}
int DaqRpcStrip::layer ( ) const

NOTE: To be abandoned, use channelId instead.

Definition at line 26 of file DaqRpcStrip.cc.

{
    std::cerr << "use DaqRpcStrip::connector() instead of DaqRpcStrip::layer()" << std::endl;
    return 0;
}
int DaqRpcStrip::strip ( ) const

NOTE: To be abandoned, use channelId instead.

Definition at line 32 of file DaqRpcStrip.cc.

{
    std::cerr << "use DaqRpcStrip::connector() instead of DaqRpcStrip::strip()" << std::endl;
    return 0;
}
const DayaBay::FecChannelId & DayaBay::DaqRpcStrip::channelId ( ) const [inline]

Retrieve const channelId of this hit in the module.

Definition at line 141 of file DaqRpcStrip.h.

{
  return m_channelId;
}
const DayaBay::DaqRpcPanel * DayaBay::DaqRpcStrip::rpcPanel ( ) const [inline]

Retrieve const The pointer to DaqRpcPanel that contains this hit.

Definition at line 146 of file DaqRpcStrip.h.

{
  return m_rpcPanel;
}
static void* DayaBay::DaqRpcStrip::operator new ( size_t  size) [inline, static]

operator new

Definition at line 79 of file DaqRpcStrip.h.

    {
      return ( sizeof(DaqRpcStrip) == size ? 
               boost::singleton_pool<DaqRpcStrip, sizeof(DaqRpcStrip)>::malloc() :
               ::operator new(size) );
    }
static void* DayaBay::DaqRpcStrip::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 89 of file DaqRpcStrip.h.

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

operator delete

Definition at line 95 of file DaqRpcStrip.h.

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

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

Definition at line 104 of file DaqRpcStrip.h.

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

Member Data Documentation

channelId of this hit in the module

Definition at line 113 of file DaqRpcStrip.h.

The pointer to DaqRpcPanel that contains this hit.

Definition at line 114 of file DaqRpcStrip.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:06 for DaqEvent by doxygen 1.7.4