Skip to content

Commit 45e95ce

Browse files
Merge pull request #380 from giro94/caloBranch
Handle no surfacestepstag case
2 parents 139096d + 0826a7f commit 45e95ce

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/EventNtupleMaker_module.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,9 @@ namespace mu2e {
881881
event.getByLabel(_extraMCStepTags[ixt],mcstepch);
882882
_extraMCStepCollections.push_back(mcstepch);
883883
}
884-
event.getByLabel(_surfaceStepsTag,_surfaceStepsHandle);
884+
if(!_surfaceStepsTag.empty()) {
885+
event.getByLabel(_surfaceStepsTag,_surfaceStepsHandle);
886+
}
885887

886888
// find global MCStep collections
887889
_stepPointMCCollections.clear();

0 commit comments

Comments
 (0)