diff --git a/Print/fcl/printMetadata.fcl b/Print/fcl/printMetadata.fcl index 73df0a858e..c66e2af0c2 100644 --- a/Print/fcl/printMetadata.fcl +++ b/Print/fcl/printMetadata.fcl @@ -1,5 +1,6 @@ # -# print run, event subrun summaries for a file +# print run, event subrun summaries for a data file +# for sim files use printMetdataSim.fcl # process_name : rse @@ -9,13 +10,9 @@ physics :{ res : { module_type : RunSubrunEvent } - genCountPrint: { - module_type: GenEventCountReader - makeHistograms: false - } } - e1 : [ res , genCountPrint ] + e1 : [ res ] end_paths : [ e1 ] } diff --git a/Print/fcl/printMetadataSim.fcl b/Print/fcl/printMetadataSim.fcl new file mode 100644 index 0000000000..73df0a858e --- /dev/null +++ b/Print/fcl/printMetadataSim.fcl @@ -0,0 +1,21 @@ +# +# print run, event subrun summaries for a file +# + +process_name : rse + +physics :{ + analyzers: { + res : { + module_type : RunSubrunEvent + } + genCountPrint: { + module_type: GenEventCountReader + makeHistograms: false + } + } + + e1 : [ res , genCountPrint ] + end_paths : [ e1 ] + +} diff --git a/Print/src/RunSubrunEvent_module.cc b/Print/src/RunSubrunEvent_module.cc index bae7cd2aa6..1b0114ecc6 100644 --- a/Print/src/RunSubrunEvent_module.cc +++ b/Print/src/RunSubrunEvent_module.cc @@ -96,7 +96,7 @@ void mu2e::RunSubrunEvent::beginSubRun(art::SubRun const& subRun) { if (!_printSam) return; // add this subrun to the list, if it is not already there - unsigned long long id = subRun.run()*1000000 + subRun.subRun(); + unsigned long long id = subRun.run()*1000000ull + subRun.subRun(); subvec::iterator beg = _subruns.begin(); subvec::iterator end = _subruns.end(); if (std::find(beg, end, id) == end) _subruns.emplace_back(id);