BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
MdcDigi.cxx
Go to the documentation of this file.
1#include "MdcRawEvent/MdcDigi.h"
2
3MdcDigi::MdcDigi(const Identifier& id, const unsigned int timeChannel, const unsigned int chargeChannel) :
4 RawData(id, timeChannel, chargeChannel),
5 m_overflow(0) {
6}
7
8MdcDigi::MdcDigi(const unsigned int id) :
9 RawData(id),
10 m_overflow(0) {
11}
12
13//mixing two digis
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}
MdcDigi & operator+=(const MdcDigi &)
Definition: MdcDigi.cxx:14
MdcDigi(const Identifier &id, const unsigned int timeChannel, const unsigned int chargeChannel)
Definition: MdcDigi.cxx:3
void setTrackIndex(const int trackIndex)
Definition: RawData.cxx:35
virtual Identifier identify() const
Definition: RawData.cxx:15
int getTrackIndex() const
Definition: RawData.cxx:50
unsigned int getTimeChannel() const
Definition: RawData.cxx:40