HltRaw Class Reference

#include <HltRaw.h>

Inheritance diagram for HltRaw:

RawData ContainedObject List of all members.

Public Member Functions

 HltRaw (const Identifier &id, const unsigned int timeChannel=0, const unsigned int chargeChannel=0)
 HltRaw (const unsigned int id)
void setIntChannel (const unsigned int intChannel)
unsigned int getIntChannel ()
void setFloatChannel (const float value)
float getFloatChannel ()
virtual const CLID & clID () const
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.

Static Public Member Functions

static const CLID & classID ()

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 15 of file HltRaw.h.


Constructor & Destructor Documentation

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

Definition at line 3 of file HltRaw.cxx.

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

HltRaw::HltRaw ( const unsigned int  id  ) 

Definition at line 7 of file HltRaw.cxx.

00007                                     :
00008   RawData(id){
00009 }
}


Member Function Documentation

static const CLID& HltRaw::classID (  )  [inline, static]

Definition at line 29 of file HltRaw.h.

References CLID_HltRaw.

Referenced by clID().

00029 { return CLID_HltRaw; }

virtual const CLID& HltRaw::clID (  )  const [inline, virtual]

Definition at line 28 of file HltRaw.h.

References classID().

Referenced by main().

00028 { return HltRaw::classID(); }

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

Fill the ASCII output stream.

Reimplemented in EmcDigi.

Definition at line 93 of file RawData.h.

References RawData::m_chargeChannel, RawData::m_intId, and RawData::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 [inherited]

Definition at line 45 of file RawData.cxx.

References RawData::m_chargeChannel.

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

00045                                              {
00046   return m_chargeChannel;
00047 }

float HltRaw::getFloatChannel (  )  [inline]

Definition at line 25 of file HltRaw.h.

References RawData::m_chargeChannel.

00025 {return *((float*)(&m_chargeChannel));};

unsigned int HltRaw::getIntChannel (  )  [inline]

Definition at line 22 of file HltRaw.h.

References RawData::getTimeChannel().

00022 {return getTimeChannel();};

unsigned int RawData::getIntId (  )  const [inherited]

Definition at line 20 of file RawData.cxx.

References RawData::m_intId.

00020                                      {
00021   return m_intId;
00022 }

unsigned int RawData::getTimeChannel (  )  const [inherited]

Definition at line 40 of file RawData.cxx.

References RawData::m_timeChannel.

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

00040                                            {
00041   return m_timeChannel;
00042 } 

int RawData::getTrackIndex (  )  const [inherited]

Definition at line 50 of file RawData.cxx.

References RawData::m_trackIndex.

Referenced by MdcTrackList::pickHits().

00050                                  {
00051   return m_trackIndex;
00052 }

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

Definition at line 15 of file RawData.cxx.

References RawData::m_id.

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

00015                                    {
00016   return  m_id;
00017 }

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

Definition at line 54 of file RawData.cxx.

References RawData::getChargeChannel(), RawData::getTimeChannel(), RawData::identify(), RawData::m_chargeChannel, RawData::m_id, and RawData::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 }

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

Definition at line 87 of file RawData.h.

References RawData::serialize().

00087                                                          {
00088         return serialize(s); 
00089 }

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

Serialize the object for writing.

Definition at line 80 of file RawData.h.

References RawData::m_chargeChannel, and RawData::m_timeChannel.

Referenced by RawData::serialize().

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

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

Definition at line 30 of file RawData.cxx.

References RawData::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 HltRaw::setFloatChannel ( const float  value  )  [inline]

Definition at line 24 of file HltRaw.h.

References RawData::m_chargeChannel.

Referenced by EFtoTDS::execute().

00024 {m_chargeChannel= *((unsigned int*)(&value));};

void HltRaw::setIntChannel ( const unsigned int  intChannel  )  [inline]

Definition at line 21 of file HltRaw.h.

References RawData::setTimeChannel().

Referenced by RawDataHltRawCnv::createObj(), and EFtoTDS::execute().

00021 {setTimeChannel(intChannel);};

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

Definition at line 25 of file RawData.cxx.

References RawData::m_timeChannel.

Referenced by RootRawEvtReader::readEmc(), RootRawEvtReader::readMdc(), RootRawEvtReader::readMuc(), RootRawEvtReader::readTof(), 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  )  [inherited]

Definition at line 35 of file RawData.cxx.

References RawData::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, inherited]

Definition at line 72 of file RawData.h.

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

const Identifier RawData::m_id [protected, inherited]

Definition at line 68 of file RawData.h.

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

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

Definition at line 74 of file RawData.h.

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

unsigned int RawData::m_timeChannel [protected, inherited]

Definition at line 70 of file RawData.h.

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

int RawData::m_trackIndex [protected, inherited]

Definition at line 76 of file RawData.h.

Referenced by RawData::getTrackIndex(), and RawData::setTrackIndex().


Generated on Tue Nov 29 23:19:40 2016 for BOSS_7.0.2 by  doxygen 1.4.7