Fix of compilation warnings in CPAnalysisExamples
Noticed that there are several compilation warnings in the AthAnalysis build, and this fixes a few of them in the CPAnalysisExamples package. Thanks to @jojungge who advised how the outdated call should be updated.