RawData Class Reference

#include <RawData.h>

Inheritance diagram for RawData:

ContainedObject EmcDigi HltRaw LumiDigi MdcDigi MucDigi TofDigi List of all members.

Public Member Functions

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

Protected Member Functions

 RawData (const RawData &)
RawDataoperator= (const RawData &)

Protected Attributes

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

Detailed Description

Definition at line 21 of file RawData.h.


Constructor & Destructor Documentation

RawData::RawData ( const Identifier id,
const unsigned int  timeChannel = 0,
const unsigned int  chargeChannel = 0 
)

Definition at line 4 of file RawData.cxx.

00004                                                                                                        : 
00005   m_id(id), m_timeChannel(timeChannel), m_chargeChannel(chargeChannel), m_intId(id.get_value())
00006 {
00007 }

RawData::RawData ( const unsigned int  id  ) 

Definition at line 9 of file RawData.cxx.

00009                                       :
00010   m_id(Identifier(id)), m_timeChannel(0), m_chargeChannel(0), m_intId(id)
00011 {
00012 }

RawData::RawData ( const RawData  )  [protected]


Member Function Documentation

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

Fill the ASCII output stream.

Reimplemented in EmcDigi.

Definition at line 93 of file RawData.h.

References m_chargeChannel, m_intId, and m_timeChannel.

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

Definition at line 45 of file RawData.cxx.

References m_chargeChannel.

Referenced by MdcHoughFinder::digiToHots(), HoughValidUpdate::digiToHots(), MdcHoughFinder::digiToHots2(), HoughValidUpdate::digiToHots2(), EmcRawDataProvider::doCalib(), EmcRawDataProvider::isGoodEmcDigi(), MdcHit::MdcHit(), operator+=(), EmcDigi::operator+=(), and MdcxHit::process().

00045                                              {
00046   return m_chargeChannel;
00047 }

unsigned int RawData::getIntId (  )  const

Definition at line 20 of file RawData.cxx.

References m_intId.

00020                                      {
00021   return m_intId;
00022 }

unsigned int RawData::getTimeChannel (  )  const

Definition at line 40 of file RawData.cxx.

References m_timeChannel.

Referenced by HltRaw::getIntChannel(), EmcRawDataProvider::isGoodEmcDigi(), MdcHit::MdcHit(), MdcDigi::operator+=(), operator+=(), EmcDigi::operator+=(), and MdcxHit::process().

00040                                            {
00041   return m_timeChannel;
00042 } 

int RawData::getTrackIndex (  )  const

Definition at line 50 of file RawData.cxx.

References m_trackIndex.

Referenced by MdcTrackList::pickHits().

00050                                  {
00051   return m_trackIndex;
00052 }

Identifier RawData::identify (  )  const [virtual]

Definition at line 15 of file RawData.cxx.

References m_id.

Referenced by MdcHoughFinder::digiToHots(), HoughValidUpdate::digiToHots(), MdcHoughFinder::digiToHots2(), HoughValidUpdate::digiToHots2(), EmcRawDataProvider::doCalib(), EmcRawDataProvider::isGoodEmcDigi(), MdcHit::MdcHit(), MdcDigi::operator+=(), operator+=(), EmcDigi::operator+=(), and MdcNavigation::poca().

00015                                    {
00016   return  m_id;
00017 }

RawData & RawData::operator+= ( const RawData  ) 

Definition at line 54 of file RawData.cxx.

References getChargeChannel(), getTimeChannel(), identify(), m_chargeChannel, m_id, and m_timeChannel.

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 }

RawData& RawData::operator= ( const RawData  )  [protected]

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

Definition at line 87 of file RawData.h.

References serialize().

00087                                                          {
00088         return serialize(s); 
00089 }

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

Serialize the object for writing.

Definition at line 80 of file RawData.h.

References m_chargeChannel, and m_timeChannel.

Referenced by serialize().

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

void RawData::setChargeChannel ( const unsigned int  chargeChannel  ) 

Definition at line 30 of file RawData.cxx.

References m_chargeChannel.

Referenced by RawDataHltRawCnv::createObj(), EmcRawDataProvider::doCalib(), RootRawEvtReader::readEmc(), RootRawEvtReader::readMdc(), RootRawEvtReader::readMuc(), RootRawEvtReader::readTof(), HltRawCnv::TObjectToDataObject(), TofDigiCnv::TObjectToDataObject(), MucDigiCnv::TObjectToDataObject(), MdcDigiCnv::TObjectToDataObject(), LumiDigiCnv::TObjectToDataObject(), and EmcDigiCnv::TObjectToDataObject().

00030                                                                {
00031   m_chargeChannel = chargeChannel;
00032 }

void RawData::setTimeChannel ( const unsigned int  timeChannel  ) 

Definition at line 25 of file RawData.cxx.

References m_timeChannel.

Referenced by RootRawEvtReader::readEmc(), RootRawEvtReader::readMdc(), RootRawEvtReader::readMuc(), RootRawEvtReader::readTof(), HltRaw::setIntChannel(), HltRawCnv::TObjectToDataObject(), TofDigiCnv::TObjectToDataObject(), MucDigiCnv::TObjectToDataObject(), MdcDigiCnv::TObjectToDataObject(), LumiDigiCnv::TObjectToDataObject(), and EmcDigiCnv::TObjectToDataObject().

00025                                                             {
00026   m_timeChannel = timeChannel;
00027 }

void RawData::setTrackIndex ( const int  trackIndex  ) 

Definition at line 35 of file RawData.cxx.

References m_trackIndex.

Referenced by MdcDigi::operator+=(), RootRawEvtReader::readEmc(), RootRawEvtReader::readMdc(), RootRawEvtReader::readMuc(), RootRawEvtReader::readTof(), BesRawDataWriter::SaveTofDigits(), TofDigiCnv::TObjectToDataObject(), MucDigiCnv::TObjectToDataObject(), MdcDigiCnv::TObjectToDataObject(), and EmcDigiCnv::TObjectToDataObject().

00035                                                 {
00036   m_trackIndex = trackIndex;
00037 }


Member Data Documentation

unsigned int RawData::m_chargeChannel [protected]

Definition at line 72 of file RawData.h.

Referenced by fillStream(), EmcDigi::fillStream(), getChargeChannel(), HltRaw::getFloatChannel(), operator+=(), EmcDigi::operator+=(), serialize(), setChargeChannel(), and HltRaw::setFloatChannel().

const Identifier RawData::m_id [protected]

Definition at line 68 of file RawData.h.

Referenced by identify(), MdcDigi::operator+=(), operator+=(), and EmcDigi::operator+=().

const unsigned int RawData::m_intId [protected]

Definition at line 74 of file RawData.h.

Referenced by fillStream(), EmcDigi::fillStream(), and getIntId().

unsigned int RawData::m_timeChannel [protected]

Definition at line 70 of file RawData.h.

Referenced by fillStream(), EmcDigi::fillStream(), getTimeChannel(), MdcDigi::operator+=(), operator+=(), EmcDigi::operator+=(), serialize(), and setTimeChannel().

int RawData::m_trackIndex [protected]

Definition at line 76 of file RawData.h.

Referenced by getTrackIndex(), and setTrackIndex().


Generated on Tue Nov 29 23:20:44 2016 for BOSS_7.0.2 by  doxygen 1.4.7