Commit 5a15012e authored by Jérémie Dudouet's avatar Jérémie Dudouet
Browse files

Correct type=0 in the LUT and non existing recal files

parent ec9cb2af
Pipeline #55656 passed with stage
in 7 minutes and 56 seconds
......@@ -460,6 +460,7 @@ void FSMainWindow::GetLastShiftTrack()
File = GetStdoutFromCommand(Command.Data());
TObjArray *arr = File.Tokenize("/");
if(!arr || !arr->Last()) return;
File = arr->Last()->GetName();
delete arr;
......@@ -573,7 +574,7 @@ void FSMainWindow::ReadLUT()
Int_t clover = ((TString)loa->At(2)->GetName()).Atoi();
delete loa;
if(globdetid<0) continue;
if(globdetid<0 || type <= 0) continue;
DetDef *det = new DetDef;
fDetectors[adcval] = det;
......@@ -723,6 +724,7 @@ void FSMainWindow::ReadHistograms()
Int_t type=CanvasTypes::kUndef;
Int_t DetNum=-1;
DetDef *det = fDetectors[adc];
if(det->IsFIPPS()) {
type = CanvasTypes::kFIPPS;
DetNum = det->CloverId*4+det->Id;
......@@ -761,6 +763,9 @@ void FSMainWindow::ReadHistograms()
type = CanvasTypes::kTAC;
DetNum = det->CloverId;
}
else {
continue;
}
TString HistName = Form("ADC%d_%s_%d",adc,fNames[type].Data(),DetNum);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment