#include <EmcDigi.h>
Inheritance diagram for EmcDigi:
Public Member Functions | |
EmcDigi (const Identifier &id, const unsigned int timeChannel, const unsigned int chargeChannel) | |
EmcDigi (const Identifier &id, const unsigned int timeChannel, const unsigned int chargeChannel, const unsigned int measure) | |
EmcDigi (const unsigned int id) | |
void | setMeasure (const unsigned int measure) |
unsigned int | getMeasure () const |
virtual const CLID & | clID () const |
EmcDigi & | operator+= (const EmcDigi &) |
virtual std::ostream & | fillStream (std::ostream &s) const |
Fill the ASCII output stream. | |
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 |
RawData & | operator+= (const RawData &) |
virtual StreamBuffer & | serialize (StreamBuffer &s) const |
Serialize the object for writing. | |
virtual StreamBuffer & | serialize (StreamBuffer &s) |
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_measure |
Definition at line 15 of file EmcDigi.h.
EmcDigi::EmcDigi | ( | const Identifier & | id, | |
const unsigned int | timeChannel, | |||
const unsigned int | chargeChannel | |||
) |
EmcDigi::EmcDigi | ( | const Identifier & | id, | |
const unsigned int | timeChannel, | |||
const unsigned int | chargeChannel, | |||
const unsigned int | measure | |||
) |
EmcDigi::EmcDigi | ( | const unsigned int | id | ) |
static const CLID& EmcDigi::classID | ( | ) | [inline, static] |
Definition at line 31 of file EmcDigi.h.
References CLID_EmcDigi.
Referenced by clID().
00031 { return CLID_EmcDigi; }
virtual const CLID& EmcDigi::clID | ( | ) | const [inline, virtual] |
std::ostream & EmcDigi::fillStream | ( | std::ostream & | s | ) | const [inline, virtual] |
Fill the ASCII output stream.
Reimplemented from RawData.
Definition at line 45 of file EmcDigi.h.
References RawData::m_chargeChannel, RawData::m_intId, m_measure, and RawData::m_timeChannel.
00045 { 00046 s << "class EmcDigi :" << std::endl 00047 << " m_id: " << m_intId 00048 << " m_timeChannel: " << m_timeChannel 00049 << " m_chargeChannel: " << m_chargeChannel 00050 << " m_measure: " << m_measure 00051 << std::endl; 00052 return s; 00053 }
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+=(), 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 EmcDigi::getMeasure | ( | ) | const [inline] |
Definition at line 27 of file EmcDigi.h.
References m_measure.
Referenced by EmcRawDataProvider::doCalib(), EmcRawDataProvider::isGoodEmcDigi(), and operator+=().
00027 { return m_measure; }
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+=(), 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+=(), operator+=(), and MdcNavigation::poca().
00015 { 00016 return m_id; 00017 }
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 }
Definition at line 22 of file EmcDigi.cxx.
References RawDataUtil::EmcCharge(), RawDataUtil::EmcChargeChannel(), RawDataUtil::EmcChargeMeasure(), RawDataUtil::EmcTime(), RawDataUtil::EmcTimeChannel(), energy, RawData::getChargeChannel(), getMeasure(), RawData::getTimeChannel(), RawData::identify(), RawData::m_chargeChannel, RawData::m_id, m_measure, and RawData::m_timeChannel.
00023 { 00024 if(m_id != digi.identify()) // do nothing 00025 return *this; 00026 00027 double e1=RawDataUtil::EmcCharge(m_measure,m_chargeChannel); 00028 double t1=RawDataUtil::EmcTime(m_timeChannel); 00029 double e2=RawDataUtil::EmcCharge(digi.getMeasure(),digi.getChargeChannel()); 00030 double t2=RawDataUtil::EmcTime(digi.getTimeChannel()); 00031 00032 EmcWaveform wave1,wave2; 00033 wave1.makeWaveform(e1,t1); 00034 wave2.makeWaveform(e2,t2); 00035 00036 //mixing 00037 wave1 += wave2; 00038 00039 double energy; 00040 int time; 00041 energy = wave1.max(time); 00042 00043 m_chargeChannel = RawDataUtil::EmcChargeChannel(energy); 00044 m_timeChannel = RawDataUtil::EmcTimeChannel(time); 00045 m_measure = RawDataUtil::EmcChargeMeasure(energy); 00046 00047 return *this; 00048 }
StreamBuffer & RawData::serialize | ( | StreamBuffer & | s | ) | [inline, virtual, inherited] |
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 EmcDigi::setMeasure | ( | const unsigned int | measure | ) | [inline] |
Definition at line 24 of file EmcDigi.h.
References m_measure.
Referenced by EmcRawDataProvider::doCalib(), RootRawEvtReader::readEmc(), and EmcDigiCnv::TObjectToDataObject().
00024 { m_measure = measure; }
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 }
unsigned int RawData::m_chargeChannel [protected, inherited] |
Definition at line 72 of file RawData.h.
Referenced by RawData::fillStream(), fillStream(), RawData::getChargeChannel(), HltRaw::getFloatChannel(), RawData::operator+=(), 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 operator+=().
const unsigned int RawData::m_intId [protected, inherited] |
Definition at line 74 of file RawData.h.
Referenced by RawData::fillStream(), fillStream(), and RawData::getIntId().
unsigned int EmcDigi::m_measure [private] |
Definition at line 39 of file EmcDigi.h.
Referenced by fillStream(), getMeasure(), operator+=(), and setMeasure().
unsigned int RawData::m_timeChannel [protected, inherited] |
Definition at line 70 of file RawData.h.
Referenced by RawData::fillStream(), fillStream(), RawData::getTimeChannel(), MdcDigi::operator+=(), RawData::operator+=(), 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().