/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 Attributes | Protected Member Functions | Private Member Functions | Friends
DybDaq::FeeHit Class Reference

#include <FeeHit.h>

Inheritance diagram for DybDaq::FeeHit:
Inheritance graph
[legend]
Collaboration diagram for DybDaq::FeeHit:
Collaboration graph
[legend]

List of all members.

Public Types

typedef std::pair< const char
*, unsigned int > 
OutputBuffer
typedef std::vector< OutputBufferOutputBufferList
typedef std::vector
< ByteInspector * > 
Bytes
typedef std::vector
< BitsInspector * > 
Bits

Public Member Functions

virtual ~FeeHit ()
 Destroy this instance of the class.
unsigned int channelId () const
 Returns the channel id for this object.
unsigned int adcChannelId () const
 Returns the ADC channel id for this object.
unsigned int peakCycle () const
 Returns the cycle of the ADC peak.
bool isHighRangeAdc () const
 Returns true if the High ADC was readout.
unsigned int preAdc () const
 Returns the mesured pre-ADC value.
unsigned int adc () const
 Returns the measured ADC value.
unsigned int tdcChannelId () const
 Returns the TDC channel id for this object.
unsigned int hitNumber () const
 Returns the hit number within the trigger (counting backwards).
unsigned int tdc () const
 Returns the measured TDC value.
virtual unsigned int bufferSize () const
 Returns the size, in 4-bytes, of this ojbect's contents in the buffer.
const FeeTraitsfeeTraits () const
 Returns the FeeTraits instance used to parse this object's buffer.
bool hasDaqTraits () const
virtual const DaqTraitsdaqTraits () const
virtual unsigned int gather (OutputBufferList &outputBuffers) const
virtual unsigned int inspect (DaqBuffer::Bytes &inspectors) const

Static Public Attributes

static const unsigned int kBytesInInt
static const unsigned int kUndefinedFormatComponent

Protected Member Functions

virtual unsigned int formatComponent () const
 Returns the component with the format of this buffer.
const char * buffer () const
char * buffer ()
bool hasByteBuffer () const
const ByteBufferbyteBuffer () const
unsigned int fillInspectors (DaqBuffer::Bytes &inspectors, unsigned int component, unsigned int cursor) const
virtual bool readBool (const unsigned int field) const
virtual int readInt (const unsigned int field) const
virtual unsigned char readUnsignedChar (const unsigned int field) const
virtual unsigned int readUnsignedInt (const unsigned int field) const
virtual void writeField (const bool value, const unsigned int field)
virtual void writeField (const int value, const unsigned int field)
virtual void writeField (const unsigned int value, const unsigned int field)

Private Member Functions

 FeeHit (const unsigned int channel, const unsigned int peakCycle, const bool highRangeAdc, const unsigned int pedestal, const unsigned int charge, const unsigned int hitNumber, const unsigned int time, const FeeTraits &traits)
 FeeHit (const ByteBuffer &byteBuffer, const FeeTraits &traits)
 Create an instance of this class.
 FeeHit ()
 Suppress default.
 FeeHit (FeeHit &rhs)
 Suppress default.
FeeHitoperator= (FeeHit &rhs)
 Suppress default.
void setChannelId (const unsigned int channelId)
 Set the channel id.
void setPeakCycle (const unsigned int peakCycle)
 Set the cycle of the ADC peak.
void setHighRangeAdc (const bool highRangeAdc)
 Set whether the High ADC was readout or not.
void setPreAdc (const unsigned int value)
 Set the mesured pre-ADC value.
void setAdc (const unsigned int value)
 Set the measured ADC value.
void setHitNumber (const unsigned int hitNumber)
 Set the hit number within the trigger (counting backwards).
void setTdc (const unsigned int value)
 Set the measured TDC vlaue.

Friends

class FeeReadout

Detailed Description

Definition at line 20 of file FeeHit.h.


Constructor & Destructor Documentation

FeeHit::~FeeHit ( ) [virtual]

Destroy this instance of the class.

Definition at line 43 of file FeeHit.cc.

                {
}
FeeHit::FeeHit ( const unsigned int  channel,
const unsigned int  peakCycle,
const bool  highRangeAdc,
const unsigned int  pedestal,
const unsigned int  charge,
const unsigned int  hitNumber,
const unsigned int  time,
const FeeTraits traits 
) [private]

Definition at line 16 of file FeeHit.cc.

                                        :
