Skip to content
Snippets Groups Projects
Commit 489c6f7e authored by Adrian Weber's avatar Adrian Weber
Browse files

Apply clang-format

parent 6c71c3b2
No related branches found
No related tags found
1 merge request!414mCBM_mRICH: mrich unpacker correction and ref. TS
Pipeline #12167 passed
...@@ -513,15 +513,14 @@ void CbmMcbm2018UnpackerAlgoRich::WriteOutputDigi(Int_t fpgaID, Int_t channel, D ...@@ -513,15 +513,14 @@ void CbmMcbm2018UnpackerAlgoRich::WriteOutputDigi(Int_t fpgaID, Int_t channel, D
Int_t pixelUID = this->GetPixelUID(fpgaID, channel); Int_t pixelUID = this->GetPixelUID(fpgaID, channel);
//check ordering //check ordering
uint64_t msRefTS = 0; uint64_t msRefTS = 0;
if (MSidx >= fdTsStartTime) { if (MSidx >= fdTsStartTime) { msRefTS = MSidx - fdTsStartTime; }
msRefTS = MSidx - fdTsStartTime; else {
} else { std::cout << "MS before TS Start: " << MSidx << " " << fdTsStartTime << std::endl;
std::cout<<"MS before TS Start: "<<MSidx<<" "<<fdTsStartTime<<std::endl;
} }
Double_t finalTime = time + (Double_t) msRefTS - fdTimeOffsetNs; Double_t finalTime = time + (Double_t) msRefTS - fdTimeOffsetNs;
// Double_t finalTime = time + (Double_t) MSidx - fdTimeOffsetNs; // Double_t finalTime = time + (Double_t) MSidx - fdTimeOffsetNs;
if (msRefTS == 0) return; // Problems in data in current version. time is too large if (msRefTS == 0) return; // Problems in data in current version. time is too large
Double_t lastTime = 0.; Double_t lastTime = 0.;
...@@ -531,7 +530,8 @@ void CbmMcbm2018UnpackerAlgoRich::WriteOutputDigi(Int_t fpgaID, Int_t channel, D ...@@ -531,7 +530,8 @@ void CbmMcbm2018UnpackerAlgoRich::WriteOutputDigi(Int_t fpgaID, Int_t channel, D
lastTime = fDigiVect[fDigiVect.size() - 1].GetTime(); lastTime = fDigiVect[fDigiVect.size() - 1].GetTime();
if (fDigiVect[0].GetTime() > finalTime) { if (fDigiVect[0].GetTime() > finalTime) {
fDigiVect.emplace(fDigiVect.begin(), pixelUID, finalTime, tot - ToTcorr); fDigiVect.emplace(fDigiVect.begin(), pixelUID, finalTime, tot - ToTcorr);
} else if (lastTime > finalTime) { }
else if (lastTime > finalTime) {
for (int i = fDigiVect.size() - 1; i >= 0; i--) { for (int i = fDigiVect.size() - 1; i >= 0; i--) {
lastTime = fDigiVect[i].GetTime(); lastTime = fDigiVect[i].GetTime();
if (lastTime <= finalTime) { if (lastTime <= finalTime) {
......
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