#include <EmcDigi.h>
Inheritance diagram for EmcDigi:
Public Member Functions | |
virtual const CLID & | clID () const |
virtual const CLID & | clID () const |
EmcDigi (const unsigned int id) | |
EmcDigi (const Identifier &id, const unsigned int timeChannel, const unsigned int chargeChannel) | |
EmcDigi (const unsigned int id) | |
EmcDigi (const Identifier &id, const unsigned int timeChannel, const unsigned int chargeChannel) | |
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 | getMeasure () const |
unsigned int | getMeasure () const |
unsigned int | getTimeChannel () const |
unsigned int | getTimeChannel () const |
int | getTrackIndex () const |
int | getTrackIndex () const |
virtual Identifier | identify () const |
virtual Identifier | identify () const |
RawData & | operator+= (const RawData &) |
EmcDigi & | operator+= (const EmcDigi &) |
EmcDigi & | operator+= (const EmcDigi &) |
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 | setMeasure (const unsigned int measure) |
void | setMeasure (const unsigned int measure) |
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_measure |
|
|
|
|
|
|
|
|
|
00029 { return CLID_EmcDigi; }
|
|
00029 { return CLID_EmcDigi; }
|
|
00028 { return EmcDigi::classID(); }
|
|
00028 { return EmcDigi::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 }
|
|
00025 { return m_measure; }
|
|
00025 { return m_measure; }
|
|
|
|
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 }
|
|
|
|
00016 { 00017 if(m_id != digi.identify()) // do nothing 00018 return *this; 00019 00020 EmcWaveform wave1,wave2; 00021 wave1.makeWaveform(m_chargeChannel,m_timeChannel); 00022 wave2.makeWaveform(digi.getChargeChannel(),digi.getTimeChannel()); 00023 00024 //mixing 00025 wave1 += wave2; 00026 00027 double energy; 00028 int time; 00029 energy = wave1.max(time); 00030 00031 m_chargeChannel = (unsigned int)energy; 00032 m_timeChannel = (unsigned int)time; 00033 00034 return *this; 00035 }
|
|
|
|
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 }
|
|
00022 { m_measure = measure; }
|
|
00022 { m_measure = measure; }
|
|
|
|
00025 { 00026 m_timeChannel = timeChannel; 00027 }
|
|
|
|
00035 { 00036 m_trackIndex = trackIndex; 00037 }
|
|
|
|
|
|
|
|
|
|
|
|
|