Analysis Software
Documentation for sPHENIX simulation software
 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 
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());
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 }