ATLAS Offline Software
Loading...
Searching...
No Matches
CheckForFinalPartons.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef PYTHIA8_CHECK_FOR_FINAL_PARTONS_H
6#define PYTHIA8_CHECK_FOR_FINAL_PARTONS_H
7
10
11#include "Pythia8/Pythia.h"
12
13class CheckForFinalPartons: public extends<AthAlgTool, IPythia8Custom> {
14
15 public:
16 using base_class::base_class;
17
18 StatusCode ModifyPythiaEvent(Pythia8::Pythia &pythia) const override;
19
20 private:
21
22 bool acceptEvent(Pythia8::Event &event) const;
23
24 Gaudi::Property<int> m_maxFailures{this, "MaxFailures", 5};
25 mutable int m_nFailures{0};
26
27};
28
29#endif
StatusCode ModifyPythiaEvent(Pythia8::Pythia &pythia) const override
bool acceptEvent(Pythia8::Event &event) const
Gaudi::Property< int > m_maxFailures