#include <MdcDigi.h>
Inheritance diagram for MdcDigi:
Public Member Functions | |
virtual const CLID & | clID () const |
virtual const CLID & | clID () const |
virtual std::ostream & | fillStream (std::ostream &s) const |
Fill the ASCII output stream. | |
virtual std::ostream & | fillStream (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 () const |
unsigned int | getOverflow () const |
unsigned int | getTimeChannel () const |
unsigned int | getTimeChannel () const |
int | getTrackIndex () const |
int | getTrackIndex () const |
virtual Identifier | identify () const |
virtual Identifier | identify () const |
MdcDigi (const unsigned int id) | |
MdcDigi (const Identifier &id, const unsigned int timeChannel, const unsigned int chargeChannel) | |
MdcDigi (const unsigned int id) | |
MdcDigi (const Identifier &id, const unsigned int timeChannel, const unsigned int chargeChannel) | |
RawData & | operator+= (const RawData &) |
MdcDigi & | operator+= (const MdcDigi &) |
MdcDigi & | operator+= (const MdcDigi &) |
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) |
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 |
|
00003 : 00004 RawData(id, timeChannel, chargeChannel), 00005 m_overflow(0) { 00006 }
|
|
00008 : 00009 RawData(id), 00010 m_overflow(0) { 00011 }
|
|
|
|
|
|
00029 { return CLID_MdcDigi; }
|
|
00029 { return CLID_MdcDigi; }
|
|
00028 { return MdcDigi::classID(); }
|
|
00028 { return MdcDigi::classID(); }
|
|
Fill the ASCII output stream.
|
|
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 }
|
|
|
|
00045 {
00046 return m_chargeChannel;
00047 }
|
|
|
|
00020 {
00021 return m_intId;
00022 }
|
|
00026 { return m_overflow; }
|
|
00026 { return m_overflow; }
|
|
|
|
00040 {
00041 return m_timeChannel;
00042 }
|
|
|
|
00050 {
00051 return m_trackIndex;
00052 }
|
|
|
|
00015 {
00016 return m_id;
00017 }
|
|
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 }
|
|
|
|
00015 { 00016 if(m_id != digi.identify()) // do nothing 00017 return *this; 00018 00019 if(digi.getTimeChannel() < m_timeChannel){ 00020 m_timeChannel=digi.getTimeChannel(); 00021 }else{ 00022 this->setTrackIndex(this->getTrackIndex() + 1999); // track index = 1000+tkId 00023 } 00024 /*if(digi.getChargeChannel() < 100000 ){ //maxium is around 30000, a very big number means actually no Q value 00025 m_chargeChannel += digi.getChargeChannel(); 00026 }*/ 00027 return *this; 00028 }
|
|
|
|
Serialize the object for writing.
|
|
00087 { 00088 return serialize(s); 00089 }
|
|
Serialize the object for writing.
00080 { 00081 ContainedObject::serialize(s); 00082 s<< m_timeChannel 00083 << m_chargeChannel; 00084 return s; 00085 }
|
|
|
|
00030 { 00031 m_chargeChannel = chargeChannel; 00032 }
|
|
00023 { m_overflow = overflow; }
|
|
00023 { m_overflow = overflow; }
|
|
|
|
00025 { 00026 m_timeChannel = timeChannel; 00027 }
|
|
|
|
00035 { 00036 m_trackIndex = trackIndex; 00037 }
|
|
|
|
|
|
|
|
|
|
|
|
|