BOSS 7.0.8
BESIII Offline Software System
Loading...
Searching...
No Matches
TRawData.cxx
Go to the documentation of this file.
2#include <iostream>
3
5
6//************************************************
7 //
9 Clear();
10 }
11//************************************************
12//
14 Clear();
15 }
16//************************************************
17//
18 void TRawData::Clear(Option_t *option) {
19 m_intId =0;
20 m_timeChannel =0;
21 m_chargeChannel =0;
22 }
23//************************************************
24//
25 void TRawData::Print(Option_t *option) const {
26 TObject::Print(option);
27 std::cout.precision(2);
28 std::cout << "Idetifier: " << m_intId << std::endl;
29 std::cout << "TimeChannel: " << m_timeChannel <<std::endl;
30 std::cout << "ChargeChannel:" << m_chargeChannel <<std::endl;
31 }
32//************************************************
33//
34 void TRawData::initialize(UInt_t id, UInt_t time, UInt_t charge){
35 m_intId = id ;
36 m_timeChannel =time;
37 m_chargeChannel = charge;
38 }
39//************************************************
40
41 void TRawData::setTrackIndex(const int trackIndex){
42 m_trackIndex = trackIndex;
43 }
44
46 return m_trackIndex;
47 }
48
49 // Get associated int id
50 UInt_t TRawData::getIntId() const {
51 return m_intId;
52 }
53
54 // Get time channel
55 UInt_t TRawData::getTimeChannel() const {
56 return m_timeChannel;
57 }
58
59 // Get charge channel
61 return m_chargeChannel;
62 }
63
Double_t time
ClassImp(TRawData) TRawData
Definition: TRawData.cxx:4
void initialize(UInt_t id, UInt_t time=0, UInt_t charge=0)
Definition: TRawData.cxx:34
void Clear(Option_t *option="")
Definition: TRawData.cxx:18
UInt_t getIntId() const
Definition: TRawData.cxx:50
void setTrackIndex(const int trackIndex)
Definition: TRawData.cxx:41
int getTrackIndex() const
Definition: TRawData.cxx:45
~TRawData()
Definition: TRawData.cxx:13
UInt_t getChargeChannel() const
Definition: TRawData.cxx:60
void Print(Option_t *option="") const
Definition: TRawData.cxx:25
UInt_t getTimeChannel() const
Definition: TRawData.cxx:55
float charge