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

In This Package:

Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
DayaBay::ElecFeeCrate Class Reference

PMT Front-end Electronics Crate. More...

#include <ElecFeeCrate.h>

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

List of all members.

Public Types

typedef std::map
< DayaBay::FeeChannelId,
DayaBay::ElecFeeChannel
ChannelData
 Map of FEE channel data by channel ID.
typedef std::map
< DayaBay::FeeChannelId,
DayaBay::DigitalSignal
DigitalMap
 Map of Digital Signals data by channel ID.
typedef std::map
< DayaBay::FeeChannelId,
DayaBay::AnalogSignal
AnalogMap
 Map of Analog Signals data by channel ID.

Public Member Functions

 ElecFeeCrate (const DayaBay::Detector &detector, DayaBay::ElecCrateHeader *header)
 standard constructor
 ElecFeeCrate (const Site::Site_t &site, const DetectorId::DetectorId_t &detectorId, DayaBay::ElecCrateHeader *header)
 standard constructor
 ElecFeeCrate ()
 Default Constructor.
virtual ~ElecFeeCrate ()
 Default Destructor.
virtual std::ostream & fillStream (std::ostream &s) const
 Fill the ASCII output stream.
void addChannel (const DayaBay::FeeChannelId &channelId)
 Adds a channel to this crate.
ElecFeeChannelchannel (const DayaBay::FeeChannelId &channelId)
 Returns the specified channel from this Crate.
DigitalSignalnhitSignal (const DayaBay::FeeChannelId &channelId)
 Returns the Hits pipeline for specified board in this Crate.
AnalogSignalesumSignal (const DayaBay::FeeChannelId &channelId)
 Returns the Energy pipeline for specified board in this Crate.
const ChannelDatachannelData () const
 Retrieve const The set of channels in this crate.
void setChannelData (const ChannelData &value)
 Update The set of channels in this crate.
const DigitalMapnhit () const
 Retrieve const Nhit signals for each FEE board.
DigitalMapnhit ()
 Retrieve Nhit signals for each FEE board.
void setNhit (const DigitalMap &value)
 Update Nhit signals for each FEE board.
const AnalogMapesum () const
 Retrieve const unshaped Esum signals for each FEE board.
AnalogMapesum ()
 Retrieve unshaped Esum signals for each FEE board.
void setEsum (const AnalogMap &value)
 Update unshaped Esum signals for each FEE board.
const DayaBay::AnalogSignalesumUpper () const
 Retrieve const Esum signal for Upper ESum.
DayaBay::AnalogSignalesumUpper ()
 Retrieve Esum signal for Upper ESum.
void setEsumUpper (const DayaBay::AnalogSignal &value)
 Update Esum signal for Upper ESum.
const DayaBay::AnalogSignalesumLower () const
 Retrieve const Esum signal for Lower ESum.
DayaBay::AnalogSignalesumLower ()
 Retrieve Esum signal for Lower ESum.
void setEsumLower (const DayaBay::AnalogSignal &value)
 Update Esum signal for Lower ESum.
const DayaBay::AnalogSignalesumTotal () const
 Retrieve const ESum signal for Total ESum (Upper + Lower)
DayaBay::AnalogSignalesumTotal ()
 Retrieve ESum signal for Total ESum (Upper + Lower)
void setEsumTotal (const DayaBay::AnalogSignal &value)
 Update ESum signal for Total ESum (Upper + Lower)
const DayaBay::DigitalSignalesumADC () const
 Retrieve const ESum signal for ADC ESum Completion.
DayaBay::DigitalSignalesumADC ()
 Retrieve ESum signal for ADC ESum Completion.
void setEsumADC (const DayaBay::DigitalSignal &value)
 Update ESum signal for ADC ESum Completion.
const DayaBay::Detectordetector () const
 Retrieve const The detector associated with this electronics crate.
void setDetector (const DayaBay::Detector &value)
 Update The detector associated with this electronics crate.
const DayaBay::ElecCrateHeaderheader () const
 Retrieve const The crate header for this electronics crate.
void setHeader (DayaBay::ElecCrateHeader *value)
 Update The crate header for this electronics crate.

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

ChannelData m_channelData
 The set of channels in this crate.
DigitalMap m_nhit
 Nhit signals for each FEE board.
AnalogMap m_esum
 unshaped Esum signals for each FEE board
DayaBay::AnalogSignal m_esumUpper
 Esum signal for Upper ESum.
DayaBay::AnalogSignal m_esumLower
 Esum signal for Lower ESum.
DayaBay::AnalogSignal m_esumTotal
 ESum signal for Total ESum (Upper + Lower)
DayaBay::DigitalSignal m_esumADC
 ESum signal for ADC ESum Completion.

Detailed Description

PMT Front-end Electronics Crate.

Author:
Dan Dwyer (GOD Migration by bseilhan) created Thu Dec 5 18:07:50 2013

Definition at line 41 of file ElecFeeCrate.h.


Member Typedef Documentation

Map of FEE channel data by channel ID.

Definition at line 46 of file ElecFeeCrate.h.

Map of Digital Signals data by channel ID.

Definition at line 48 of file ElecFeeCrate.h.

Map of Analog Signals data by channel ID.

Definition at line 50 of file ElecFeeCrate.h.


Constructor & Destructor Documentation

DayaBay::ElecFeeCrate::ElecFeeCrate ( const DayaBay::Detector detector,
DayaBay::ElecCrateHeader header 
) [inline]

standard constructor

Definition at line 228 of file ElecFeeCrate.h.

{

          setDetector(detector);
          setHeader(header);
        
}
DayaBay::ElecFeeCrate::ElecFeeCrate ( const Site::Site_t site,
const DetectorId::DetectorId_t detectorId,
DayaBay::ElecCrateHeader header 
) [inline]

standard constructor

Definition at line 237 of file ElecFeeCrate.h.

{

          setDetector(DayaBay::Detector(site,
                                        detectorId));
          setHeader(header);
        
}
DayaBay::ElecFeeCrate::ElecFeeCrate ( ) [inline]

Default Constructor.

Definition at line 62 of file ElecFeeCrate.h.

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

Default Destructor.

Definition at line 71 of file ElecFeeCrate.h.

{}

Member Function Documentation

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

Fill the ASCII output stream.

Reimplemented from DayaBay::ElecCrate.

Definition at line 248 of file ElecFeeCrate.h.

{
  ElecCrate::fillStream(s);
  s << "{ " << "channelData :   " << m_channelData << std::endl
            << "nhit :  " << m_nhit << std::endl
            << "esum :  " << m_esum << std::endl
            << "esumUpper :     " << m_esumUpper << std::endl
            << "esumLower :     " << m_esumLower << std::endl
            << "esumTotal :     " << m_esumTotal << std::endl
            << "esumADC :       " << m_esumADC << std::endl << " }";
  return s;
}
void DayaBay::ElecFeeCrate::addChannel ( const DayaBay::FeeChannelId channelId) [inline]

Adds a channel to this crate.

Definition at line 362 of file ElecFeeCrate.h.

{

          m_channelData[channelId];
          m_nhit[channelId.boardId()];
          m_esum[channelId.boardId()];
        
}
DayaBay::ElecFeeChannel & DayaBay::ElecFeeCrate::channel ( const DayaBay::FeeChannelId channelId) [inline]

Returns the specified channel from this Crate.

Definition at line 371 of file ElecFeeCrate.h.

{
return m_channelData[channelId];
}
DayaBay::DigitalSignal & DayaBay::ElecFeeCrate::nhitSignal ( const DayaBay::FeeChannelId channelId) [inline]

Returns the Hits pipeline for specified board in this Crate.

Definition at line 376 of file ElecFeeCrate.h.

{
return m_nhit[channelId.boardId()];
}
DayaBay::AnalogSignal & DayaBay::ElecFeeCrate::esumSignal ( const DayaBay::FeeChannelId channelId) [inline]

