BmnRoot
Loading...
Searching...
No Matches
BmnTrigWaveDigit.cxx
Go to the documentation of this file.
1#include "BmnTrigWaveDigit.h"
2
4 fMod = -1;
5 fNsmpl = 40;
6 fValueI = new Short_t[fNsmpl];
7 for (UInt_t i = 0; i < fNsmpl; ++i)
8 fValueI[i] = 0;
10 fAdcTimestamp = 0;
11 fTime = 0;
12}
13
15 fMod = dig.GetMod();
16 fNsmpl = dig.GetNSamples();
17 fValueI = new Short_t[fNsmpl];
18 for (UInt_t i = 0; i < fNsmpl; ++i)
19 fValueI[i] = dig.GetShortValue()[i];
22 fTime = dig.GetTime();
23}
24
25BmnTrigWaveDigit::BmnTrigWaveDigit(UShort_t iMod, Short_t *iValue, UInt_t nVals, Double_t trigTimestamp, Double_t adcTimestamp, Double_t time) {
26 fMod = iMod;
27 fNsmpl = nVals;
28 fValueI = new Short_t[fNsmpl];
29 for (UInt_t i = 0; i < fNsmpl; ++i)
30 fValueI[i] = iValue[i];
31 fTrigTimestamp = trigTimestamp;
32 fAdcTimestamp = adcTimestamp;
33 fTime = time;
34}
35
int i
Definition P4_F32vec4.h:22
Short_t * GetShortValue() const
Double_t GetTrigTimestamp() const
UInt_t GetNSamples() const
Double_t GetTime() const
Double_t GetAdcTimestamp() const
UShort_t GetMod() const