CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
RawData.cxx
Go to the documentation of this file.
1#include <iostream>
2#include "RawEvent/RawData.h"
3
4RawData::RawData(const Identifier& id, const unsigned int timeChannel, const unsigned int chargeChannel) :
5 m_id(id), m_timeChannel(timeChannel), m_chargeChannel(chargeChannel), m_intId(id.get_value())
6{
7}
8
9RawData::RawData(const unsigned int id) :
10 m_id(Identifier(id)), m_timeChannel(0), m_chargeChannel(0), m_intId(id)
11{
12}
13
14// Get associated id
16 return m_id;
17}
18
19// Get time channel
20unsigned int RawData::getIntId() const {
21 return m_intId;
22}
23
24// Set time channel
25void RawData::setTimeChannel(const unsigned int timeChannel) {
26 m_timeChannel = timeChannel;
27}
28
29// Set charge channel
30void RawData::setChargeChannel(const unsigned int chargeChannel) {
31 m_chargeChannel = chargeChannel;
32}
33
34// Set track index
35void RawData::setTrackIndex(const int trackIndex) {
36 m_trackIndex = trackIndex;
37}
38
39// Get time channel
40unsigned int RawData::getTimeChannel() const {
41 return m_timeChannel;
42}
43
44// Get charge channel
45unsigned int RawData::getChargeChannel() const {
46 return m_chargeChannel;
47}
48
49// Get track index
51 return m_trackIndex;
52}
53
55{
56 if(m_id != rval.identify()) // do nothing
57 return *this;
58
59 if( rval.getTimeChannel() < m_timeChannel )
61
63 return *this;
64}
unsigned int getIntId() const
Definition: RawData.cxx:20
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:35
virtual Identifier identify() const
Definition: RawData.cxx:15
void setChargeChannel(const unsigned int chargeChannel)
Definition: RawData.cxx:30
unsigned int getChargeChannel() const
Definition: RawData.cxx:45
void setTimeChannel(const unsigned int timeChannel)
Definition: RawData.cxx:25
int getTrackIndex() const
Definition: RawData.cxx:50
RawData & operator+=(const RawData &)
Definition: RawData.cxx:54
unsigned int getTimeChannel() const
Definition: RawData.cxx:40