Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RawHitv1.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file RawHitv1.cc
1 #include "RawHitv1.h"
2 #include <climits>
3 
5 {
6 }
7 
8 void RawHitv1::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 RawHitv1::getAdc() {
17  return (unsigned int) m_adc;
18  }
19 
20 void RawHitv1::setPhiBin(const unsigned int phibin) {
21  m_phibin = phibin;
22 }
23 unsigned int RawHitv1::getPhiBin() { return m_phibin;}
24 
25 void RawHitv1::setTBin(const unsigned int tbin) {
26  m_tbin = tbin;
27 }
28 unsigned int RawHitv1::getTBin() { return m_tbin;}