Object-independent CMSSW code to analyze SC-related quantities