CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
MdcDigi Class Reference

#include <MdcDigi.h>

+ Inheritance diagram for MdcDigi:

Public Member Functions

 MdcDigi (const Identifier &id, const unsigned int timeChannel, const unsigned int chargeChannel)
 
 MdcDigi (const unsigned int id)
 
void setOverflow (const unsigned int overflow)
 
unsigned int getOverflow () const
 
virtual const CLID & clID () const
 
MdcDigioperator+= (const MdcDigi &)
 
- Public Member Functions inherited from RawData
 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.
 

Static Public Member Functions

static const CLID & classID ()
 

Additional Inherited Members

- Protected Member Functions inherited from RawData
 RawData (const RawData &)
 
RawDataoperator= (const RawData &)
 
- Protected Attributes inherited from RawData
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 15 of file MdcDigi.h.

Constructor & Destructor Documentation

◆ MdcDigi() [1/2]

MdcDigi::MdcDigi ( const Identifier & id,
const unsigned int timeChannel,
const unsigned int chargeChannel )

Definition at line 3 of file MdcDigi.cxx.

3 :
4 RawData(id, timeChannel, chargeChannel),
5 m_overflow(0) {
6}
RawData(const Identifier &id, const unsigned int timeChannel=0, const unsigned int chargeChannel=0)
Definition RawData.cxx:4

◆ MdcDigi() [2/2]

MdcDigi::MdcDigi ( const unsigned int id)

Definition at line 8 of file MdcDigi.cxx.

8 :
9 RawData(id),
10 m_overflow(0) {
11}

Member Function Documentation

◆ classID()

static const CLID & MdcDigi::classID ( )
inlinestatic

Definition at line 29 of file MdcDigi.h.

29{ return CLID_MdcDigi; }
const CLID & CLID_MdcDigi

Referenced by clID().

◆ clID()

virtual const CLID & MdcDigi::clID ( ) const
inlinevirtual

Definition at line 28 of file MdcDigi.h.

28{ return MdcDigi::classID(); }
static const CLID & classID()
Definition MdcDigi.h:29

Referenced by main().

◆ getOverflow()

unsigned int MdcDigi::getOverflow ( ) const
inline

Definition at line 26 of file MdcDigi.h.

26{ return m_overflow; }

Referenced by MdcRawDataProvider::getMdcDigiVec().

◆ operator+=()

MdcDigi & MdcDigi::operator+= ( const MdcDigi & digi)

Definition at line 14 of file MdcDigi.cxx.

15{
16 if(m_id != digi.identify()) // do nothing
17 return *this;
18
19 if(digi.getTimeChannel() < m_timeChannel){
21 }else{
22 this->setTrackIndex(this->getTrackIndex() + 1999); // track index = 1000+tkId
23 }
24 /*if(digi.getChargeChannel() < 100000 ){ //maxium is around 30000, a very big number means actually no Q value
25 m_chargeChannel += digi.getChargeChannel();
26 }*/
27 return *this;
28}
void setTrackIndex(const int trackIndex)
Definition RawData.cxx:35
unsigned int m_timeChannel
Definition RawData.h:70
virtual Identifier identify() const
Definition RawData.cxx:15
const Identifier m_id
Definition RawData.h:68
int getTrackIndex() const
Definition RawData.cxx:50
unsigned int getTimeChannel() const
Definition RawData.cxx:40

◆ setOverflow()

void MdcDigi::setOverflow ( const unsigned int overflow)
inline

Definition at line 23 of file MdcDigi.h.

23{ m_overflow = overflow; }

Referenced by MdcConverter::convert(), and MdcDigiCnv::TObjectToDataObject().


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