LumiDigi Class Reference

#include <LumiDigi.h>

Inheritance diagram for LumiDigi:

RawData ContainedObject List of all members.

Public Member Functions

 LumiDigi (const Identifier &id, const unsigned int timeChannel, const unsigned int chargeChannel)
 LumiDigi (const unsigned int id)
 LumiDigi (TofDigi *tofDigi)
void setOverflow (const unsigned int overflow)
unsigned int getOverflow ()
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

Private Attributes

unsigned int m_overflow

Detailed Description

Definition at line 10 of file LumiDigi.h.


Constructor & Destructor Documentation

LumiDigi::LumiDigi ( const Identifier id,
const unsigned int  timeChannel,
const unsigned int  chargeChannel 
)

Definition at line 6 of file LumiDigi.cxx.

00006                                                                                                          :
00007    RawData(id, timeChannel, chargeChannel),
00008    m_overflow(0)
00009 {
00010 }

LumiDigi::LumiDigi ( const unsigned int  id  ) 

Definition at line 12 of file LumiDigi.cxx.

00012                                         :
00013    RawData(id),
00014    m_overflow(0)
00015 {
00016 }

LumiDigi::LumiDigi ( TofDigi tofDigi  ) 

Definition at line 18 of file LumiDigi.cxx.

00018                                    :
00019    RawData(tofDigi->identify(), tofDigi->getTimeChannel(), tofDigi->getChargeChannel()),
00020    m_overflow(tofDigi->getOverflow())
00021 {
00022 }
}


Member Function Documentation

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

Definition at line 28 of file LumiDigi.h.

References CLID_LumiDigi.

Referenced by clID().

00028 { return CLID_LumiDigi; }

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

Definition at line 27 of file LumiDigi.h.

References classID().

00027 { return LumiDigi::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 }

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 LumiDigi::getOverflow (  )  [inline]

Definition at line 22 of file LumiDigi.h.

References m_overflow.

00022                              { 
00023        return m_overflow; 
00024   }

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

Definition at line 40 of file RawData.cxx.

References RawData::m_timeChannel.

Referenced by HltRaw::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 LumiDigi::setOverflow ( const unsigned int  overflow  )  [inline]

Definition at line 19 of file LumiDigi.h.

References m_overflow.

Referenced by LumiDigiCnv::TObjectToDataObject().

00019 { m_overflow = overflow; }

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(), 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  )  [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(), HltRaw::getFloatChannel(), RawData::operator+=(), EmcDigi::operator+=(), RawData::serialize(), RawData::setChargeChannel(), and HltRaw::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 LumiDigi::m_overflow [private]

Definition at line 32 of file LumiDigi.h.

Referenced by getOverflow(), and setOverflow().

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:20:03 2016 for BOSS_7.0.2 by  doxygen 1.4.7