ATLAS Offline Software
Loading...
Searching...
No Matches
JetNGhostSelectorAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7#ifndef EVENT_SELECTOR_JETNGHOSTSELECTORALG_H
8#define EVENT_SELECTOR_JETNGHOSTSELECTORALG_H
9
10// Algorithm includes
16
17// Framework includes
20
22
23namespace CP {
24
27
29
31 public:
32 JetNGhostSelectorAlg(const std::string &name, ISvcLocator *pSvcLocator);
33 virtual StatusCode initialize() override;
34 virtual StatusCode execute(const EventContext& ctx) override;
35
36 private:
37
39 Gaudi::Property<float> m_ptmin {this, "minPt", 0., "minimum pT (in MeV)"};
40
42 Gaudi::Property<std::string> m_sign {this, "sign", "SetMe", "comparison sign to use"};
43
45 Gaudi::Property<int> m_count {this, "count", 0, "count value"};
46
48 Gaudi::Property<std::string> m_ghost {
49 this, "ghost", "", "name of the ghost decoration to look up for positive object counts"
50 };
51
53 Gaudi::Property<std::string> m_veto {
54 this, "veto", "", "name of the ghost decoration to look up for negative object counts"
55 };
56
59
62
65 this, "jets", "", "the particle container to use"
66 };
67
70 this, "jetSelection", "", "the selection on the input particles"
71 };
72
75 this, "eventInfo", "EventInfo", "the EventInfo container to read selection decisions from"
76 };
77
80 this, "eventPreselection", "SetMe", "name of the preselection to check before applying this one"
81 };
82
85 this, "decorationName", "SetMe", "decoration name for the NGhosts selector"
86 };
87
89 std::unique_ptr<SG::ConstAccessor<int>> m_ghostAcc{};
90 std::unique_ptr<SG::ConstAccessor<int>> m_vetoAcc{};
91 bool m_doVeto{false};
92 }; // class
93} // namespace CP
94
95#endif // EVENT_SELECTOR_JETNGHOSTSELECTORALG_H
std::unique_ptr< SG::ConstAccessor< int > > m_vetoAcc
Gaudi::Property< std::string > m_sign
the sign against which to compare pT (GT, LT, etc)
Gaudi::Property< std::string > m_ghost
the ghost decoration
Gaudi::Property< std::string > m_veto
the ghost decoration
CP::SysWriteSelectionHandle m_decoration
the output selection decoration
CP::SysReadHandle< xAOD::JetContainer > m_jetsHandle
the jet input handle
CP::SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the event info handle
CP::SysReadSelectionHandle m_preselection
the preselection
CP::SysListHandle m_systematicsList
the systematics list
virtual StatusCode initialize() override
Gaudi::Property< float > m_ptmin
the pT threshold on which to select
JetNGhostSelectorAlg(const std::string &name, ISvcLocator *pSvcLocator)
the standard constructor
CP::SysReadSelectionHandle m_jetSelection
the jet selection handle
SignEnum::ComparisonOperator m_signEnum
the operator version of the comparison (>, <, etc)
Gaudi::Property< int > m_count
the count of events desired
std::unique_ptr< SG::ConstAccessor< int > > m_ghostAcc
the ghost and ghost-veto accessors
a class managing the property to configure the list of systematics to process
a data handle for reading systematics varied input data
a data handle for reading systematically varied selection properties from objects
a data handle for writing systematically varied selection properties from objects
the (new) base class for EventLoop algorithms
virtual::StatusCode execute()
execute this algorithm
Select isolated Photons, Electrons and Muons.
ComparisonOperator
all possible comparison user inputs
Definition SignEnums.h:18