Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:15:44

0001 #include "HGCROC.h"
0002 #include <cassert>
0003 ClassImp(Hgcroc)
0004 std::vector<int> Hgcroc::GetWaveform(void) const{
0005   return adc;
0006 }
0007 
0008 int Hgcroc::GetNsample(void) const{
0009   return Nsample;
0010 }
0011 
0012 double Hgcroc::GetTOT(void) const{
0013   return TOT;
0014 }
0015 
0016 double Hgcroc::GetTOA(void) const{
0017   return TOA;
0018 }
0019 
0020 void Hgcroc::SetWaveform(std::vector<int> v){
0021   adc=v;
0022 }
0023 
0024 void Hgcroc::AppendWaveformADC(int a){
0025   adc.push_back(a);
0026 }
0027 
0028 void Hgcroc::ResetWaveformPoint(int s, int a){
0029   assert(0<=s && s<(int)adc.size());
0030   adc.at(s)=a;
0031 }
0032 
0033 void Hgcroc::SetTOT(double tot){
0034   TOT=tot;
0035 }
0036 
0037 void Hgcroc::SetTOA(double toa){
0038   TOA=toa;
0039 }