CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
CgemDigi.cxx
Go to the documentation of this file.
2
3CgemDigi::CgemDigi(const Identifier& id, const unsigned int timeChannel, const unsigned int chargeChannel) :
4 RawData(id, timeChannel, chargeChannel),
5 m_overflow(0) {
6}
7
8CgemDigi::CgemDigi(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}
CgemDigi & operator+=(const CgemDigi &)
Definition: CgemDigi.cxx:14
CgemDigi(const Identifier &id, const unsigned int timeChannel, const unsigned int chargeChannel)
Definition: CgemDigi.cxx:3
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