Returns the Energy pipeline for specified board in this Crate.

Definition at line 381 of file ElecFeeCrate.h.

{
return m_esum[channelId.boardId()];
}
const DayaBay::ElecFeeCrate::ChannelData & DayaBay::ElecFeeCrate::channelData ( ) const [inline]

Retrieve const The set of channels in this crate.

Definition at line 262 of file ElecFeeCrate.h.

{
  return m_channelData;
}
void DayaBay::ElecFeeCrate::setChannelData ( const ChannelData value) [inline]

Update The set of channels in this crate.

Definition at line 267 of file ElecFeeCrate.h.

{
  m_channelData = value;
}
const DayaBay::ElecFeeCrate::DigitalMap & DayaBay::ElecFeeCrate::nhit ( ) const [inline]

Retrieve const Nhit signals for each FEE board.

Definition at line 272 of file ElecFeeCrate.h.

{
  return m_nhit;
}
DayaBay::ElecFeeCrate::DigitalMap & DayaBay::ElecFeeCrate::nhit ( ) [inline]

Retrieve Nhit signals for each FEE board.

Definition at line 277 of file ElecFeeCrate.h.

{
  return m_nhit;
}
void DayaBay::ElecFeeCrate::setNhit ( const DigitalMap value) [inline]

Update Nhit signals for each FEE board.

Definition at line 282 of file ElecFeeCrate.h.

{
  m_nhit = value;
}
const DayaBay::ElecFeeCrate::AnalogMap & DayaBay::ElecFeeCrate::esum ( ) const [inline]

Retrieve const unshaped Esum signals for each FEE board.

Definition at line 287 of file ElecFeeCrate.h.

{
  return m_esum;
}
DayaBay::ElecFeeCrate::AnalogMap & DayaBay::ElecFeeCrate::esum ( ) [inline]

Retrieve unshaped Esum signals for each FEE board.

Definition at line 292 of file ElecFeeCrate.h.

{
  return m_esum;
}
void DayaBay::ElecFeeCrate::setEsum ( const AnalogMap value) [inline]

Update unshaped Esum signals for each FEE board.

Definition at line 297 of file ElecFeeCrate.h.

{
  m_esum = value;
}
const DayaBay::AnalogSignal & DayaBay::ElecFeeCrate::esumUpper ( ) const [inline]

Retrieve const Esum signal for Upper ESum.

Definition at line 302 of file ElecFeeCrate.h.

{
  return m_esumUpper;
}
DayaBay::AnalogSignal & DayaBay::ElecFeeCrate::esumUpper ( ) [inline]

Retrieve Esum signal for Upper ESum.

Definition at line 307 of file ElecFeeCrate.h.

{
  return m_esumUpper;
}
void DayaBay::ElecFeeCrate::setEsumUpper ( const DayaBay::AnalogSignal value) [inline]

Update Esum signal for Upper ESum.

Definition at line 312 of file ElecFeeCrate.h.

{
  m_esumUpper = value;
}
const DayaBay::AnalogSignal & DayaBay::ElecFeeCrate::esumLower ( ) const [inline]

Retrieve const Esum signal for Lower ESum.

Definition at line 317 of file ElecFeeCrate.h.

{
  return m_esumLower;
}
DayaBay::AnalogSignal & DayaBay::ElecFeeCrate::esumLower ( ) [inline]

Retrieve Esum signal for Lower ESum.

Definition at line 322 of file ElecFeeCrate.h.

{
  return m_esumLower;
}
void DayaBay::ElecFeeCrate::setEsumLower ( const DayaBay::AnalogSignal value) [inline]

Update Esum signal for Lower ESum.

Definition at line 327 of file ElecFeeCrate.h.

{
  m_esumLower = value;
}
const DayaBay::AnalogSignal & DayaBay::ElecFeeCrate::esumTotal ( ) const [inline]

