32 def execute(self):
33
34 if self.sg.
contains(
"xAOD::EventInfo",
"EventInfo"):
35 ei = self.sg.retrieve("xAOD::EventInfo", "EventInfo")
36 event = self.Event(
37 runNumber=ei.runNumber(),
38 lumiBlock=ei.lumiBlock(),
39 eventNumber=ei.eventNumber(),
40 )
41 if event in self.events:
42 logging.error("Event Data Validation FAILED!")
43 return StatusCode.Failure
44 else:
45 self.events.
add(event)
46 else:
47 logging.error("Could NOT find xAOD::EventInfo!")
48 return StatusCode.Failure
49
50 return StatusCode.Success
51
bool add(const std::string &hname, TKey *tobj)
bool contains(const std::string &s, const std::string ®x)
does a string contain the substring