Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

TofDigi Class Reference

#include <TofDigi.h>

Inheritance diagram for TofDigi:

RawData RawData ContainedObject ContainedObject ContainedObject ContainedObject List of all members.

Public Member Functions

virtual const CLID & clID () const
virtual const CLID & clID () const
virtual std::ostreamfillStream (std::ostream &s) const
 Fill the ASCII output stream.
virtual std::ostreamfillStream (std::ostream &s) const
 Fill the ASCII output stream.
unsigned int getChargeChannel () const
unsigned int getChargeChannel () const
unsigned int getIntId () const
unsigned int getIntId () const
unsigned int getOverflow ()
unsigned int getOverflow ()
unsigned int getTimeChannel () const
unsigned int getTimeChannel () const
int getTrackIndex () const
int getTrackIndex () const
virtual Identifier identify () const
virtual Identifier identify () const
RawDataoperator+= (const RawData &)
RawDataoperator+= (const RawData &)
virtual StreamBuffer & serialize (StreamBuffer &s)
virtual StreamBuffer & serialize (StreamBuffer &s) const
 Serialize the object for writing.
virtual StreamBuffer & serialize (StreamBuffer &s)
virtual StreamBuffer & serialize (StreamBuffer &s) const
 Serialize the object for writing.
void setChargeChannel (const unsigned int chargeChannel)
void setChargeChannel (const unsigned int chargeChannel)
void setOverflow (const unsigned int overflow)
void setOverflow (const unsigned int overflow)
void setTimeChannel (const unsigned int timeChannel)
void setTimeChannel (const unsigned int timeChannel)
void setTrackIndex (const int trackIndex)
void setTrackIndex (const int trackIndex)
 TofDigi (const unsigned int id)
 TofDigi (const Identifier &id, const unsigned int timeChannel, const unsigned int chargeChannel)
 TofDigi (const unsigned int id)
 TofDigi (const Identifier &id, const unsigned int timeChannel, const unsigned int chargeChannel)

Static Public Member Functions

const CLID & classID ()
const CLID & classID ()

Protected Attributes

unsigned int m_chargeChannel
const Identifier m_id
const unsigned int m_intId
unsigned int m_timeChannel
int m_trackIndex

Private Attributes

unsigned int m_overflow

Constructor & Destructor Documentation

TofDigi::TofDigi const Identifier id,
const unsigned int  timeChannel,
const unsigned int  chargeChannel
 

00003                                                                                                        :
00004   RawData(id, timeChannel, chargeChannel),
00005   m_overflow(0) {
00006 }

TofDigi::TofDigi const unsigned int  id  ) 
 

00008                                       :
00009   RawData(id),
00010   m_overflow(0) {
00011 }
}

TofDigi::TofDigi const Identifier id,
const unsigned int  timeChannel,
const unsigned int  chargeChannel
 

TofDigi::TofDigi const unsigned int  id  ) 
 


Member Function Documentation

const CLID& TofDigi::classID  )  [inline, static]
 

00035 { return CLID_TofDigi; }

const CLID& TofDigi::classID  )  [inline, static]
 

00035 { return CLID_TofDigi; }

virtual const CLID& TofDigi::clID  )  const [inline, virtual]
 

00034 { return TofDigi::classID(); }

virtual const CLID& TofDigi::clID  )  const [inline, virtual]
 

00034 { return TofDigi::classID(); }

virtual std::ostream& RawData::fillStream std::ostream s  )  const [virtual, inherited]
 

Fill the ASCII output stream.

std::ostream & RawData::fillStream std::ostream s  )  const [inline, virtual, inherited]
 

Fill the ASCII output stream.

00093                                                             {
00094         s << "class RawData :" << std::endl
00095           << " m_id: " << m_intId
00096           << " m_timeChannel: " << m_timeChannel
00097           << " m_chargeChannel: " << m_chargeChannel
00098           << std::endl;
00099         return s;
00100 }

unsigned int RawData::getChargeChannel  )  const [inherited]
 

unsigned int RawData::getChargeChannel  )  const [inherited]
 

