Skip to content
Snippets Groups Projects
Commit c668e2c2 authored by Semen Turchikhin's avatar Semen Turchikhin Committed by Edward Moyse
Browse files

MultiElectronFilter bugfix

MultiElectronFilter bugfix
parent 905f2fa5
No related branches found
No related tags found
No related merge requests found
/*
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
*/
#include "GeneratorFilters/MultiElectronFilter.h"
......@@ -21,7 +21,7 @@ StatusCode MultiElectronFilter::filterEvent() {
for (itr = events()->begin(); itr != events()->end(); ++itr) {
const HepMC::GenEvent* genEvt = (*itr);
for (const auto& part: *genEvt) {
if ( MC::isStable(part)) continue;
if ( !MC::isStable(part)) continue;
if ( std::abs(part->pdg_id()) != 11) continue;
if ( (part->momentum().perp() >= m_Ptmin) && std::abs(part->momentum().pseudoRapidity()) <= m_EtaRange) {
numElectrons++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment