Accept totalUnits for LumiBased and FileBased.
Merge pull request #4371 from AndresTanasijczuk/totalUnits

Accept totalUnits for LumiBased and FileBased.