108// set this to debug only because this is a frequent problem in ttbar samples
109// sending the message in every event will only flood the logs until a newer version is available
110ATH_MSG_DEBUG("Could not retrieve PDF information. xAODs generated with a version earlier than AtlasProduction-19.2.3.7 might have a bug that causes this. Please check your input xAOD. All PDF weights will be 1.");
111return 1.0;
112 }
113
114if (xf1 == 0 || xf2 == 0) {
115ATH_MSG_DEBUG("Skipping event, as this TruthEvent is not reliable.");
116// this can happen for some PDFs which cross zero and go negative at NLO
117// not sure this is the best to do, so leaving the weight == 0 for now