Skip to content

Commit

Permalink
Small improvements in cut container.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielWielanek committed Jan 13, 2025
1 parent 166bb91 commit 94ad455
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions cuts/CutContainer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ namespace Hal {
Hal::Cout::PrintInfo(Form("%s %i: cannot add binned cut with im flag", __FILE__, __LINE__), EInfo::kError);
return;
}
Bool_t nulls = Hal::Std::FindParam(option, "null", kTRUE);
tempcut = Hal::Cuts::MakeCutCopy(cut, "im", nulls);
tempcut = Hal::Cuts::MakeCutCopy(cut, "im", Hal::Std::FindParam(option, "null", kTRUE));
if (tempcut == nullptr) return;
AddCut(*tempcut, option);
delete tempcut;
Expand Down Expand Up @@ -461,23 +460,9 @@ namespace Hal {
opt.ReplaceAll("+re", "");
opt.ReplaceAll("im", "");
opt.ReplaceAll("re", "");
Int_t size = 1;
if (mon->InheritsFrom("Hal::CutMonitorXY")) size = 2;
if (mon->InheritsFrom("Hal::CutMonitorXYZ")) size = 3;
switch (size) {
case 1: {
MakeComplexAxis(mon, 0, flag);
} break;
case 2: {
MakeComplexAxis(mon, 0, flag);
MakeComplexAxis(mon, 1, flag);
} break;
case 3: {
MakeComplexAxis(mon, 0, flag);
MakeComplexAxis(mon, 1, flag);
MakeComplexAxis(mon, 2, flag);
} break;
}
Int_t size = mon->GetAxisNo();
for (int i = 0; i < size; i++)
MakeComplexAxis(mon, i, flag);
}
}

Expand Down

0 comments on commit 94ad455

Please sign in to comment.