Skip to content
Snippets Groups Projects
Commit 82c41335 authored by Alexandru Bercuci's avatar Alexandru Bercuci
Browse files

apply digi time convention for simulations

parent 7194d97f
No related branches found
No related tags found
1 merge request!2028Trd2d online - finner time calibration
......@@ -561,8 +561,7 @@ void CbmTrdModuleSim2D::AddDigi(Int_t pad, Double_t* charge, Double_t time /*, D
// make digi
CbmTrdDigi *digi(NULL), *sdigi(NULL);
CbmMatch* digiMatch(NULL);
digi = new CbmTrdDigi(pad, charge[0], charge[1],
ULong64_t(TMath::Ceil(time / CbmTrdDigi::Clk(CbmTrdDigi::eCbmTrdAsicType::kFASP))));
digi = new CbmTrdDigi(pad, charge[0], charge[1], uint64_t(time));
digi->SetAddressModule(fModAddress); // may not be needed in the future
digiMatch = new CbmMatch();
Double_t weighting = fChmbPar->EfCkeV(charge[0] * 0.1); // save th. energy which is seen by pads;
......
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