File indexing completed on 2025-07-15 08:16:30
0001 #include "HGCROC.h"
0002 #include <cassert>
0003 ClassImp(Hgcroc)
0004 std::vector<int> Hgcroc::GetADCWaveform(void) const{
0005 return adc_waveform;
0006 }
0007
0008 std::vector<int> Hgcroc::GetTOAWaveform(void) const{
0009 return toa_waveform;
0010 }
0011
0012 std::vector<int> Hgcroc::GetTOTWaveform(void) const{
0013 return tot_waveform;
0014 }
0015
0016 int Hgcroc::GetNsample(void) const{
0017 return Nsample;
0018 }
0019
0020 double Hgcroc::GetTOT(void) const{
0021 return TOT;
0022 }
0023
0024 double Hgcroc::GetTOA(void) const{
0025 return TOA;
0026 }
0027
0028 int Hgcroc::GetPedestal(void) const{
0029 return pedestal;
0030 }
0031
0032 void Hgcroc::SetADCWaveform(std::vector<int> v){
0033 adc_waveform=v;
0034 }
0035
0036 void Hgcroc::AppendWaveformADC(int a){
0037 adc_waveform.push_back(a);
0038 }
0039
0040 void Hgcroc::ResetADCWaveformPoint(int s, int a){
0041 assert(0<=s && s<(int)adc_waveform.size());
0042 adc_waveform.at(s)=a;
0043 }
0044
0045 void Hgcroc::SetTOAWaveform(std::vector<int> v){
0046 toa_waveform=v;
0047 }
0048
0049 void Hgcroc::AppendWaveformTOA(int a){
0050 toa_waveform.push_back(a);
0051 }
0052
0053 void Hgcroc::ResetTOAWaveformPoint(int s, int a){
0054 assert(0<=s && s<(int)toa_waveform.size());
0055 toa_waveform.at(s)=a;
0056 }
0057
0058 void Hgcroc::SetTOTWaveform(std::vector<int> v){
0059 tot_waveform=v;
0060 }
0061
0062 void Hgcroc::AppendWaveformTOT(int a){
0063 tot_waveform.push_back(a);
0064 }
0065
0066 void Hgcroc::ResetTOTWaveformPoint(int s, int a){
0067 assert(0<=s && s<(int)tot_waveform.size());
0068 tot_waveform.at(s)=a;
0069 }
0070
0071 void Hgcroc::SetNsample(int n){
0072 Nsample=n;
0073 }
0074
0075 void Hgcroc::SetTOT(double tot){
0076 TOT=tot;
0077 }
0078
0079 void Hgcroc::SetTOA(double toa){
0080 TOA=toa;
0081 }
0082
0083 void Hgcroc::SetPedestal(int ped){
0084 pedestal=ped;
0085 }