FeeBuffer(new char[traits.hitSize() * kBytesInInt],
          traits) {
    traits.initializeHit(buffer());
    setChannelId(channelId);
    setPeakCycle(peakCycle);
    setHighRangeAdc(highRangeAdc);
    setPreAdc(preAdc);
    setAdc(adc);
    setHitNumber(hitNumber);
    setTdc(tdc);
}
FeeHit::FeeHit ( const ByteBuffer byteBuffer,
const FeeTraits traits 
) [private]

Create an instance of this class.

Definition at line 36 of file FeeHit.cc.

                                        :
FeeBuffer(byteBuffer,
          traits) {
        byteBuffer.position(byteBuffer.position() + (feeTraits().hitSize() * kBytesInInt));
}
DybDaq::FeeHit::FeeHit ( ) [private]

Suppress default.

DybDaq::FeeHit::FeeHit ( FeeHit rhs) [private]

Suppress default.


Member Function Documentation

unsigned int FeeHit::channelId ( ) const

Returns the channel id for this object.

Definition at line 50 of file FeeHit.cc.

unsigned int FeeHit::adcChannelId ( ) const

Returns the ADC channel id for this object.

Definition at line 54 of file FeeHit.cc.

unsigned int FeeHit::peakCycle ( ) const

Returns the cycle of the ADC peak.

Definition at line 58 of file FeeHit.cc.

bool FeeHit::isHighRangeAdc ( ) const

Returns true if the High ADC was readout.

Definition at line 62 of file FeeHit.cc.

unsigned int FeeHit::preAdc ( ) const

Returns the mesured pre-ADC value.

Definition at line 66 of file FeeHit.cc.

unsigned int FeeHit::adc ( ) const

Returns the measured ADC value.

Definition at line 70 of file FeeHit.cc.

unsigned int FeeHit::tdcChannelId ( ) const

Returns the TDC channel id for this object.

Definition at line 74 of file FeeHit.cc.

unsigned int FeeHit::hitNumber ( ) const

Returns the hit number within the trigger (counting backwards).

Definition at line 78 of file FeeHit.cc.

unsigned int FeeHit::tdc ( ) const

Returns the measured TDC value.

Definition at line 82 of file FeeHit.cc.

unsigned int FeeHit::bufferSize ( ) const [virtual]

Returns the size, in 4-bytes, of this ojbect's contents in the buffer.

Implements DybDaq::DaqBuffer.

Definition at line 86 of file FeeHit.cc.

                                      {
    return feeTraits().hitSize();
}
unsigned int FeeHit::formatComponent ( ) const [protected, virtual]

Returns the component with the format of this buffer.

Reimplemented from DybDaq::DaqBuffer.

Definition at line 46 of file FeeHit.cc.

                                           {
    return FeeTraits::kHit;
}
FeeHit& DybDaq::FeeHit::operator= ( FeeHit rhs) [private]

Suppress default.

void FeeHit::setChannelId ( const unsigned int  channelId) [private]
void FeeHit::setPeakCycle ( const unsigned int  peakCycle) [private]

Set the cycle of the ADC peak.

Definition at line 97 of file FeeHit.cc.

void FeeHit::setHighRangeAdc ( const bool  highRangeAdc) [private]

Set whether the High ADC was readout or not.

Definition at line 102 of file FeeHit.cc.

                                                    {
    writeField(highRangeAdc,
               FeeTraits::kHighRangeAdc);
}
void FeeHit::setPreAdc ( const unsigned int  value) [private]

Set the mesured pre-ADC value.

Definition at line 107 of file FeeHit.cc.

void FeeHit::setAdc ( const unsigned int  value) [private]

Set the measured ADC value.

Definition at line 112 of file FeeHit.cc.

void FeeHit::setHitNumber ( const unsigned int  hitNumber) [private]

Set the hit number within the trigger (counting backwards).

Definition at line 117 of file FeeHit.cc.

void FeeHit::setTdc ( const unsigned int  value) [private]

Set the measured TDC vlaue.

Definition at line 122 of file FeeHit.cc.

const FeeTraits & FeeBuffer::feeTraits ( ) const [inherited]

Returns the FeeTraits instance used to parse this object's buffer.

Definition at line 34 of file FeeBuffer.cc.

                                            {
        return dynamic_cast<const FeeTraits&>(daqTraits());
}

Friends And Related Function Documentation

friend class FeeReadout [friend]

Definition at line 24 of file FeeHit.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 09:53:02 for FeeReadoutFormat by doxygen 1.7.4