Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MicromegasRawHitv1.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file MicromegasRawHitv1.cc
1 #include "MicromegasRawHitv1.h"
2 
4 {
5  set_bco(source->get_bco());
6  set_gtm_bco(source->get_gtm_bco());
7  set_packetid(source->get_packetid());
8  set_fee(source->get_fee());
9  set_channel(source->get_channel());
12  set_samples(source->get_samples());
13 
14  for( size_t i = 0; i < source->get_samples(); ++i )
15  { set_adc( i, source->get_adc(i) ); }
16 }
17 
18 void MicromegasRawHitv1::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 }