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