Multi thread porting

Function storeBadEvents removed because it asks for the get and book of a ME in step1.
beginJob is not triggered anymore. please remove it from everywhere. same for endJob