BOSS 7.0.8
BESIII Offline Software System
Loading...
Searching...
No Matches
RawData Class Reference

#include <RawData.h>

+ Inheritance diagram for RawData:

Public Member Functions

 RawData (const Identifier &id, const unsigned int timeChannel=0, const unsigned int chargeChannel=0)
 
 RawData (const unsigned int id)
 
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::ostream & fillStream (std::ostream &s) const
 Fill the ASCII output stream.
 

Protected Member Functions

 RawData (const RawData &)
 
RawDataoperator= (const RawData &)
 

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 21 of file RawData.h.

Constructor & Destructor Documentation

◆ RawData() [1/3]

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

Definition at line 4 of file RawData.cxx.

4 :
5 m_id(id), m_timeChannel(timeChannel), m_chargeChannel(chargeChannel), m_intId(id.get_value())
6{
7}
unsigned int m_timeChannel
Definition: RawData.h:70
unsigned int m_chargeChannel
Definition: RawData.h:72
const Identifier m_id
Definition: RawData.h:68
const unsigned int m_intId
Definition: RawData.h:74

◆ RawData() [2/3]

RawData::RawData ( const unsigned int  id)

Definition at line 9 of file RawData.cxx.

9 :
11{
12}

◆ RawData() [3/3]

RawData::RawData ( const RawData )
protected

Member Function Documentation

◆ fillStream()

std::ostream & RawData::fillStream ( std::ostream &  s) const
inlinevirtual

Fill the ASCII output stream.

Reimplemented in EmcDigi.

Definition at line 93 of file RawData.h.

93 {
94 s << "class RawData :" << std::endl
95 << " m_id: " << m_intId
96 << " m_timeChannel: " << m_timeChannel
97 << " m_chargeChannel: " << m_chargeChannel
98 << std::endl;
99 return s;
100}
XmlRpcServer s
Definition: HelloServer.cpp:11

◆ getChargeChannel()

◆ getIntId()

unsigned int RawData::getIntId ( ) const

Definition at line 20 of file RawData.cxx.

20 {
21 return m_intId;
22}

◆ getTimeChannel()

◆ getTrackIndex()

int RawData::getTrackIndex ( ) const

◆ identify()

◆ operator+=()

RawData & RawData::operator+= ( const RawData rval)

Definition at line 54 of file RawData.cxx.

55{
56 if(m_id != rval.identify()) // do nothing
57 return *this;
58
59 if( rval.getTimeChannel() < m_timeChannel )
61
63 return *this;
64}
virtual Identifier identify() const
Definition: RawData.cxx:15
unsigned int getChargeChannel() const
Definition: RawData.cxx:45
unsigned int getTimeChannel() const
Definition: RawData.cxx:40

◆ operator=()

RawData & RawData::operator= ( const RawData )
protected

◆ serialize() [1/2]

StreamBuffer & RawData::serialize ( StreamBuffer &  s)
inlinevirtual

Definition at line 87 of file RawData.h.

87 {
88 return serialize(s);
89}
virtual StreamBuffer & serialize(StreamBuffer &s) const
Serialize the object for writing.
Definition: RawData.h:80

◆ serialize() [2/2]

StreamBuffer & RawData::serialize ( StreamBuffer &  s) const
inlinevirtual

Serialize the object for writing.

Definition at line 80 of file RawData.h.

80 {
81 ContainedObject::serialize(s);
84 return s;
85}

Referenced by serialize().

◆ setChargeChannel()

◆ setTimeChannel()

◆ setTrackIndex()

Member Data Documentation

◆ m_chargeChannel

◆ m_id

const Identifier RawData::m_id
protected

Definition at line 68 of file RawData.h.

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

◆ m_intId

const unsigned int RawData::m_intId
protected

Definition at line 74 of file RawData.h.

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

◆ m_timeChannel

unsigned int RawData::m_timeChannel
protected

◆ m_trackIndex

int RawData::m_trackIndex
protected

Definition at line 76 of file RawData.h.

Referenced by getTrackIndex(), and setTrackIndex().


The documentation for this class was generated from the following files: