Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
TpcRawHitv1.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TpcRawHitv1.cc
1
#include "
TpcRawHitv1.h
"
2
3
TpcRawHitv1::TpcRawHitv1
(
TpcRawHit
*tpchit)
4
{
5
set_bco
(tpchit->
get_bco
());
6
set_gtm_bco
(tpchit->
get_gtm_bco
());
7
set_packetid
(tpchit->
get_packetid
());
8
set_fee
(tpchit->
get_fee
());
9
set_channel
(tpchit->
get_channel
());
10
set_sampaaddress
(tpchit->
get_sampaaddress
());
11
set_sampachannel
(tpchit->
get_sampachannel
());
12
set_samples
(tpchit->
get_samples
());
13
14
for
(
size_t
i
= 0;
i
< tpchit->
get_samples
(); ++
i
)
15
{
set_adc
(
i
, tpchit->
get_adc
(
i
) ); }
16
}
17
18
void
TpcRawHitv1::identify
(std::ostream &
os
)
const
19
{
20
os <<
"BCO: 0x"
<< std::hex <<
bco
<< std::dec << std::endl;
21
os <<
"packet id: "
<<
packetid
<< std::endl;
22
}
23
24
void
TpcRawHitv1::Clear
(Option_t *)
25
{
26
adc
= std::vector<uint16_t>();
27
}
coresoftware
blob
master
offline
framework
ffarawobjects
TpcRawHitv1.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:04
using
1.8.2 with
sPHENIX GitHub integration