Skip to content
Snippets Groups Projects
Commit f764f565 authored by Volker Friese's avatar Volker Friese
Browse files

Fix SetTime method for SPADIC-type CbmTrdDigi

parent 2237f5bb
No related branches found
No related tags found
1 merge request!395Digitizer: Make digi time relative to the start of the time slice.
Pipeline #13125 failed
......@@ -244,7 +244,14 @@ void CbmTrdDigi::SetFlag(const Int_t iflag, Bool_t set)
}
//_________________________________________________________________________________
void CbmTrdDigi::SetTime(Double_t t) { fTime = ULong64_t(TMath::Ceil(t / Clk(GetType()))); }
void CbmTrdDigi::SetTime(Double_t t)
{
switch (GetType()) {
case eCbmTrdAsicType::kFASP: fTime = ULong64_t(TMath::Ceil(t / Clk(GetType())));
case eCbmTrdAsicType::kSPADIC: fTime = static_cast<ULong64_t>(t);
case eCbmTrdAsicType::kNTypes: return;
}
}
//_________________________________________________________________________________
void CbmTrdDigi::SetTimeOffset(Char_t t)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment