CbmRoot
CbmTofDigi.cxx
Go to the documentation of this file.
1
7
#include "
CbmTofDigi.h
"
8
9
#include <TString.h>
// for Form, TString
10
11
#include <string>
// for basic_string
12
13
CbmTofDigi::CbmTofDigi
()
14
: fdTime(0.)
15
, fdTot(-1.)
16
, fuAddress(0)
17
// fMatch(nullptr)
18
{}
19
20
CbmTofDigi::CbmTofDigi
(UInt_t address, Double_t time, Double_t tot)
21
: fdTime(time)
22
, fdTot(tot)
23
, fuAddress(address)
24
// fMatch(nullptr)
25
{}
26
27
CbmTofDigi::CbmTofDigi
(UInt_t Sm,
28
UInt_t Rpc,
29
UInt_t Channel,
30
Double_t time,
31
Double_t tot,
32
UInt_t Side,
33
UInt_t SmType)
34
: fdTime(time)
35
, fdTot(tot)
36
, fuAddress(0)
37
// fMatch(nullptr)
38
{
39
fuAddress
=
CbmTofAddress::GetUniqueAddress
(Sm, Rpc, Channel, Side, SmType);
40
}
41
42
CbmTofDigi::~CbmTofDigi
() {
43
// if ( fMatch ) delete fMatch;
44
}
45
46
47
std::string
CbmTofDigi::ToString
()
const
{
48
TString
string
= Form(
"CbmTofDigi: address = 0x%08X time = %f tot = %f"
,
49
fuAddress
,
50
fdTime
,
51
fdTot
);
52
return
string
.Data();
53
}
54
55
void
CbmTofDigi::SetAddress
(UInt_t Sm,
56
UInt_t Rpc,
57
UInt_t Channel,
58
UInt_t Side,
59
UInt_t SmType) {
60
fuAddress
=
CbmTofAddress::GetUniqueAddress
(Sm, Rpc, Channel, Side, SmType);
61
}
62
63
64
ClassImp
(
CbmTofDigi
)
CbmTofDigi::ToString
std::string ToString() const
Definition:
CbmTofDigi.cxx:47
CbmTofDigi::fuAddress
UInt_t fuAddress
Unique channel address.
Definition:
CbmTofDigi.h:162
CbmTofDigi.h
CbmTofDigi::~CbmTofDigi
~CbmTofDigi()
Destructor.
Definition:
CbmTofDigi.cxx:42
CbmTofDigi::fdTot
Double_t fdTot
Tot [ps].
Definition:
CbmTofDigi.h:161
ClassImp
ClassImp(CbmConverterManager) InitStatus CbmConverterManager
Definition:
CbmConverterManager.cxx:12
CbmTofDigi::CbmTofDigi
CbmTofDigi()
Default constructor.
Definition:
CbmTofDigi.cxx:13
CbmTofDigi
Data class for expanded digital TOF information.
Definition:
CbmTofDigi.h:38
CbmTofDigi::SetAddress
void SetAddress(Int_t address)
Definition:
CbmTofDigi.h:147
CbmTofAddress::GetUniqueAddress
static UInt_t GetUniqueAddress(UInt_t Sm, UInt_t Rpc, UInt_t Channel, UInt_t Side=0, UInt_t SmType=0)
Definition:
CbmTofAddress.h:124
CbmTofDigi::fdTime
Double_t fdTime
Absolute time [ps].
Definition:
CbmTofDigi.h:160
core
data
tof
CbmTofDigi.cxx
Generated on Wed Oct 28 2020 15:11:46 for CbmRoot by
1.8.18