00045                                              {
00046   return m_chargeChannel;
00047 }

unsigned int RawData::getIntId  )  const [inherited]
 

unsigned int RawData::getIntId  )  const [inherited]
 

00020                                      {
00021   return m_intId;
00022 }

unsigned int TofDigi::getOverflow  )  [inline]
 

00026                              { 
00027        //if (m_timeChannel > 65535 || m_chargeChannel > 65535) {
00028        //   m_overflow = 1;
00029        //}
00030        return m_overflow; 
00031   }

unsigned int TofDigi::getOverflow  )  [inline]
 

00026                              { 
00027        //if (m_timeChannel > 65535 || m_chargeChannel > 65535) {
00028        //   m_overflow = 1;
00029        //}
00030        return m_overflow; 
00031   }

unsigned int RawData::getTimeChannel  )  const [inherited]
 

unsigned int RawData::getTimeChannel  )  const [inherited]
 

00040                                            {
00041   return m_timeChannel;
00042 } 

int RawData::getTrackIndex  )  const [inherited]
 

int RawData::getTrackIndex  )  const [inherited]
 

00050                                  {
00051   return m_trackIndex;
00052 }

virtual Identifier RawData::identify  )  const [virtual, inherited]
 

Identifier RawData::identify  )  const [virtual, inherited]
 

00015                                    {
00016   return  m_id;
00017 }

RawData& RawData::operator+= const RawData  )  [inherited]
 

RawData & RawData::operator+= const RawData  )  [inherited]
 

00055 { 
00056   if(m_id != rval.identify()) // do nothing
00057     return *this;
00058 
00059   if( rval.getTimeChannel() < m_timeChannel )
00060     m_timeChannel = rval.getTimeChannel();
00061 
00062   m_chargeChannel += rval.getChargeChannel();
00063   return *this;
00064 }

virtual StreamBuffer& RawData::serialize StreamBuffer &  s  )  [virtual, inherited]
 

virtual StreamBuffer& RawData::serialize StreamBuffer &  s  )  const [virtual, inherited]
 

Serialize the object for writing.

StreamBuffer & RawData::serialize StreamBuffer &  s  )  [inline, virtual, inherited]
 

00087                                                          {
00088         return serialize(s); 
00089 }

StreamBuffer & RawData::serialize StreamBuffer &  s  )  const [inline, virtual, inherited]
 

Serialize the object for writing.

00080                                                                {
00081       ContainedObject::serialize(s);
00082          s<< m_timeChannel
00083           << m_chargeChannel;
00084         return s;
00085 }

void RawData::setChargeChannel const unsigned int  chargeChannel  )  [inherited]
 

void RawData::setChargeChannel const unsigned int  chargeChannel  )  [inherited]
 

00030                                                                {
00031   m_chargeChannel = chargeChannel;
00032 }

void TofDigi::setOverflow const unsigned int  overflow  )  [inline]
 

00023 { m_overflow = overflow; }

void TofDigi::setOverflow const unsigned int  overflow  )  [inline]
 

00023 { m_overflow = overflow; }

void RawData::setTimeChannel const unsigned int  timeChannel  )  [inherited]
 

void RawData::setTimeChannel const unsigned int  timeChannel  )  [inherited]
 

00025                                                             {
00026   m_timeChannel = timeChannel;
00027 }

void RawData::setTrackIndex const int  trackIndex  )  [inherited]
 

void RawData::setTrackIndex const int  trackIndex  )  [inherited]
 

00035                                                 {
00036   m_trackIndex = trackIndex;
00037 }


Member Data Documentation

unsigned int RawData::m_chargeChannel [protected, inherited]
 

const Identifier RawData::m_id [protected, inherited]
 

const unsigned int RawData::m_intId [protected, inherited]
 

unsigned int TofDigi::m_overflow [private]
 

unsigned int RawData::m_timeChannel [protected, inherited]
 

int RawData::m_trackIndex [protected, inherited]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 18:58:17 2011 for BOSS6.5.5 by  doxygen 1.3.9.1