BOSS 8.0.0
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,
4 const unsigned int chargeChannel )
5 : RawData( id, timeChannel, chargeChannel ), m_overflow( 0 ) {}
6
7MdcDigi::MdcDigi( const unsigned int id ) : RawData( id ), m_overflow( 0 ) {}
8
9// mixing two digis
11 if ( m_id != digi.identify() ) // do nothing
12 return *this;
13
14 if ( digi.getTimeChannel() < m_timeChannel ) { m_timeChannel = digi.getTimeChannel(); }
15 else
16 {
17 this->setTrackIndex( this->getTrackIndex() + 1999 ); // track index = 1000+tkId
18 }
19 /*if(digi.getChargeChannel() < 100000 ){ //maxium is around 30000, a very big number means
20 actually no Q value m_chargeChannel += digi.getChargeChannel();
21 }*/
22 return *this;
23}
MdcDigi & operator+=(const MdcDigi &)
Definition MdcDigi.cxx:10
MdcDigi(const Identifier &id, const unsigned int timeChannel, const unsigned int chargeChannel)
Definition MdcDigi.cxx:3
RawData(const Identifier &id, const unsigned int timeChannel=0, const unsigned int chargeChannel=0)
Definition RawData.cxx:4
void setTrackIndex(const int trackIndex)
Definition RawData.cxx:29
virtual Identifier identify() const
Definition RawData.cxx:15
int getTrackIndex() const
Definition RawData.cxx:38
unsigned int getTimeChannel() const
Definition RawData.cxx:32