Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RawHitTpc.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file RawHitTpc.cc
1 #include "RawHitTpc.h"
2 #include <climits>
3 
5 {
6 }
7 
8 void RawHitTpc::setAdc(const unsigned int adc)
9  {
10  if(adc > USHRT_MAX)
11  m_adc = USHRT_MAX;
12  else
13  m_adc = (unsigned short) adc;
14  }
15 
16 unsigned int RawHitTpc::getAdc() {
17  return (unsigned int) m_adc;
18  }
19 
20 void RawHitTpc::setPhiBin(const unsigned int phibin) {
21  std::cout << "TPC RAW HIT HAS NO PHIBIN " << phibin << std::endl;
22 }
23 unsigned int RawHitTpc::getPhiBin() { std::cout << "TPC RAW HIT HAS NO PHIBIN" << std::endl; return 0;}
24 
25 void RawHitTpc::setTBin(const unsigned int tbin) {
26  m_tbin = tbin;
27 }
28 unsigned int RawHitTpc::getTBin() { return m_tbin;}