Retrieve const ESum signal for Total ESum (Upper + Lower)

Definition at line 332 of file ElecFeeCrate.h.

{
  return m_esumTotal;
}
DayaBay::AnalogSignal & DayaBay::ElecFeeCrate::esumTotal ( ) [inline]

Retrieve ESum signal for Total ESum (Upper + Lower)

Definition at line 337 of file ElecFeeCrate.h.

{
  return m_esumTotal;
}
void DayaBay::ElecFeeCrate::setEsumTotal ( const DayaBay::AnalogSignal value) [inline]

Update ESum signal for Total ESum (Upper + Lower)

Definition at line 342 of file ElecFeeCrate.h.

{
  m_esumTotal = value;
}
const DayaBay::DigitalSignal & DayaBay::ElecFeeCrate::esumADC ( ) const [inline]

Retrieve const ESum signal for ADC ESum Completion.

Definition at line 347 of file ElecFeeCrate.h.

{
  return m_esumADC;
}
DayaBay::DigitalSignal & DayaBay::ElecFeeCrate::esumADC ( ) [inline]

Retrieve ESum signal for ADC ESum Completion.

Definition at line 352 of file ElecFeeCrate.h.

{
  return m_esumADC;
}
void DayaBay::ElecFeeCrate::setEsumADC ( const DayaBay::DigitalSignal value) [inline]

Update ESum signal for ADC ESum Completion.

Definition at line 357 of file ElecFeeCrate.h.

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

operator new

Reimplemented from DayaBay::ElecCrate.

Definition at line 171 of file ElecFeeCrate.h.

    {
      return ( sizeof(ElecFeeCrate) == size ? 
               boost::singleton_pool<ElecFeeCrate, sizeof(ElecFeeCrate)>::malloc() :
               ::operator new(size) );
    }
static void* DayaBay::ElecFeeCrate::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 from DayaBay::ElecCrate.

Definition at line 181 of file ElecFeeCrate.h.

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

operator delete

Reimplemented from DayaBay::ElecCrate.

Definition at line 187 of file ElecFeeCrate.h.

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

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

Reimplemented from DayaBay::ElecCrate.

Definition at line 196 of file ElecFeeCrate.h.

    {
      ::operator delete (p, pObj);
    }
const DayaBay::Detector & DayaBay::ElecCrate::detector ( ) const [inline, inherited]

Retrieve const The detector associated with this electronics crate.

Definition at line 167 of file ElecCrate.h.

{
  return m_detector;
}
void DayaBay::ElecCrate::setDetector ( const DayaBay::Detector value) [inline, inherited]

Update The detector associated with this electronics crate.

Definition at line 172 of file ElecCrate.h.

{
  m_detector = value;
}
const DayaBay::ElecCrateHeader * DayaBay::ElecCrate::header ( ) const [inline, inherited]

Retrieve const The crate header for this electronics crate.

Definition at line 177 of file ElecCrate.h.

{
  return m_header;
}
void DayaBay::ElecCrate::setHeader ( DayaBay::ElecCrateHeader value) [inline, inherited]

Update The crate header for this electronics crate.

Definition at line 182 of file ElecCrate.h.

{
  m_header = value;
}

Member Data Documentation

The set of channels in this crate.

Definition at line 205 of file ElecFeeCrate.h.

Nhit signals for each FEE board.

Definition at line 206 of file ElecFeeCrate.h.

unshaped Esum signals for each FEE board

Definition at line 207 of file ElecFeeCrate.h.

Esum signal for Upper ESum.

Definition at line 208 of file ElecFeeCrate.h.

Esum signal for Lower ESum.

Definition at line 209 of file ElecFeeCrate.h.

ESum signal for Total ESum (Upper + Lower)

Definition at line 210 of file ElecFeeCrate.h.

ESum signal for ADC ESum Completion.

Definition at line 211 of file ElecFeeCrate.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 Fri May 16 2014 10:05:49 for ElecEvent by doxygen 1.7.4