CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
RootEventData-00-05-13/src/TRawData.cxx
Go to the documentation of this file.
1#include "RootEventData/TRawData.h"
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
41void TRawData::setTrackIndex(const int trackIndex){
42 m_trackIndex = trackIndex;
43 }
44
45int TRawData::getTrackIndex() const{
46 return m_trackIndex;
47 }
48
49 // Get associated int id
50UInt_t TRawData::getIntId() const {
51 return m_intId;
52 }
53
54 // Get time channel
55UInt_t TRawData::getTimeChannel() const {
56 return m_timeChannel;
57 }
58
59 // Get charge channel
60UInt_t TRawData::getChargeChannel() const {
61 return m_chargeChannel;
62 }
63
Double_t time
ClassImp(TRawData) TRawData
void initialize(UInt_t id, UInt_t time=0, UInt_t charge=0)
void Clear(Option_t *option="")
void setTrackIndex(const int trackIndex)
void Print(Option_t *option="") const