BOSS 7.0.1
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.
 
 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 &)
 
 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

Constructor & Destructor Documentation

◆ RawData() [1/6]

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}

◆ RawData() [2/6]

RawData::RawData ( const unsigned int  id)

◆ RawData() [3/6]

RawData::RawData ( const RawData )
protected

◆ RawData() [4/6]

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

◆ RawData() [5/6]

RawData::RawData ( const unsigned int  id)

◆ RawData() [6/6]

RawData::RawData ( const RawData )
protected

Member Function Documentation

◆ fillStream() [1/2]

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

Fill the ASCII output stream.

Reimplemented in EmcDigi, and EmcDigi.

Definition at line 93 of file Event/RawEvent/RawEvent-00-03-19/RawEvent/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

◆ fillStream() [2/2]

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

Fill the ASCII output stream.

Reimplemented in EmcDigi, and EmcDigi.

◆ getChargeChannel() [1/2]

◆ getChargeChannel() [2/2]

unsigned int RawData::getChargeChannel ( ) const

◆ getIntId() [1/2]

unsigned int RawData::getIntId ( ) const

Definition at line 20 of file RawData.cxx.

20 {
21 return m_intId;
22}

◆ getIntId() [2/2]

unsigned int RawData::getIntId ( ) const

◆ getTimeChannel() [1/2]

◆ getTimeChannel() [2/2]

unsigned int RawData::getTimeChannel ( ) const

◆ getTrackIndex() [1/2]

int RawData::getTrackIndex ( ) const

Definition at line 50 of file RawData.cxx.

Referenced by MdcDigi::operator+=(), and MdcTrackList::pickHits().

◆ getTrackIndex() [2/2]

int RawData::getTrackIndex ( ) const

◆ identify() [1/2]

◆ identify() [2/2]

virtual Identifier RawData::identify ( ) const
virtual

◆ operator+=() [1/2]

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+=() [2/2]

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

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ serialize() [1/4]

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

Definition at line 87 of file Event/RawEvent/RawEvent-00-03-19/RawEvent/RawData.h.

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

◆ serialize() [2/4]

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

◆ serialize() [3/4]

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

Serialize the object for writing.

Definition at line 80 of file Event/RawEvent/RawEvent-00-03-19/RawEvent/RawData.h.

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

Referenced by serialize().

◆ serialize() [4/4]

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

Serialize the object for writing.

◆ setChargeChannel() [1/2]

◆ setChargeChannel() [2/2]

void RawData::setChargeChannel ( const unsigned int  chargeChannel)

◆ setTimeChannel() [1/2]

◆ setTimeChannel() [2/2]

void RawData::setTimeChannel ( const unsigned int  timeChannel)

◆ setTrackIndex() [1/2]

◆ setTrackIndex() [2/2]

void RawData::setTrackIndex ( const int  trackIndex)

Member Data Documentation

◆ m_chargeChannel

◆ m_id

const Identifier RawData::m_id
protected

◆ m_intId

const unsigned int RawData::m_intId
protected

◆ m_timeChannel

◆ m_trackIndex

int RawData::m_trackIndex
protected

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